doc: tests local links in markdown documents · nodejs/node@6d4d299 · GitHub
Skip to content

Commit 6d4d299

Browse files
aduh95addaleax
authored andcommitted
doc: tests local links in markdown documents
PR-URL: #32359 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 1905b9e commit 6d4d299

6 files changed

Lines changed: 84 additions & 9 deletions

File tree

Makefile

Lines changed: 1 addition & 0 deletions

doc/guides/collaborator-guide.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737

3838
This document explains how Collaborators manage the Node.js project.
3939
Collaborators should understand the
40-
[guidelines for new contributors](CONTRIBUTING.md) and the
41-
[project governance model](GOVERNANCE.md).
40+
[guidelines for new contributors](../../CONTRIBUTING.md) and the
41+
[project governance model](../../GOVERNANCE.md).
4242

4343
## Issues and Pull Requests
4444

@@ -50,7 +50,7 @@ request. See [Who to CC in the issue tracker](#who-to-cc-in-the-issue-tracker).
5050

5151
Always show courtesy to individuals submitting issues and pull requests. Be
5252
welcoming to first-time contributors, identified by the GitHub
53-
![First-time contributor](./doc/first_timer_badge.png) badge.
53+
![First-time contributor](../first_timer_badge.png) badge.
5454

5555
For first-time contributors, check if the commit author is the same as the pull
5656
request author. This way, once their pull request lands, GitHub will show them
@@ -474,7 +474,7 @@ $ git checkout master
474474
```
475475

476476
Update the tree (assumes your repo is set up as detailed in
477-
[CONTRIBUTING.md](./doc/guides/contributing/pull-requests.md#step-1-fork)):
477+
[CONTRIBUTING.md](./contributing/pull-requests.md#step-1-fork)):
478478

479479
```text
480480
$ git fetch upstream

doc/guides/cpp-style-guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# C++ Style Guide
22

3-
See also the [C++ codebase README](src/README.md) for C++ idioms in the Node.js
4-
codebase not related to stylistic issues.
3+
See also the [C++ codebase README](../../src/README.md) for C++ idioms in the
4+
Node.js codebase not related to stylistic issues.
55

66
## Table of Contents
77

doc/guides/releases.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,8 @@ accordingly by removing the bold styling from the previous release.
322322
If this release includes new APIs then it is necessary to document that they
323323
were first added in this version. The relevant commits should already include
324324
`REPLACEME` tags as per the example in the
325-
[docs README](../tools/doc/README.md). Check for these tags with `grep REPLACEME
326-
doc/api/*.md`, and substitute this node version with `sed -i
325+
[docs README](../../tools/doc/README.md). Check for these tags with `grep
326+
REPLACEME doc/api/*.md`, and substitute this node version with `sed -i
327327
"s/REPLACEME/$VERSION/g" doc/api/*.md` or `perl -pi -e "s/REPLACEME/$VERSION/g"
328328
doc/api/*.md`.
329329

onboarding.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ onboarding session.
8383
* Be nice about closing issues! Let people know why, and that issues and PRs
8484
can be reopened if necessary
8585

86-
* [**See "Labels"**](./onboarding-extras.md#labels)
86+
* [**See "Labels"**](./doc/guides/onboarding-extras.md#labels)
8787
* There is [a bot](https://github.com/nodejs-github-bot/github-bot) that
8888
applies subsystem labels (for example, `doc`, `test`, `assert`, or `buffer`)
8989
so that we know what parts of the code base the pull request modifies. It is

tools/doc/checkLinks.js

Lines changed: 74 additions & 0 deletions

0 commit comments

Comments
 (0)