Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
tools: adds 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.
  • Loading branch information
michaelcox committed Mar 3, 2017
commit 412f1e64911df25c1d5848c3632a759d6fbc02c6
5 changes: 4 additions & 1 deletion tools/doc/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
'<pre class="api_stability api_stability_$2">$1 $2$3</pre>'
`<pre class="${classNames}"><a href="${docsUrl}">$1 $2</a>$3</pre>`
);
return text;
}
Expand Down