diff options
author | Filip Skokan <panva.ip@gmail.com> | 2022-11-06 12:32:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-06 12:32:28 +0300 |
commit | 4a258b206032ae8ade6544825bccdd70ea0ae59c (patch) | |
tree | 0f8b0e2afd0bb752a10ec8e108c02dcc24134ad3 /tools | |
parent | 9ae89201757ca1859c7c10b16ba423c1910f5fb2 (diff) |
doc: use module names in stability overview table
PR-URL: https://github.com/nodejs/node/pull/45312
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/doc/stability.mjs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/doc/stability.mjs b/tools/doc/stability.mjs index 68d77cc4593..479269df439 100644 --- a/tools/doc/stability.mjs +++ b/tools/doc/stability.mjs @@ -32,6 +32,7 @@ function collectStability(data) { stability.push({ api: mod.name, + displayName: mod.textRaw, link: link, stability: mod.stability, stabilityText: `(${mod.stability}) ${mod.stabilityText}`, @@ -39,7 +40,7 @@ function collectStability(data) { } } - stability.sort((a, b) => a.api.localeCompare(b.api)); + stability.sort((a, b) => a.displayName.localeCompare(b.displayName)); return stability; } @@ -47,7 +48,7 @@ function createMarkdownTable(data) { const md = ['| API | Stability |', '| --- | --------- |']; for (const mod of data) { - md.push(`| [${mod.api}](${mod.link}) | ${mod.stabilityText} |`); + md.push(`| [${mod.displayName}](${mod.link}) | ${mod.stabilityText} |`); } return md.join('\n'); |