Skip to content

Commit 5a1252d

Browse files
panvaRafaelGSS
authored andcommitted
doc: use module names in stability overview table
PR-URL: #45312 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Daeyeon Jeong <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 44de232 commit 5a1252d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/doc/stability.mjs

+3-2
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,23 @@ function collectStability(data) {
3232

3333
stability.push({
3434
api: mod.name,
35+
displayName: mod.textRaw,
3536
link: link,
3637
stability: mod.stability,
3738
stabilityText: `(${mod.stability}) ${mod.stabilityText}`,
3839
});
3940
}
4041
}
4142

42-
stability.sort((a, b) => a.api.localeCompare(b.api));
43+
stability.sort((a, b) => a.displayName.localeCompare(b.displayName));
4344
return stability;
4445
}
4546

4647
function createMarkdownTable(data) {
4748
const md = ['| API | Stability |', '| --- | --------- |'];
4849

4950
for (const mod of data) {
50-
md.push(`| [${mod.api}](${mod.link}) | ${mod.stabilityText} |`);
51+
md.push(`| [${mod.displayName}](${mod.link}) | ${mod.stabilityText} |`);
5152
}
5253

5354
return md.join('\n');

0 commit comments

Comments
 (0)