Skip to content

Commit b42f4e0

Browse files
authored
chore(remark-lint): improve for node core (#9016)
* chore(remark-lint): improve for node core * fixup! * fixup! * fixup! * fixup!
1 parent 0492dea commit b42f4e0

22 files changed

Lines changed: 503 additions & 59 deletions
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@node-core/remark-lint': patch
3+
---
4+
5+
Add link validation and fix issues in type validation

apps/site/.remarkrc.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
11
{
2-
"plugins": ["remark-frontmatter", "@node-core/remark-lint"]
2+
"plugins": [
3+
"remark-frontmatter",
4+
"@node-core/remark-lint",
5+
[
6+
"@node-core/remark-lint/rules/validate-links",
7+
{
8+
"ignoreFiles": ["pages/!(en)/**/*.{md,mdx}"],
9+
"ignoreLinks": ["/learn", "/learn/**/*", "/static/**/*", "/feed/*"]
10+
}
11+
]
12+
]
313
}

apps/site/eslint.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ export default baseConfig.concat([
4343
},
4444

4545
{
46+
// TODO: Enable validate-links for translations once their routes and
47+
// anchors are kept in sync with the English content.
4648
...mdx.flat,
4749
processor: mdx.createRemarkProcessor({ lintCodeBlocks: true }),
4850
rules: {

apps/site/pages/en/about/eol.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Major versions of Node.js are released, patched, and designated End-Of-Life on a
2020
</Button>
2121
</div>
2222

23-
[View the Node.js release schedule](/about/releases/).
23+
[View the Node.js release schedule](/about/previous-releases/).
2424

2525
## What Happens When a Release Line Reaches EOL
2626

apps/site/pages/en/blog/community/building-nodejs-together.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ living breathing website whose content is created by our end users and team.
2626
The website should be the canonical location for documentation on how to use
2727
Node.js, how Node.js works, and how to find out what's going on in the Node
2828
community. We have seeded the initial documentation with [how to
29-
contribute](/about/get-involved/contribute/), [who the core team
30-
is](/about/organization/#index_md_technical_steering_committee),
29+
contribute](https://github.com/nodejs/node/blob/main/CONTRIBUTING.md), [who the core team
30+
is](https://github.com/nodejs/node),
3131
and some basic documentation of the [project
32-
itself](/about/organization). From there we're looking to
32+
itself](https://github.com/nodejs/TSC). From there we're looking to
3333
enable the community to come in and build out the rest of the framework for
3434
documentation.
3535

3636
One of the key changes here is that we're extending the tools that generate API
3737
documentation to work for the website in general. That means the website is now
3838
written in markdown. Contributions work with the same
39-
[pull-request](/about/get-involved/contribute/#code-contributions)
39+
[pull-request](https://github.com/nodejs/node/blob/main/CONTRIBUTING.md#pull-requests)
4040
way as contributions to Node itself. The intent here is to be able to quickly
4141
generate new documentation and improve it with feedback from the community.
4242

@@ -56,8 +56,7 @@ Road](http://blog.nodejs.org/2014/06/11/notes-from-the-road/) events there are
5656
often questions about what does and doesn't go into core. How the team
5757
identifies what those features are and when you decide to integrate them. I've
5858
spent a lot of time talking about that but I've also
59-
[added](/about/organization) it to the new documentation on
60-
the site.
59+
added it to the new documentation on the site.
6160

6261
It's pretty straight forward, but in short if Node.js needs an interface to
6362
provide an abstraction, or if everyone in the community is using the same
@@ -144,7 +143,7 @@ responsible for the entirety of that subsystem, but they guide its progress by
144143
communicating with end users, reviewing bugs and pull requests, and identifying
145144
test cases and consumers of new features. People come and go from the core
146145
team, and recently we've added [some
147-
documentation](/about/organization) that describes how you
146+
documentation](https://github.com/nodejs/TSC) that describes how you
148147
find your way onto that team. It's based largely around our contribution
149148
process. It's not about who you work for, or about who you know, it's about
150149
your ability to provide technical improvement to the project itself.

apps/site/pages/en/blog/release/v8.0.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ as well.
5252
The [N-API](https://nodejs.org/api/n-api.html) is experimental in Node.js 8.0.0,
5353
so significant changes in the implementation and API should be expected. Native
5454
addon developers are
55-
[encouraged to begin working with the API](/guides/publishing-napi-modules/)
55+
[encouraged to begin working with the API](/learn/modules/publishing-node-api-modules)
5656
as soon as possible and to provide feedback that will be necessary to ensure
5757
that the new API meets the needs of the ecosystem.
5858

apps/site/pages/en/blog/uncategorized/evolving-the-node-js-brand.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ We look forward to exploring this visual language as the technology charges into
3030

3131
We hope you'll have fun using it.
3232

33-
To download the new logo, visit [nodejs.org/en/about/resources/](/about/resources/).
33+
To download the new logo, visit [our branding page](https://nodejs.org/en/about/branding)
3434

3535
![Tri-color Node](/static/images/blog/uncategorized/evolving-the-node-js-brand/tri-color-node.png)

apps/site/pages/en/blog/vulnerability/february-2016-security-releases.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Régis Leroy reported defects in Node.js that can make [request smuggling](https
2323
While the impact of this vulnerability is application and network dependent, it is likely to be difficult to assess whether a Node.js deployment is vulnerable to attack. We therefore recommend that all users upgrade.
2424

2525
- Versions 0.10.x of Node.js are **vulnerable**, please upgrade to [v0.10.42 (Maintenance)](/blog/release/v0.10.42/).
26-
- Versions 0.12.x of Node.js are **vulnerable**, please upgrade to [v0.12.10 (LTS)](blog/release/v0.12.10/).
26+
- Versions 0.12.x of Node.js are **vulnerable**, please upgrade to [v0.12.10 (LTS)](/blog/release/v0.12.10/).
2727
- Versions 4.x, including LTS Argon, of Node.js are **vulnerable**, please upgrade to [v4.3.0 "Argon" (LTS)](/blog/release/v4.3.0/).
2828
- Versions 5.x of Node.js are **vulnerable**, please upgrade to [v5.6.0 (Stable)](/blog/release/v5.6.0/).
2929

apps/site/pages/en/blog/vulnerability/february-2024-security-releases.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,6 @@ Releases will be available on, or shortly after, Tuesday February 6 2024.
167167

168168
## Contact and future updates
169169

170-
The current Node.js security policy can be found at [https://nodejs.org/security/](/security/). Please follow the process outlined in <https://github.com/nodejs/node/security/policy> if you wish to report a vulnerability in Node.js.
170+
Please follow the process outlined in <https://github.com/nodejs/node/security/policy> if you wish to report a vulnerability in Node.js.
171171

172172
Subscribe to the low-volume announcement-only nodejs-sec mailing list at <https://groups.google.com/forum/#!forum/nodejs-sec> to stay up to date on security vulnerabilities and security-related releases of Node.js and the projects maintained in the nodejs GitHub organization.

apps/site/pages/en/blog/vulnerability/july-2022-security-releases.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ Releases will be available on, or shortly after, Tuesday, July 5th, 2022.
191191
However, when details of the OpenSSL defects are released on the 5th, our team will be making a more detailed assessment
192192
on the likely severity for Node.js users.
193193

194-
The OpenSSL release may delay the Node.js release date. See [OpenSSL Security Release](#update-04-07-2022-openssl-security-release)
194+
The OpenSSL release may delay the Node.js release date.
195195

196196
Please monitor the **nodejs-sec** Google Group for updates, including a decision within 24 hours after the OpenSSL release regarding release timing, and full details of the defects upon eventual release: https://groups.google.com/forum/#!forum/nodejs-sec
197197

0 commit comments

Comments
 (0)