Skip to content

Commit 74d0ee6

Browse files
authored
standardize "none/nothing" fenced code blocks (#10176)
- `nothing` and `none` are both invalid language keys, so replace both of them with the valid generic `text`. the reason I chose `text` over an empty "```" line is that it will make targeting in "find" or "find/replace" easier. - use `shell` where appropriate
1 parent 49225e5 commit 74d0ee6

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

blade.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ If you would like to conditionally render your component, you may define a `shou
762762

763763
Sometimes components are part of a component group and you may wish to group the related components within a single directory. For example, imagine a "card" component with the following class structure:
764764

765-
```none
765+
```text
766766
App\Views\Components\Card\Card
767767
App\Views\Components\Card\Header
768768
App\Views\Components\Card\Body
@@ -1378,7 +1378,7 @@ You may use the `.` character to indicate if a component is nested deeper inside
13781378

13791379
Sometimes, when a component is made up of many Blade templates, you may wish to group the given component's templates within a single directory. For example, imagine an "accordion" component with the following directory structure:
13801380

1381-
```none
1381+
```text
13821382
/resources/views/components/accordion.blade.php
13831383
/resources/views/components/accordion/item.blade.php
13841384
```
@@ -1397,7 +1397,7 @@ However, in order to render the accordion component via `x-accordion`, we were f
13971397

13981398
Thankfully, Blade allows you to place a file matching the component's directory name within the component's directory itself. When this template exists, it can be rendered as the "root" element of the component even though it is nested within a directory. So, we can continue to use the same Blade syntax given in the example above; however, we will adjust our directory structure like so:
13991399

1400-
```none
1400+
```text
14011401
/resources/views/components/accordion/accordion.blade.php
14021402
/resources/views/components/accordion/item.blade.php
14031403
```

installation.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ composer global require laravel/installer
9494

9595
After you have installed PHP, Composer, and the Laravel installer, you're ready to create a new Laravel application. The Laravel installer will prompt you to select your preferred testing framework, database, and starter kit:
9696

97-
```nothing
97+
```shell
9898
laravel new example-app
9999
```
100100

101101
Once the application has been created, you can start Laravel's local development server, queue worker, and Vite development server using the `dev` Composer script:
102102

103-
```nothing
103+
```shell
104104
cd example-app
105105
npm install && npm run build
106106
composer run dev
@@ -179,7 +179,7 @@ Herd for macOS uses [dnsmasq](https://en.wikipedia.org/wiki/Dnsmasq) to support
179179

180180
After installing Herd, the fastest way to create a new Laravel application is using the Laravel CLI, which is bundled with Herd:
181181

182-
```nothing
182+
```shell
183183
cd ~/Herd
184184
laravel new my-app
185185
cd my-app
@@ -201,7 +201,7 @@ During installation, Herd creates a "parked" directory in your home directory at
201201

202202
After installing Herd, the fastest way to create a new Laravel application is using the Laravel CLI, which is bundled with Herd. To get started, open Powershell and run the following commands:
203203

204-
```nothing
204+
```shell
205205
cd ~\Herd
206206
laravel new my-app
207207
cd my-app

mail.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1376,7 +1376,7 @@ Once your custom transport has been defined and registered, you may create a mai
13761376

13771377
Laravel includes support for some existing Symfony maintained mail transports like Mailgun and Postmark. However, you may wish to extend Laravel with support for additional Symfony maintained transports. You can do so by requiring the necessary Symfony mailer via Composer and registering the transport with Laravel. For example, you may install and register the "Brevo" (formerly "Sendinblue") Symfony mailer:
13781378

1379-
```none
1379+
```shell
13801380
composer require symfony/brevo-mailer symfony/http-client
13811381
```
13821382

pagination.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ While `paginate` and `simplePaginate` create queries using the SQL "offset" clau
115115

116116
Unlike offset based pagination, which includes a page number in the query string of the URLs generated by the paginator, cursor based pagination places a "cursor" string in the query string. The cursor is an encoded string containing the location that the next paginated query should start paginating and the direction that it should paginate:
117117

118-
```nothing
118+
```text
119119
http://localhost/users?cursor=eyJpZCI6MTUsIl9wb2ludHNUb05leHRJdGVtcyI6dHJ1ZX0
120120
```
121121

validation.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ Some of Laravel's built-in validation rule error messages contain a `:value` pla
824824

825825
If this validation rule fails, it will produce the following error message:
826826

827-
```none
827+
```text
828828
The credit card number field is required when payment type is cc.
829829
```
830830

@@ -841,7 +841,7 @@ Instead of displaying `cc` as the payment type value, you may specify a more use
841841
842842
After defining this value, the validation rule will produce the following error message:
843843

844-
```none
844+
```text
845845
The credit card number field is required when payment type is credit card.
846846
```
847847

vite.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ When referencing relative asset paths, you should remember that the paths are re
421421
422422
Consider the following project structure:
423423
424-
```nothing
424+
```text
425425
public/
426426
taylor.png
427427
resources/
@@ -646,7 +646,7 @@ ASSET_URL=https://cdn.example.com
646646

647647
After configuring the asset URL, all re-written URLs to your assets will be prefixed with the configured value:
648648

649-
```nothing
649+
```text
650650
https://cdn.example.com/build/assets/app.9dce8d17.js
651651
```
652652

0 commit comments

Comments
 (0)