From 5e7baa5a72dc28338dfa495788bf2b52132d6aa8 Mon Sep 17 00:00:00 2001 From: Michael Cox Date: Thu, 2 Mar 2017 15:58:26 -0500 Subject: [PATCH] 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: https://github.com/nodejs/node/pull/11664 Reviewed-By: Sakthipriyan Vairamani Reviewed-By: James M Snell Reviewed-By: Franziska Hinkelmann --- tools/doc/html.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/doc/html.js b/tools/doc/html.js index 10b04a1b9887e4..185a6660047eb4 100644 --- a/tools/doc/html.js +++ b/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( STABILITY_TEXT_REG_EXP, - '
$1 $2$3
' + `
$1 $2$3
` ); return text; }