@@ -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-
8071function 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' ,
0 commit comments