-
Notifications
You must be signed in to change notification settings - Fork 1k
Expand file tree
/
Copy pathsidebars.ts
More file actions
118 lines (115 loc) · 3.76 KB
/
Copy pathsidebars.ts
File metadata and controls
118 lines (115 loc) · 3.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
import type { SidebarsConfig } from '@docusaurus/plugin-content-docs';
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
const sidebars: SidebarsConfig = {
sidebar: [
// Ask AI Chat - direct doc link at top level with star icon styling
{
type: 'doc',
id: 'ask-ai/ask-ai',
label: 'Ask AI Chat',
className: 'sidebar-ask-ai',
},
// Intro section header
{
type: 'html',
value: '<div class="spacetime-menu-header">Intro</div>',
defaultStyle: false,
},
// Flatten Getting Started items directly under Intro
{ type: 'autogenerated', dirName: '00100-intro/00100-getting-started' },
{
type: 'category',
label: 'Quickstarts',
collapsed: true,
link: { type: 'doc', id: 'intro/quickstarts/react' },
items: [{ type: 'autogenerated', dirName: '00100-intro/00200-quickstarts' }],
},
{
type: 'category',
label: 'Tutorials',
collapsed: true,
link: { type: 'doc', id: 'intro/tutorials/chat-app' },
items: [{ type: 'autogenerated', dirName: '00100-intro/00300-tutorials' }],
},
// Core Concepts section header
{
type: 'html',
value: '<div class="spacetime-menu-header">Core Concepts</div>',
defaultStyle: false,
},
{
type: 'category',
label: 'Databases',
collapsed: true,
link: { type: 'doc', id: 'core-concepts/databases' },
items: [{ type: 'autogenerated', dirName: '00200-core-concepts/00100-databases' }],
},
{
type: 'category',
label: 'Functions',
collapsed: true,
link: { type: 'doc', id: 'core-concepts/functions' },
items: [{ type: 'autogenerated', dirName: '00200-core-concepts/00200-functions' }],
},
{
type: 'category',
label: 'Tables',
collapsed: true,
link: { type: 'doc', id: 'core-concepts/tables' },
items: [{ type: 'autogenerated', dirName: '00200-core-concepts/00300-tables' }],
},
{
type: 'category',
label: 'Authentication',
collapsed: true,
link: { type: 'doc', id: 'core-concepts/authentication' },
items: [{ type: 'autogenerated', dirName: '00200-core-concepts/00500-authentication' }],
},
{
type: 'category',
label: 'Clients',
collapsed: true,
link: { type: 'doc', id: 'core-concepts/clients' },
items: [
{ type: 'doc', id: 'core-concepts/clients/codegen' },
{ type: 'doc', id: 'core-concepts/clients/connection' },
{ type: 'doc', id: 'core-concepts/clients/sdk-api' },
{
type: 'category',
label: 'Subscriptions',
collapsed: true,
link: { type: 'doc', id: 'core-concepts/subscriptions' },
items: [{ type: 'autogenerated', dirName: '00200-core-concepts/00400-subscriptions' }],
},
{ type: 'doc', id: 'core-concepts/clients/rust-reference' },
{ type: 'doc', id: 'core-concepts/clients/csharp-reference' },
{ type: 'doc', id: 'core-concepts/clients/typescript-reference' },
{ type: 'doc', id: 'core-concepts/clients/unreal-reference' },
],
},
// Developer Resources section header
{
type: 'html',
value: '<div class="spacetime-menu-header">Developer Resources</div>',
defaultStyle: false,
},
{
type: 'ref',
label: 'Migrating from 1.0 to 2.0',
id: 'resources/how-to/migrating-to-2.0',
},
{
type: 'category',
label: 'How To',
collapsed: true,
items: [{ type: 'autogenerated', dirName: '00300-resources/00100-how-to' }],
},
{
type: 'category',
label: 'References',
collapsed: true,
items: [{ type: 'autogenerated', dirName: '00300-resources/00200-reference' }],
},
],
};
export default sidebars;