-
Notifications
You must be signed in to change notification settings - Fork 9
/
sidebars.js
248 lines (242 loc) · 5.75 KB
/
sidebars.js
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
/**
* Creating a sidebar enables you to:
- create an ordered group of docs
- render a sidebar for each doc of that group
- provide next/previous navigation
The sidebars can be generated from the filesystem, or explicitly defined here.
Create as many sidebars as you want.
*/
// @ts-check
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
// By default, Docusaurus generates a sidebar from the docs folder structure
//tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
// But you can create a sidebar manually
Sidebar: [
{
type: 'doc',
id: 'index',
label: '文档首页',
},
{
type: 'doc',
id: 'v1-old/start',
label: 'V1 文档',
},
/*{
type: 'doc',
id: 'v1/start',
label: 'V1 新版文档',
},*/
{
type: 'doc',
id: 'v2/start',
label: 'V2 文档',
},
],
v1oldSidebar: [
{
type: 'doc',
id: 'v1-old/start',
label: 'McPatch 介绍',
},
{
type: 'category',
label: '安装教程',
collapsed: false,
link: {
type: 'generated-index',
title: '安装教程',
description: '安装 McPatch 需要做的事情',
slug: '/v1-old/guide',
keywords: ['v1-old/guides'],
image: '/img/docusaurus.png',
},
items: [
'v1-old/guide/preparations',
'v1-old/guide/manager',
'v1-old/guide/server',
'v1-old/guide/client',
'v1-old/guide/caution',
'v1-old/guide/auto-start',
],
},
{
type: 'category',
label: '常见问题解答',
collapsed: true,
link: {
type: 'generated-index',
title: '常见问题解答',
description: 'McPatch 常见问题解答',
slug: '/v1-old/faq',
keywords: ['v1-old/faq'],
image: '/img/docusaurus.png',
},
items: [
'v1-old/faq/client',
'v1-old/faq/manage',
],
},
{
type: 'category',
label: '高级教程',
collapsed: true,
link: {
type: 'generated-index',
title: '高级教程',
description: 'McPatch 高级教程',
slug: '/v1-old/advance',
keywords: ['v1-old/advance'],
image: '/img/docusaurus.png',
},
items: [
'v1-old/advance/custom-deploy',
'v1-old/advance/spell-start',
'v1-old/advance/modclient-self-update',
'v1-old/advance/dynamic-loader',
'v1-old/advance/combine',
'v1-old/advance/cli-interface',
'v1-old/advance/ignores',
'v1-old/advance/overwrites',
'v1-old/advance/run-as-exe',
],
},
{
type: 'doc',
id: 'v1-old/config',
label: '默认配置文件',
},
],
v1Sidebar: [
{
type: 'doc',
id: 'v1/start',
label: 'McPatch 介绍',
},
{
type: 'category',
label: '部署',
collapsed: false,
link: {
type: 'generated-index',
title: '部署',
description: '部署 McPatch 需要做的事情',
slug: '/v1/installation',
keywords: ['v1/installation'],
image: '/img/docusaurus.png',
},
items: [
'v1/installation/prepare',
'v1/installation/deploy',
'v1/installation/server',
'v1/installation/client',
],
},
{
type: 'category',
label: '进阶内容',
collapsed: true,
link: {
type: 'generated-index',
title: '进阶内容',
description: 'McPatch 进阶内容',
slug: '/v1/advanced',
keywords: ['v1/advanced'],
image: '/img/docusaurus.png',
},
items: [
'v1/advanced/client',
],
},
{
type: 'category',
label: '常见问题',
collapsed: true,
link: {
type: 'generated-index',
title: '常见问题',
description: 'McPatch 常见问题',
slug: '/v1/faq',
keywords: ['v1/faq'],
image: '/img/docusaurus.png',
},
items: [
'v1/faq/client',
],
},
{
type: 'doc',
id: 'v1/config',
label: '默认配置文件',
},
],
v2Sidebar: [
{
type: 'doc',
id: 'v2/start',
label: 'McPatch 介绍',
},
{
type: 'category',
label: '首次安装',
collapsed: false,
link: {
type: 'generated-index',
title: '首次安装',
description: '首次安装 McPatch 需要做的事情',
slug: '/v2/installation',
keywords: ['v2/installation'],
image: '/img/docusaurus.png',
},
items: [
'v2/installation/guide',
'v2/installation/upload',
],
},
{
type: 'category',
label: '后续维护',
collapsed: false,
link: {
type: 'generated-index',
title: '后续维护',
description: '日常维护 McPath 要做的事',
slug: '/v2/maintain',
keywords: ['v2/maintain'],
image: '/img/docusaurus.png',
},
items: [
'v2/maintain/combine-versions',
],
},
{
type: 'category',
label: '最佳实践',
collapsed: false,
link: {
type: 'generated-index',
title: '最佳实践',
description: '一些优化 McPatch 要做的事',
slug: '/v2/practices',
keywords: ['v2/practices'],
image: '/img/docusaurus.png',
},
items: [
'v2/practices/self-update',
'v2/practices/cdn'
],
},
{
type: 'doc',
id: 'v2/faq',
label: '常见问题',
},
{
type: 'doc',
id: 'v2/config',
label: '默认配置文件',
},
],
};
export default sidebars;