From 9ab1f50e07f7258f9bff21cad16eabccf2db622b Mon Sep 17 00:00:00 2001 From: gked Date: Mon, 6 Jan 2025 17:18:42 -0800 Subject: [PATCH] [docs]: Fixed side navigation bug I introduced by my earlier change --- docs/.vuepress/configs/sidebar/en.ts | 60 +++++++++++++++++++--------- 1 file changed, 42 insertions(+), 18 deletions(-) diff --git a/docs/.vuepress/configs/sidebar/en.ts b/docs/.vuepress/configs/sidebar/en.ts index ced0a7a..1ab9731 100644 --- a/docs/.vuepress/configs/sidebar/en.ts +++ b/docs/.vuepress/configs/sidebar/en.ts @@ -2,23 +2,47 @@ import type { SidebarOptions } from '@vuepress/theme-default' export const sidebarEn: SidebarOptions = { '/guide/': [ - // ... existing guide config stays the same + { + text: 'Users', + children: [ + '/guide/getting-started.md', + '/guide/monetization/', + '/guide/easy-node/', + '/guide/full-node/', + ], + }, ], + '/dev/': [ - // ... existing dev config stays the same + { + text: 'Developers', + children: [ + '/dev/introduction.md', + '/dev/CONTRIBUTING.md', + ], + }, ], - '/dev/node': [ - // ... existing node config stays the same + '/dev/node/': [ + { + text: 'Blockchain Node', + children: [ + '/dev/node/get-started.md', + '/dev/node/source.md', + '/dev/node/building.md', + '/dev/node/usage.md', + '/dev/node/rpc.md', + ], + }, ], - '/dev/api': [ + '/dev/api/': [ { text: 'Proxy & API', children: [ - 'todo.md', - 'introduction.md', - 'get-started.md', - 'rpc.md', - 'miniapps.md', + '/dev/api/todo.md', + '/dev/api/introduction.md', + '/dev/api/get-started.md', + '/dev/api/rpc.md', + '/dev/api/miniapps.md', ], }, ], @@ -26,20 +50,20 @@ export const sidebarEn: SidebarOptions = { { text: 'Mini Apps', children: [ - 'get-started.md', - 'permissions.md', - 'sdk.md', + '/dev/apps/miniapps/get-started.md', + '/dev/apps/miniapps/permissions.md', + '/dev/apps/miniapps/sdk.md', ], }, ], - '/dev/apps': [ + '/dev/apps/': [ { text: 'Applications', children: [ - 'introduction.md', - 'get-started.md', - 'mini-apps.md', - 'barteron-app.md', + '/dev/apps/introduction.md', + '/dev/apps/get-started.md', + '/dev/apps/mini-apps.md', + '/dev/apps/barteron-app.md', ], }, ],