GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — tools,doc: add "legacy" badge in the TOC · nodejs/node@571afd3

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api_assets
    • style.css
  • tools/doc
    • html.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api_assets/style.css‎

Copy file name to clipboardExpand all lines: doc/api_assets/style.css
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,14 @@ hr {
515515
padding: 1px 3px;
516516
border-radius: 3px;
517517
}
518+
#toc .stability_3::after {
519+
background-color: var(--blue1);
520+
color: var(--white);
521+
content: "legacy";
522+
margin-left: .25rem;
523+
padding: 1px 3px;
524+
border-radius: 3px;
525+
}
518526

519527
#apicontent li {
520528
margin-bottom: .5rem;
Collapse file

‎tools/doc/html.js‎

Copy file name to clipboardExpand all lines: tools/doc/html.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,9 @@ function preprocessElements({ filename }) {
234234
const [, prefix, number, explication] =
235235
text.value.match(STABILITY_RE);
236236

237-
const isStabilityIndex =
238-
index - 2 === headingIndex || // General.
239-
index - 3 === headingIndex; // With api_metadata block.
237+
// Stability indices are never more than 3 nodes away from their
238+
// heading.
239+
const isStabilityIndex = index - headingIndex <= 3;
240240

241241
if (heading && isStabilityIndex) {
242242
heading.stability = number;

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.