Skip to content

Commit bee1421

Browse files
watildejasnell
authored andcommitted
doc: fix doc styles
BUILDING.md + L122: Missing code-language flag + L170: Strong should use `*` as a marker doc/changelogs/CHANGELOG_V6.md + L1494: Don't pad `emphasis` with inner spaces doc/guides/maintaining-V8.md + L3: Don't use multiple top level headings + L16: Don't use multiple top level headings + L40: Don't use multiple top level headings + L124: Don't use multiple top level headings + L182: Missing code-language flag + L223: Don't use multiple top level headings + L288: Don't use multiple top level headings + L307: Don't use multiple top level headings doc/guides/writing-tests.md + L322: Missing code-language flag + L329: Missing code-language flag doc/releases.md + L299: Missing code-language flag PR-URL: #13270 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Alexey Orlenko <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent cc6ec2f commit bee1421

File tree

5 files changed

+22
-22
lines changed

5 files changed

+22
-22
lines changed

BUILDING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ and not a newer version.
119119

120120
To run the tests:
121121

122-
```
122+
```console
123123
$ make test
124124
```
125125

@@ -167,7 +167,7 @@ Prerequisites:
167167
including the Community edition (remember to select
168168
"Common Tools for Visual C++ 2015" feature during installation).
169169
* [Visual Studio 2017](https://www.visualstudio.com/downloads/), any edition (including the Build Tools SKU).
170-
__Required Components:__ "MSbuild", "VC++ 2017 v141 toolset" and one of the Windows SDKs (10 or 8.1).
170+
**Required Components:** "MSbuild", "VC++ 2017 v141 toolset" and one of the Windows SDKs (10 or 8.1).
171171
* Basic Unix tools required for some tests,
172172
[Git for Windows](http://git-scm.com/download/win) includes Git Bash
173173
and tools which can be included in the global `PATH`.

doc/changelogs/CHANGELOG_V6.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1492,7 +1492,7 @@ This is also a security release. All Node.js users should consult the security r
14921492
* [[`86b9db601d`](https://github.com/nodejs/node/commit/86b9db601d)] - **src**: add missing length argument to send comment (Daniel Bevenius) [#8816](https://github.com/nodejs/node/pull/8816)
14931493
* [[`aa11205f71`](https://github.com/nodejs/node/commit/aa11205f71)] - **src**: rename CHECK_NOT_OOB() macro (Ben Noordhuis) [#8784](https://github.com/nodejs/node/pull/8784)
14941494
* [[`8be818eb07`](https://github.com/nodejs/node/commit/8be818eb07)] - **src**: fix minor typo in comments (Daniel Bevenius) [#8736](https://github.com/nodejs/node/pull/8736)
1495-
* [[`41ad6e3965`](https://github.com/nodejs/node/commit/41ad6e3965)] - **src**: rename handle__ to handle_ in HandleWrap (Daniel Bevenius) [#8712](https://github.com/nodejs/node/pull/8712)
1495+
* [[`41ad6e3965`](https://github.com/nodejs/node/commit/41ad6e3965)] - **src**: rename `handle__` to `handle_` in HandleWrap (Daniel Bevenius) [#8712](https://github.com/nodejs/node/pull/8712)
14961496
* [[`9205edc35c`](https://github.com/nodejs/node/commit/9205edc35c)] - **src**: don't abort when c-ares initialization fails (Ben Noordhuis) [#8710](https://github.com/nodejs/node/pull/8710)
14971497
* [[`6ddfe89fdf`](https://github.com/nodejs/node/commit/6ddfe89fdf)] - **src**: remove VS 2013 compatibility hacks (Ben Noordhuis) [#8067](https://github.com/nodejs/node/pull/8067)
14981498
* [[`a9491f1604`](https://github.com/nodejs/node/commit/a9491f1604)] - **src**: make ReqWrap req_ member private (Daniel Bevenius) [#8532](https://github.com/nodejs/node/pull/8532)

doc/guides/maintaining-V8.md

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Maintaining V8 in Node.js
22

3-
# Background
3+
## Background
44

55
V8 follows the Chromium release schedule. The support horizon for Chromium is
66
very different from the support horizon that Node.js needs to provide to its
@@ -13,7 +13,7 @@ This document attempts to document the current processes and proposes a workflow
1313
for maintaining the V8 branches in Node.js LTS and Current releases and how the
1414
Node.js and V8 teams at Google can help.
1515

16-
# V8 Release Schedule
16+
## V8 Release Schedule
1717

1818
V8 and Chromium follow a [roughly 6-week release cadence](https://www.chromium.org/developers/calendar). At any given time there are three V8 branches that are **active**.
1919

@@ -26,7 +26,7 @@ For example, at the time of this writing:
2626
All older branches are considered **abandoned**, and are not maintained by the
2727
V8 team.
2828

29-
## V8 merge process overview
29+
### V8 merge process overview
3030

3131
The process for backporting bug fixes to active branches is officially documented [on the V8 wiki](https://github.com/v8/v8/wiki/Merging%20&%20Patching). The summary of the process is:
3232

@@ -37,7 +37,7 @@ The process for backporting bug fixes to active branches is officially documente
3737
* Merge requests to an abandoned branch will be rejected.
3838
* Only bug fixes are accepted for backporting.
3939

40-
# Node.js Support Requirements
40+
## Node.js Support Requirements
4141

4242
At any given time Node.js needs to be maintaining a few different V8 branches
4343
for the various Current, LTS, and nightly releases. At present this list
@@ -121,7 +121,7 @@ The versions of V8 used in Node.js v4.x and v6.x have already been abandoned by
121121
upstream V8. However, Node.js needs to continue supporting these branches for
122122
many months (Current branches) or several years (LTS branches).
123123

124-
# Maintenance Process
124+
## Maintenance Process
125125

126126
Once a bug in Node.js has been identified to be caused by V8, the first step is
127127
to identify the versions of Node.js and V8 affected. The bug may be present in
@@ -134,7 +134,7 @@ process.
134134
* Backporting to abandoned branches.
135135
* Backports identified by the V8 team. Bugs identified by upstream V8 that we haven't encountered in Node.js yet.
136136

137-
## Unfixed Upstream Bugs
137+
### Unfixed Upstream Bugs
138138

139139
If the bug can be reproduced on the [`vee-eight-lkgr` branch](https://github.com/v8/node/tree/vee-eight-lkgr), Chromium canary, or V8 tip-of-tree, and the test case is valid, then the bug needs to be fixed upstream first.
140140

@@ -144,7 +144,7 @@ If the bug can be reproduced on the [`vee-eight-lkgr` branch](https://github.com
144144
* V8's build waterfall tests your change.
145145
* Once the bug is fixed it may still need backporting, if it exists in other V8 branches that are still active or are branches that Node.js cares about. Follow the process for backporting below.
146146

147-
## Backporting to Active Branches
147+
### Backporting to Active Branches
148148

149149
If the bug exists in any of the active V8 branches, we may need to get the fix backported. At any given time there are [two active branches](https://build.chromium.org/p/client.v8.branches/console) (beta and stable) in addition to master. The following steps are needed to backport the fix:
150150

@@ -160,7 +160,7 @@ If the bug exists in any of the active V8 branches, we may need to get the fix b
160160
* It is possible that the merge request may not get approved, for example if it is considered to be a feature or otherwise too risky for V8 stable. In such cases we float the patch on the Node.js side. See the process on 'Backporting to Abandoned branches'.
161161
* Once the fix has been merged upstream, it can be picked up during an update of the V8 branch, (see below).
162162

163-
## Backporting to Abandoned Branches
163+
### Backporting to Abandoned Branches
164164

165165
Abandoned V8 branches are supported in the Node.js V8 repository. The fix needs
166166
to be cherry-picked in the Node.js repository and V8-CI must test the change.
@@ -179,7 +179,7 @@ example workflow:
179179

180180
* Download and apply the commit linked-to in the issue (in this case a51f429). `curl -L https://github.com/v8/v8/commit/a51f429.patch | git am -3 --directory=deps/v8`. If the branches have diverged significantly, this may not apply cleanly. It may help to try to cherry-pick the merge to the oldest branch that was done upstream in V8. In this example, this would be the patch from the merge to 5.2. The hope is that this would be closer to the V8 5.1, and has a better chance of applying cleanly. If you're stuck, feel free to ping @ofrobots for help.
181181
* Modify the commit message to match the format we use for V8 backports and replace yourself as the author. `git commit --amend --reset-author`. You may want to add extra description if necessary to indicate the impact of the fix on Node.js. In this case the original issue was descriptive enough. Example:
182-
```
182+
```console
183183
deps: cherry-pick a51f429 from V8 upstream
184184

185185
Original commit message:
@@ -200,7 +200,7 @@ PR-URL: <pr link>
200200
```
201201
* Open a PR against the `v6.x-staging` branch in the Node.js repo. Launch the normal and [V8-CI](https://ci.nodejs.org/job/node-test-commit-v8-linux/) using the Node.js CI system. We only needed to backport to `v6.x` as the other LTS branches weren't affected by this bug.
202202

203-
## Backports Identified by the V8 team
203+
### Backports Identified by the V8 team
204204

205205
For bugs found through the browser or other channels, the V8 team marks bugs
206206
that might be applicable to the abandoned branches in use by Node.js. This is
@@ -220,13 +220,13 @@ to shepherd through the backport process. External contributors are welcome to
220220
collaborate on the backport process as well. Note that some of the bugs may be
221221
security issues and will not be visible to external collaborators.
222222

223-
# Updating V8
223+
## Updating V8
224224

225225
Node.js keeps a vendored copy of V8 inside of deps/ directory. In addition
226226
Node.js may need to float patches that do not exist upstream. This means that
227227
some care may need to be taken to update the vendored copy of V8.
228228

229-
## Minor updates (patch level)
229+
### Minor updates (patch level)
230230

231231
Because there may be floating patches on the version of V8 in Node.js, it is
232232
safest to apply the patch level updates as a patch. For example, imagine that
@@ -254,7 +254,7 @@ V8 also keeps tags of the form *5.4-lkgr* which point to the *Last Known Good
254254
Revision* from the 5.4 branch that can be useful in the update process above.
255255

256256

257-
## Major Updates
257+
### Major Updates
258258

259259
We upgrade the version of V8 in Node.js master whenever a V8 release goes stable
260260
upstream, that is, whenever a new release of Chrome comes out.
@@ -285,7 +285,7 @@ them once you have reviewed them.
285285

286286
This should be followed up with manual refloating of all relevant patches.
287287

288-
# Proposal: Using a fork repo to track upstream V8
288+
## Proposal: Using a fork repo to track upstream V8
289289

290290
The fact that Node.js keeps a vendored, potentially edited copy of V8 in deps/
291291
makes the above processes a bit complicated. An alternative proposal would be to
@@ -304,7 +304,7 @@ This would require some tooling to:
304304
* We need a script to bump V8 version numbers when a new version of V8 is promoted from nodejs/v8 to nodejs/node.
305305
* Enabled the V8-CI build in Jenkins to build from the nodejs/v8 fork.
306306

307-
# Proposal: Dealing with the need to float patches to a stable/beta
307+
## Proposal: Dealing with the need to float patches to a stable/beta
308308

309309
Sometimes upstream V8 may not want to merge a fix to their stable branches, but
310310
we might. An example of this would be a fix for a performance regression that
@@ -323,7 +323,7 @@ We are trying this out in https://github.com/nodejs/node/pull/9754. If this ends
323323
up working, we will investigate making this change upstream.
324324

325325
<!-- Footnotes themselves at the bottom. -->
326-
## Notes
326+
### Notes
327327

328328
<sup>1</sup>Node.js 0.12 and older are intentionally omitted from this document as their support is ending soon.
329329

doc/guides/writing-tests.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -319,14 +319,14 @@ static void at_exit_callback(void* arg) {
319319
```
320320
321321
Next add the test to the `sources` in the `cctest` target in node.gyp:
322-
```
322+
```console
323323
'sources': [
324324
'test/cctest/test_env.cc',
325325
...
326326
],
327327
```
328328
The test can be executed by running the `cctest` target:
329-
```
329+
```console
330330
$ make cctest
331331
```
332332

doc/releases.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ Create a new blog post by running the [nodejs.org release-post.js script](https:
296296
* The links to the download files won't be complete unless you waited for the ARMv6 builds. Any downloads that are missing will have `*Coming soon*` next to them. It's your responsibility to manually update these later when you have the outstanding builds.
297297
* The SHASUMS256.txt.asc content is at the bottom of the post. When you update the list of tarballs you'll need to copy/paste the new contents of this file to reflect those changes.
298298
* Always use pull-requests on the nodejs.org repo. Be respectful of that working group, but you shouldn't have to wait for PR sign-off. Opening a PR and merging it immediately _should_ be fine. However, please follow the following commit message format:
299-
```
299+
```console
300300
Blog: vX.Y.Z release post
301301

302302
Refs: <full URL to your release proposal PR>

0 commit comments

Comments
 (0)