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: #36280
Reviewed-By: Daijiro Wachi <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
  • Loading branch information
Trott authored and danielleadams committed Dec 7, 2020
1 parent 0401ffb commit 8cf1add
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 8cf1add

Please sign in to comment.