Skip to content

Commit a31393e

Browse files
authored
standardize shell and sh code block languages (#10175)
standardize the language to `shell`. also, as far as I can tell, `sh` doesn't even technically exist in Torchlight.
1 parent 74d0ee6 commit a31393e

File tree

5 files changed

+25
-25
lines changed

5 files changed

+25
-25
lines changed

broadcasting.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@ Before broadcasting any events, you should first configure and run a [queue work
9393

9494
When running the `install:broadcasting` command, you will be prompted to install [Laravel Reverb](/docs/{{version}}/reverb). Of course, you may also install Reverb manually using the Composer package manager.
9595

96-
```sh
96+
```shell
9797
composer require laravel/reverb
9898
```
9999

100100
Once the package is installed, you may run Reverb's installation command to publish the configuration, add Reverb's required environment variables, and enable event broadcasting in your application:
101101

102-
```sh
102+
```shell
103103
php artisan reverb:install
104104
```
105105

pennant.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -894,21 +894,21 @@ Feature::purge();
894894

895895
As it can be useful to purge features as part of your application's deployment pipeline, Pennant includes a `pennant:purge` Artisan command which will purge the provided features from storage:
896896

897-
```sh
897+
```shell
898898
php artisan pennant:purge new-api
899899

900900
php artisan pennant:purge new-api purchase-button
901901
```
902902

903903
It is also possible to purge all features _except_ those in a given feature list. For example, imagine you wanted to purge all features but keep the values for the "new-api" and "purchase-button" features in storage. To accomplish this, you can pass those feature names to the `--except` option:
904904

905-
```sh
905+
```shell
906906
php artisan pennant:purge --except=new-api --except=purchase-button
907907
```
908908

909909
For convenience, the `pennant:purge` command also supports an `--except-registered` flag. This flag indicates that all features except those explicitly registered in a service provider should be purged:
910910

911-
```sh
911+
```shell
912912
php artisan pennant:purge --except-registered
913913
```
914914

pulse.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ For in-depth debugging of individual events, check out [Laravel Telescope](/docs
3737
3838
You may install Pulse using the Composer package manager:
3939

40-
```sh
40+
```shell
4141
composer require laravel/pulse
4242
```
4343

@@ -63,7 +63,7 @@ Once Pulse's database migrations have been run, you may access the Pulse dashboa
6363

6464
Many of Pulse's configuration options can be controlled using environment variables. To see the available options, register new recorders, or configure advanced options, you may publish the `config/pulse.php` configuration file:
6565

66-
```sh
66+
```shell
6767
php artisan vendor:publish --tag=pulse-config
6868
```
6969

@@ -97,7 +97,7 @@ public function boot(): void
9797

9898
The Pulse dashboard cards and layout may be configured by publishing the dashboard view. The dashboard view will be published to `resources/views/vendor/pulse/dashboard.blade.php`:
9999

100-
```sh
100+
```shell
101101
php artisan vendor:publish --tag=pulse-dashboard
102102
```
103103

@@ -256,7 +256,7 @@ php artisan pulse:check
256256
257257
As the `pulse:check` command is a long-lived process, it will not see changes to your codebase without being restarted. You should gracefully restart the command by calling the `pulse:restart` command during your application's deployment process:
258258

259-
```sh
259+
```shell
260260
php artisan pulse:restart
261261
```
262262

@@ -497,7 +497,7 @@ php artisan pulse:work
497497
498498
As the `pulse:work` command is a long-lived process, it will not see changes to your codebase without being restarted. You should gracefully restart the command by calling the `pulse:restart` command during your application's deployment process:
499499

500-
```sh
500+
```shell
501501
php artisan pulse:restart
502502
```
503503

reverb.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ In most cases, secure WebSocket connections are handled by the upstream web serv
9191

9292
However, it can sometimes be useful, such as during local development, for the Reverb server to handle secure connections directly. If you are using [Laravel Herd's](https://herd.laravel.com) secure site feature or you are using [Laravel Valet](/docs/{{version}}/valet) and have run the [secure command](/docs/{{version}}/valet#securing-sites) against your application, you may use the Herd / Valet certificate generated for your site to secure your Reverb connections. To do so, set the `REVERB_HOST` environment variable to your site's hostname or explicitly pass the hostname option when starting the Reverb server:
9393

94-
```sh
94+
```shell
9595
php artisan reverb:start --host="0.0.0.0" --port=8080 --hostname="laravel.test"
9696
```
9797

@@ -112,15 +112,15 @@ You may also manually choose a certificate by defining `tls` options in your app
112112

113113
The Reverb server can be started using the `reverb:start` Artisan command:
114114

115-
```sh
115+
```shell
116116
php artisan reverb:start
117117
```
118118

119119
By default, the Reverb server will be started at `0.0.0.0:8080`, making it accessible from all network interfaces.
120120

121121
If you need to specify a custom host or port, you may do so via the `--host` and `--port` options when starting the server:
122122

123-
```sh
123+
```shell
124124
php artisan reverb:start --host=127.0.0.1 --port=9000
125125
```
126126

@@ -141,7 +141,7 @@ REVERB_PORT=443
141141

142142
To improve performance, Reverb does not output any debug information by default. If you would like to see the stream of data passing through your Reverb server, you may provide the `--debug` option to the `reverb:start` command:
143143

144-
```sh
144+
```shell
145145
php artisan reverb:start --debug
146146
```
147147

@@ -152,7 +152,7 @@ Since Reverb is a long-running process, changes to your code will not be reflect
152152

153153
The `reverb:restart` command ensures all connections are gracefully terminated before stopping the server. If you are running Reverb with a process manager such as Supervisor, the server will be automatically restarted by the process manager after all connections have been terminated:
154154

155-
```sh
155+
```shell
156156
php artisan reverb:restart
157157
```
158158

@@ -210,7 +210,7 @@ Each WebSocket connection is held in memory until either the client or server di
210210

211211
On a Unix based operating system, you may determine the allowed number of open files using the `ulimit` command:
212212

213-
```sh
213+
```shell
214214
ulimit -n
215215
```
216216

@@ -229,7 +229,7 @@ Under the hood, Reverb uses a ReactPHP event loop to manage WebSocket connection
229229

230230
Reverb will automatically switch to an `ext-uv` powered loop when available. This PHP extension is available for install via PECL:
231231

232-
```sh
232+
```shell
233233
pecl install uv
234234
```
235235

@@ -284,7 +284,7 @@ The configuration above will allow up to 10,000 Nginx workers per process to be
284284

285285
Unix-based operating systems typically limit the number of ports which can be opened on the server. You may see the current allowed range via the following command:
286286

287-
```sh
287+
```shell
288288
cat /proc/sys/net/ipv4/ip_local_port_range
289289
# 32768 60999
290290
```

vite.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ Have you started a new Laravel application using our Vite scaffolding but need t
6464

6565
You must ensure that Node.js (16+) and NPM are installed before running Vite and the Laravel plugin:
6666

67-
```sh
67+
```shell
6868
node -v
6969
npm -v
7070
```
7171

7272
You can easily install the latest version of Node and NPM using simple graphical installers from [the official Node website](https://nodejs.org/en/download/). Or, if you are using [Laravel Sail](https://laravel.com/docs/{{version}}/sail), you may invoke Node and NPM through Sail:
7373

74-
```sh
74+
```shell
7575
./vendor/bin/sail node -v
7676
./vendor/bin/sail npm -v
7777
```
@@ -81,7 +81,7 @@ You can easily install the latest version of Node and NPM using simple graphical
8181

8282
Within a fresh installation of Laravel, you will find a `package.json` file in the root of your application's directory structure. The default `package.json` file already includes everything you need to get started using Vite and the Laravel plugin. You may install your application's frontend dependencies via NPM:
8383

84-
```sh
84+
```shell
8585
npm install
8686
```
8787

@@ -310,7 +310,7 @@ export default defineConfig({
310310

311311
If you would like to build your frontend using the [Vue](https://vuejs.org/) framework, then you will also need to install the `@vitejs/plugin-vue` plugin:
312312

313-
```sh
313+
```shell
314314
npm install --save-dev @vitejs/plugin-vue
315315
```
316316

@@ -354,7 +354,7 @@ export default defineConfig({
354354

355355
If you would like to build your frontend using the [React](https://reactjs.org/) framework, then you will also need to install the `@vitejs/plugin-react` plugin:
356356

357-
```sh
357+
```shell
358358
npm install --save-dev @vitejs/plugin-react
359359
```
360360

@@ -747,14 +747,14 @@ To ensure you don't forget to rebuild the SSR entry point, we recommend augmenti
747747
748748
Then, to build and start the SSR server, you may run the following commands:
749749
750-
```sh
750+
```shell
751751
npm run build
752752
node bootstrap/ssr/ssr.js
753753
```
754754
755755
If you are using [SSR with Inertia](https://inertiajs.com/server-side-rendering), you may instead use the `inertia:start-ssr` Artisan command to start the SSR server:
756756
757-
```sh
757+
```shell
758758
php artisan inertia:start-ssr
759759
```
760760

0 commit comments

Comments
 (0)