Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3858861

Browse filesBrowse files
michaelcoxMylesBorins
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 <thechargingvolcano@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
1 parent e3105cf commit 3858861
Copy full SHA for 3858861

File tree

Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed
Open diff view settings
Collapse file

‎tools/doc/html.js‎

Copy file name to clipboardExpand all lines: tools/doc/html.js
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,12 @@ function linkJsTypeDocs(text) {
322322
}
323323

324324
function parseAPIHeader(text) {
325+
const classNames = 'api_stability api_stability_$2';
326+
const docsUrl = 'documentation.html#documentation_stability_index';
327+
325328
text = text.replace(
326329
STABILITY_TEXT_REG_EXP,
327-
'<pre class="api_stability api_stability_$2">$1 $2$3</pre>'
330+
`<pre class="${classNames}"><a href="${docsUrl}">$1 $2</a>$3</pre>`
328331
);
329332
return text;
330333
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.