Skip to content

Commit 5e7baa5

Browse files
michaelcoxitaloacasas
authored andcommitted
tools: add links to the stability index reference
This modifies the script that generates the docs to create a static link from each Stability Index callout bar to the Stability Index explanations in documentation.html. PR-URL: #11664 Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]>
1 parent c5874d1 commit 5e7baa5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/doc/html.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -352,9 +352,12 @@ function linkJsTypeDocs(text) {
352352
}
353353

354354
function parseAPIHeader(text) {
355+
const classNames = 'api_stability api_stability_$2';
356+
const docsUrl = 'documentation.html#documentation_stability_index';
357+
355358
text = text.replace(
356359
STABILITY_TEXT_REG_EXP,
357-
'<pre class="api_stability api_stability_$2">$1 $2$3</pre>'
360+
`<pre class="${classNames}"><a href="${docsUrl}">$1 $2</a>$3</pre>`
358361
);
359362
return text;
360363
}

0 commit comments

Comments
 (0)