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>
This commit is contained in:
Filip Skokan authored and Danielle Adams committed 2023-01-03 08:38:36 -05:00
1 parent 28b937ae38
commit d2fc2aa666
1 file changed
+3 -2
+3 -2
View File
@@ -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');