Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2020-11-26 16:52:46 +0300
committerMichaƫl Zasso <targos@protonmail.com>2021-05-01 10:44:35 +0300
commit2183a2be51f35c314ba43c09e77cc616573f5bb9 (patch)
tree9d200f51660467efff1dbafef23150b097d89892 /tools
parent280d1b09bec0bbd3c270e01cdc93f0fad94bf84a (diff)
tools: update stability index linking logic
Fix logic that prevents stability index text from linking to itself. PR-URL: https://github.com/nodejs/node/pull/36280 Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/doc/html.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/doc/html.js b/tools/doc/html.js
index 53b14e1e089..d35fd47b601 100644
--- a/tools/doc/html.js
+++ b/tools/doc/html.js
@@ -220,7 +220,7 @@ function preprocessElements({ filename }) {
// Do not link to the section we are already in.
const noLinking = filename.includes('documentation') &&
- heading !== null && heading.children[0].value === 'Stability Index';
+ heading !== null && heading.children[0].value === 'Stability index';
// Collapse blockquote and paragraph into a single node
node.type = 'paragraph';