Skip to content

Commit 181691b

Browse files
committed
docs: update docs index
1 parent 87983c5 commit 181691b

2 files changed

Lines changed: 27 additions & 29 deletions

File tree

‎docs/.vitepress/config.ts‎

Lines changed: 17 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@ function guideGroups(prefix: string) {
2323
items: [
2424
{ text: 'Introduction', link: `${prefix}/guide/` },
2525
{ text: 'Devframe Definition', link: `${prefix}/guide/devframe-definition` },
26-
{ text: 'Scoped Context', link: `${prefix}/guide/scoped-context` },
27-
{ text: 'Cross-Plugin Services', link: `${prefix}/guide/services` },
2826
{ text: 'RPC', link: `${prefix}/guide/rpc` },
2927
{ text: 'Shared State', link: `${prefix}/guide/shared-state` },
30-
{ text: 'Streaming', link: `${prefix}/guide/streaming` },
31-
{ text: 'When Clauses', link: `${prefix}/guide/when-clauses` },
3228
{ text: 'Structured Diagnostics', link: `${prefix}/guide/diagnostics` },
29+
{ text: 'Agent-Native', link: `${prefix}/guide/agent-native` },
30+
{ text: 'JSON-Render', link: `${prefix}/guide/json-render` },
31+
{ text: 'Streaming', link: `${prefix}/guide/streaming` },
32+
{ text: 'Scoped Context', link: `${prefix}/guide/scoped-context` },
33+
{ text: 'Standalone CLI', link: `${prefix}/guide/standalone-cli` },
3334
],
3435
},
3536
{
@@ -38,51 +39,41 @@ function guideGroups(prefix: string) {
3839
{ text: 'Client', link: `${prefix}/guide/client` },
3940
{ text: 'Transports', link: `${prefix}/guide/transports` },
4041
{ text: 'Security', link: `${prefix}/guide/security` },
41-
{ text: 'Deep Linking', link: `${prefix}/guide/deep-linking` },
42-
],
43-
},
44-
{
45-
text: 'JSON-Render',
46-
items: [
47-
{ text: 'JSON-Render', link: `${prefix}/guide/json-render` },
48-
{ text: 'Build Your Own JSON-Render Frontend', link: `${prefix}/guide/build-your-own-json-render-frontend` },
4942
],
5043
},
5144
{
5245
text: 'Hub',
5346
items: [
5447
{ text: 'Hub', link: `${prefix}/guide/hub` },
55-
{ text: 'Serve a Hub Anywhere', link: `${prefix}/guide/hub-initiate` },
5648
{ text: 'Client Scripts & Context', link: `${prefix}/guide/client-context` },
57-
{ text: 'Build Your Own Hub UI', link: `${prefix}/guide/build-your-own-hub-ui` },
49+
{ text: 'Serve a Hub Anywhere', link: `${prefix}/guide/hub-initiate` },
50+
{ text: 'Cross-Plugin Services', link: `${prefix}/guide/services` },
51+
{ text: 'Deep Linking', link: `${prefix}/guide/deep-linking` },
5852
],
5953
},
6054
{
61-
text: 'Agent-Native',
55+
text: 'Customization',
6256
items: [
63-
{ text: 'Agent-Native', link: `${prefix}/guide/agent-native` },
57+
{ text: 'Build Your Own JSON-Render Frontend', link: `${prefix}/guide/build-your-own-json-render-frontend` },
58+
{ text: 'Build Your Own Hub UI', link: `${prefix}/guide/build-your-own-hub-ui` },
6459
],
6560
},
6661
{
67-
text: 'Recipes',
62+
text: 'References',
6863
items: [
69-
{ text: 'Standalone CLI', link: `${prefix}/guide/standalone-cli` },
64+
{ text: 'When Clauses', link: `${prefix}/guide/when-clauses` },
65+
{ text: 'Examples', link: `${prefix}/examples/` },
7066
],
7167
},
7268
] satisfies { text: string, items: DefaultTheme.NavItemWithLink[] }[]
7369
}
7470

75-
/** Flattened guide list — used by the top nav dropdown, which renders one level. */
76-
function guideItems(prefix: string) {
77-
return guideGroups(prefix).flatMap(group => group.items) satisfies DefaultTheme.NavItemWithLink[]
78-
}
79-
8071
function adaptersItems(prefix: string) {
8172
return [
8273
{ text: 'Overview', link: `${prefix}/adapters/` },
83-
{ text: 'CLI (cac)', link: `${prefix}/adapters/cac` },
84-
{ text: 'Dev', link: `${prefix}/adapters/dev` },
8574
{ text: 'Initiate (middleware)', link: `${prefix}/adapters/initiate` },
75+
{ text: 'Dev', link: `${prefix}/adapters/dev` },
76+
{ text: 'CLI', link: `${prefix}/adapters/cac` },
8677
{ text: 'Build', link: `${prefix}/adapters/build` },
8778
{ text: 'Vite DevTools', link: `${prefix}/adapters/vite` },
8879
{ text: 'Embedded', link: `${prefix}/adapters/embedded` },
@@ -174,10 +165,7 @@ export function devframeNav(prefix = ''): DefaultTheme.NavItem[] {
174165
return [
175166
{
176167
text: 'Guide',
177-
items: [
178-
...guideItems(prefix),
179-
{ text: 'Examples', link: `${prefix}/examples/` },
180-
],
168+
items: guideGroups(prefix),
181169
},
182170
{
183171
text: 'Adapters',

‎docs/.vitepress/theme/style.css‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,13 @@
4141
padding-bottom: 1rem;
4242
font-style: italic;
4343
}
44+
45+
.VPMenuGroup > .title {
46+
opacity: 0.5;
47+
}
48+
49+
li:not(:first-child) > .VPMenuGroup > .title {
50+
margin-top: 0.5rem;
51+
padding-top: 0.5rem;
52+
border-top: 1px solid var(--vp-c-divider);
53+
}

0 commit comments

Comments
 (0)