Skip to content
Browse files

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 <>
Reviewed-By: James M Snell <>
Reviewed-By: Franziska Hinkelmann <>
  • Loading branch information
michaelcox authored and fhinkel committed Mar 9, 2017
1 parent 6d16048 commit dd76f5f661fc59958f674e89b4f951bf6a56d179
Showing with 4 additions and 1 deletion.
  1. +4 −1 tools/doc/html.js
@@ -352,9 +352,12 @@ function linkJsTypeDocs(text) {

function parseAPIHeader(text) {
const classNames = 'api_stability api_stability_$2';
const docsUrl = 'documentation.html#documentation_stability_index';

text = text.replace(
'<pre class="api_stability api_stability_$2">$1 $2$3</pre>'
`<pre class="${classNames}"><a href="${docsUrl}">$1 $2</a>$3</pre>`
return text;

0 comments on commit dd76f5f

Please sign in to comment.
You can’t perform that action at this time.