mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
doc: fix example commands for REPLACEME updates
Split the two example command lines for updating the `REPLACEME` tags into separate `console` fenced code blocks. This fixes some stray "`" characters and makes each example one-click copiable when viewing the guide in GitHub's web UI. PR-URL: https://github.com/nodejs/node/pull/41269 Refs: https://github.com/nodejs/node/pull/39544 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Beth Griggs <bgriggs@redhat.com>
This commit is contained in:
1 parent
55ceaec111
commit
59558807ce
1 file changed
+7
-1
@@ -326,7 +326,13 @@ grep REPLACEME doc/api/*.md
|
||||
and substitute this node version with
|
||||
|
||||
```console
|
||||
sed -i "s/REPLACEME/$VERSION/g" doc/api/*.md` or `perl -pi -e "s/REPLACEME/$VERSION/g" doc/api/*.md
|
||||
sed -i "s/REPLACEME/$VERSION/g" doc/api/*.md
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
```console
|
||||
perl -pi -e "s/REPLACEME/$VERSION/g" doc/api/*.md
|
||||
```
|
||||
|
||||
`$VERSION` should be prefixed with a `v`.
|
||||
|
||||
Reference in new issue
Block a user