Skip to content

Commit

Permalink
tools: update stability index linking logic
Browse files Browse the repository at this point in the history
Fix logic that prevents stability index text from linking to itself.

PR-URL: nodejs#36280
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
Trott authored and cjihrig committed Dec 8, 2020
1 parent aac6bc1 commit 62b678d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/doc/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 62b678d

Please sign in to comment.