Skip to content

Commit cb023a3

Browse files
committed
tools: update stability index linking logic
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]>
1 parent 9cf2341 commit cb023a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/doc/html.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ function preprocessElements({ filename }) {
220220

221221
// Do not link to the section we are already in.
222222
const noLinking = filename.includes('documentation') &&
223-
heading !== null && heading.children[0].value === 'Stability Index';
223+
heading !== null && heading.children[0].value === 'Stability index';
224224

225225
// Collapse blockquote and paragraph into a single node
226226
node.type = 'paragraph';

0 commit comments

Comments
 (0)