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 targos committed May 1, 2021
1 parent 280d1b0 commit 2183a2b
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 2183a2b

Please sign in to comment.