Skip to content

Commit aba0643

Browse files
committed
fix: update meta.json structure and dynamically sort categories in build-docs script
1 parent 5342987 commit aba0643

File tree

2 files changed

+11
-16
lines changed

2 files changed

+11
-16
lines changed

content/docs/references/meta.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
{
22
"title": "Protocol Reference",
33
"pages": [
4-
"data",
5-
"ui",
6-
"automation",
7-
"system",
8-
"permission",
94
"ai",
105
"api",
11-
"driver"
6+
"auth",
7+
"automation",
8+
"contracts",
9+
"data",
10+
"hub",
11+
"integration",
12+
"permission",
13+
"shared",
14+
"system",
15+
"ui"
1216
]
1317
}

packages/spec/scripts/build-docs.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -303,16 +303,7 @@ Object.entries(CATEGORIES).forEach(([category, title]) => {
303303
// We want references to list categories in specific order
304304
const rootMetaProps = {
305305
title: "Protocol Reference",
306-
pages: [
307-
"data",
308-
"ui",
309-
"automation",
310-
"system",
311-
"permission",
312-
"ai",
313-
"api",
314-
"driver"
315-
]
306+
pages: Object.keys(CATEGORIES).sort()
316307
};
317308
fs.writeFileSync(path.join(DOCS_ROOT, 'meta.json'), JSON.stringify(rootMetaProps, null, 2));
318309

0 commit comments

Comments
 (0)