Skip to content

Commit 4cc391b

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 24ada7a commit 4cc391b

7 files changed

+21
-21
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
@@ -115,13 +115,13 @@ through either:
115115

116116
* The [`NODE_ICU_DATA`][] environment variable:
117117

118-
```shell
118+
```bash
119119
env NODE_ICU_DATA=/some/directory node
120120
```
121121

122122
* The [`--icu-data-dir`][] CLI parameter:
123123

124-
```shell
124+
```bash
125125
node --icu-data-dir=/some/directory
126126
```
127127

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
@@ -328,7 +328,7 @@ that Node.js may be floating (or else cause a merge conflict).
328328

329329
The rough outline of the process is:
330330

331-
```shell
331+
```bash
332332
# Assuming your fork of Node.js is checked out in $NODE_DIR
333333
# and you want to update the Node.js master branch.
334334
# Find the current (OLD) version in
@@ -367,15 +367,15 @@ above. A better strategy is to
367367

368368
To audit for floating patches:
369369

370-
```shell
370+
```bash
371371
git log --oneline deps/v8
372372
```
373373

374374
To replace the copy of V8 in Node.js, use the [`git-node`][] tool. For example,
375375
if you want to replace the copy of V8 in Node.js with the branch-head for V8 5.1
376376
branch:
377377

378-
```shell
378+
```bash
379379
cd $NODE_DIR
380380
git node v8 major --branch=5.1-lkgr
381381
```

doc/guides/maintaining-icu.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ICU consumes and includes:
2121

2222
The current versions of these items can be viewed for node with `node -p process.versions`:
2323

24-
```shell
24+
```console
2525
$ node -p process.versions
2626

2727
{
@@ -101,7 +101,7 @@ should be sufficient).
101101
* Configure Node.js with the specific [ICU version](http://icu-project.org/download)
102102
you want to upgrade to, for example:
103103
104-
```shell
104+
```bash
105105
./configure \
106106
--with-intl=full-icu \
107107
--with-icu-source=http://download.icu-project.org/files/icu4c/58.1/icu4c-58_1-src.tgz
@@ -118,7 +118,7 @@ make
118118

119119
* Verify the Node.js build works:
120120

121-
```shell
121+
```bash
122122
make test-ci
123123
```
124124

@@ -137,13 +137,13 @@ new Intl.DateTimeFormat('es', { month: 'long' }).format(new Date(9E8));
137137
> :warning: Do not modify any source code in `deps/icu-small` !
138138
> See section below about floating patches to ICU.
139139
140-
```shell
140+
```bash
141141
python tools/icu/shrink-icu-src.py
142142
```
143143

144144
* Now, do a clean rebuild of Node.js to test:
145145

146-
```shell
146+
```bash
147147
make -k distclean
148148
./configure
149149
make
@@ -168,7 +168,7 @@ so make this a separate commit from the smaller changes.
168168
169169
* Now, rebuild the Node.js license.
170170

171-
```shell
171+
```bash
172172
# clean up - remove deps/icu
173173
make clean
174174
tools/license-builder.sh
@@ -178,7 +178,7 @@ tools/license-builder.sh
178178
It should match the ICU URL used in the first step. When this is done, the
179179
following should build with small ICU.
180180

181-
```shell
181+
```bash
182182
# clean up
183183
rm -rf out deps/icu deps/icu4c*
184184
./configure --with-intl=small-icu --download=all
@@ -210,7 +210,7 @@ version.
210210
For example, to patch `source/tools/toolutil/pkg_genc.cpp` for
211211
ICU version 63:
212212

213-
```shell
213+
```bash
214214
# go to your Node.js source directory
215215
cd <node>
216216

@@ -233,7 +233,7 @@ make clean && ./configure && make
233233

234234
You should see a message such as:
235235

236-
```shell
236+
```console
237237
INFO: Using floating patch "tools/icu/patches/63/source/tools/toolutil/pkg_genc.cpp" from "tools/icu"
238238
```
239239

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)