diff options
author | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2018-08-05 18:44:22 +0300 |
---|---|---|
committer | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2018-08-08 20:56:08 +0300 |
commit | 5fded26e9e386ce275176d7c9457c7dd02e22dc3 (patch) | |
tree | b5176c84a46576617d9b79e9ec4698cd4804b36d /tools | |
parent | 41ae423718cb312c52c7b3bca1988130a2c417f6 (diff) | |
download | node-new-5fded26e9e386ce275176d7c9457c7dd02e22dc3.tar.gz |
tools: do not autolink section to itself
Fix a regression in the new doc generation toolchain.
PR-URL: https://github.com/nodejs/node/pull/22138
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Sam Ruby <rubys@intertwingly.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/doc/html.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/doc/html.js b/tools/doc/html.js index ce137f5d11..f2be43a38b 100644 --- a/tools/doc/html.js +++ b/tools/doc/html.js @@ -226,8 +226,8 @@ function preprocessElements({ filename }) { } // Do not link to the section we are already in. - const noLinking = filename === 'documentation' && - heading !== null && heading.value === 'Stability Index'; + const noLinking = filename.includes('documentation') && + heading !== null && heading.children[0].value === 'Stability Index'; // collapse blockquote and paragraph into a single node node.type = 'paragraph'; |