Skip to content

Commit 7ea6b07

Browse files
Derek Lewiscodebytere
Derek Lewis
authored andcommitted
doc: normalize shell code block info strings
Prior to this commit, shell fenced code blocks in Markdown files had inconsistent info strings. This has been corrected to standarize on the one with the highest frequency in the doc/api/ dir. Stats: > 'console' => 54, > 'shell' => 2, PR-URL: #33486 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 74a1493 commit 7ea6b07

6 files changed

+12
-12
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ Primary GPG keys for Node.js Releasers (some Releasers sign with subkeys):
572572

573573
To import the full set of trusted release keys:
574574

575-
```shell
575+
```bash
576576
gpg --keyserver pool.sks-keyservers.net --recv-keys 4ED778F539E3634C779C87C6D7062848A1AB005C
577577
gpg --keyserver pool.sks-keyservers.net --recv-keys 94AE36675C464D64BAFA68DD7434390BDBE9B9C5
578578
gpg --keyserver pool.sks-keyservers.net --recv-keys 71DCFD284A79C3B38668286BC97EC7A07EDE3FC1

doc/api/intl.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,13 @@ through either:
119119

120120
* The [`NODE_ICU_DATA`][] environment variable:
121121

122-
```shell
122+
```bash
123123
env NODE_ICU_DATA=/some/directory node
124124
```
125125

126126
* The [`--icu-data-dir`][] CLI parameter:
127127

128-
```shell
128+
```bash
129129
node --icu-data-dir=/some/directory
130130
```
131131

doc/guides/backporting-to-release-lines.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ replace that with the staging branch for the targeted release line.
3535
2. Make sure that the local staging branch is up to date with the remote.
3636
3. Create a new branch off of the staging branch, as shown below.
3737

38-
```shell
38+
```bash
3939
# Assuming your fork of Node.js is checked out in $NODE_DIR,
4040
# the origin remote points to your fork, and the upstream remote points
4141
# to git://github.com/nodejs/node
@@ -55,7 +55,7 @@ replace that with the staging branch for the targeted release line.
5555
will likely fail due to conflicts. In that case, you will see something
5656
like this:
5757

58-
```shell
58+
```console
5959
# Say the $SHA is 773cdc31ef
6060
$ git cherry-pick $SHA # Use your commit hash
6161
error: could not apply 773cdc3... <commit title>

doc/guides/maintaining-V8.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ that Node.js may be floating (or else cause a merge conflict).
324324

325325
The rough outline of the process is:
326326

327-
```shell
327+
```bash
328328
# Assuming your fork of Node.js is checked out in $NODE_DIR
329329
# and you want to update the Node.js master branch.
330330
# Find the current (OLD) version in
@@ -363,15 +363,15 @@ above. A better strategy is to
363363

364364
To audit for floating patches:
365365

366-
```shell
366+
```bash
367367
git log --oneline deps/v8
368368
```
369369

370370
To replace the copy of V8 in Node.js, use the [`git-node`][] tool. For example,
371371
if you want to replace the copy of V8 in Node.js with the branch-head for V8 5.1
372372
branch:
373373

374-
```shell
374+
```bash
375375
cd $NODE_DIR
376376
git node v8 major --branch=5.1-lkgr
377377
```

doc/guides/maintaining-root-certs.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ the nodejs/node repository.
3030

3131
Update the tag in the commands below, and run:
3232

33-
```shell
33+
```bash
3434
cd tools/
3535
./mk-ca-bundle.pl -v 2>_before
3636
curl -O https://hg.mozilla.org/projects/nss/raw-file/NSS_3_41_RTM/lib/ckfw/builtins/certdata.txt
@@ -57,15 +57,15 @@ the nodejs/node repository.
5757

5858
Run the command below:
5959

60-
```shell
60+
```bash
6161
./mk-ca-bundle.pl -v 2>_after
6262
```
6363

6464
Confirm that `../src/node_root_certs.h` was updated.
6565

6666
Determine what changes were made by diffing the before and after files:
6767

68-
```shell
68+
```console
6969
% diff _before _after
7070
11d10
7171
< Parsing: Visa eCommerce Root

doc/guides/maintaining-zlib.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ performance improvements not currently available in standard zlib.
66
## Updating zlib
77

88
Update zlib:
9-
```shell
9+
```bash
1010
git clone https://chromium.googlesource.com/chromium/src/third_party/zlib
1111
cp deps/zlib/zlib.gyp deps/zlib/win32/zlib.def deps
1212
rm -rf deps/zlib zlib/.git

0 commit comments

Comments
 (0)