-
Notifications
You must be signed in to change notification settings - Fork 20
/
sidebars.js
456 lines (448 loc) · 14.4 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
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
/**
* 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
// docsSidebar: [{type: 'autogenerated', dirName: '.'}],
docsSidebar: [
{
type: 'html',
value: '<div class="wwads-cn wwads-horizontal" data-id="235" style="max-width:350px"></div>', // 要渲染的 HTML
defaultStyle: true, // 使用默认的菜单项目样式
},
'intro',
{
type: 'category',
label: '快速安装(必看)',
// collapsed: false,
items: [
{
type: 'category',
label: '开源版',
collapsed: false,
link: {
type: 'generated-index',
title: '开源版部署教程',
description: '点击查看不同环境下的部署教程',
slug: '/install-os'
},
items: [
{
id: 'install/os-baota-new',
type: 'doc',
label: '宝塔Docker应用商店'
},
{
id: 'install/os-baota',
type: 'doc',
label: '宝塔传统方式'
},
{
id: 'install/os-linux',
type: 'doc',
label: 'Linux'
},
{
id: 'install/os-windows',
type: 'doc',
label: 'Windows'
},
{
id: 'install/os-docker',
type: 'doc',
label: 'Docker'
}
]
},
{
type: 'category',
label: '捐赠版',
collapsed: false,
link: {
type: 'generated-index',
title: '捐赠版部署教程',
description: '点击查看不同环境下的部署教程',
slug: '/install-pro'
},
items: [
{
id: 'install/pro-linux',
type: 'doc',
label: 'Linux'
},
{
id: 'install/pro-windows',
type: 'doc',
label: 'Windows'
},
{
id: 'install/pro-docker',
type: 'doc',
label: 'Docker'
},
{
id: 'install/pro-baota',
type: 'doc',
label: '宝塔'
},
]
}, {
type: 'doc',
label: '帮我安装',
id: 'support/support'
}
],
},
{
type: 'category',
label: '功能介绍',
items: [
{
id: 'feature/pwd-folder',
type: 'doc',
label: '文件夹密码/加密'
},
{
id: 'feature/md-folder',
type: 'doc',
label: '文件夹文档'
},
{
id: 'feature/hidden-file',
type: 'doc',
label: '隐藏文件/文件夹'
},
{
id: 'feature/video',
type: 'doc',
label: '视频播放'
},
{
id: 'feature/text',
type: 'doc',
label: '文本预览'
},
{
id: 'feature/music',
type: 'doc',
label: '音频播放'
},
{
id: 'feature/pdf',
type: 'doc',
label: 'PDF 预览'
},
{
id: 'feature/office',
type: 'doc',
label: 'office 预览'
},
{
id: 'feature/log',
type: 'doc',
label: '系统日志'
}
]
},
{
type: 'category',
label: '配置文件',
items: [
{
id: 'config/config-path',
type: 'doc',
label: '配置文件路径(必看)'
},
{
id: 'config/config-port',
type: 'doc',
label: '启动端口'
},
{
id: 'config/config-db',
type: 'doc',
label: '数据库配置'
},
{
id: 'config/config-debug',
type: 'doc',
label: 'Debug 模式'
}
]
},
{
type: 'category',
label: '高级功能',
items: [
{
id: 'advanced/cf-worker',
type: 'doc',
label: 'OneDrive CF Worker 加速'
},
{
id: 'advanced/google-drive-api',
type: 'doc',
label: '自建 Google Drive API'
},
{
id: 'advanced/onedrive-api',
type: 'doc',
label: '自建 OneDrive API'
},
{
id: 'advanced/only-office',
type: 'doc',
label: '自建 OnlyOffice'
}
]
},
{
type: 'category',
label: '常见问题',
items: [
{
id: 'question/run-multiple-instance',
type: 'doc',
label: '如何运行多个 ZFile 实例?'
},
{
id: 'question/update-config-file',
type: 'doc',
label: '如何修改配置文件?'
},
{
id: 'question/only-office-download-fail',
type: 'doc',
label: 'OnlyOffice 预览失败怎么办?'
},
{
id: 'question/ubuntu-awt',
type: 'doc',
label: 'Ubuntu 登录页报错'
},
{
id: 'question/reset-password',
type: 'doc',
label: '忘记管理员密码怎么办?'
},
{
id: 'question/start-fail',
type: 'doc',
label: '启动失败/无法访问怎么办?'
},
{
id: 'question/bind-domain',
type: 'doc',
label: '如何用域名访问?'
},
{
id: 'question/cat-current-version',
type: 'doc',
label: '查看 ZFile 版本'
},
{
id: 'question/upload-fail',
type: 'doc',
label: '上传失败怎么办?'
},
{
id: 'question/garbled',
type: 'doc',
label: '文件名乱码如何处理?'
},
{
id: 'question/separation-of-front-end-and-backend',
type: 'doc',
label: '如何前后端分离部署?'
},
{
id: 'question/download-log',
type: 'doc',
label: '如何查看/下载日志?'
},
{
id: 'question/modify-favicon',
type: 'doc',
label: '如何修改左上角 favicon 图标?'
},
{
id: 'question/cf-not-work',
type: 'doc',
label: '为什么我使用 Cloudflare 后页面白屏无法访问?'
},
{
id: 'question/remove-copyright',
type: 'doc',
label: '如何去除版权信息?'
}
]
},
{
type: 'doc',
label: '存储源类型对比',
id: 'storage-type'
},
{
type: 'category',
label: '存储源示例配置🔥',
link: {
description: "如果你不知道怎么配置存储源,可以点击下方你想添加的存储类型查看详细文档",
type: 'generated-index',
},
items: [
{
id: 'example/oss',
type: 'doc',
label: '阿里云 OSS'
},
{
id: 'example/cos',
type: 'doc',
label: '腾讯云 COS'
},
{
id: 'example/obs',
type: 'doc',
label: '华为云 OBS'
},
{
id: 'example/upyun',
type: 'doc',
label: '又拍云'
},
{
id: 'example/qiniu',
type: 'doc',
label: '七牛云'
},
{
id: 'example/minio',
type: 'doc',
label: 'MINIO'
},
{
id: 'example/rains3',
type: 'doc',
label: 'Rain S3 雨云存储'
},
{
id: 'example/digitalocean',
type: 'doc',
label: 'DigitalOcean Spaces'
},
{
id: 'example/r2',
type: 'doc',
label: 'Cloudflare R2'
},
{
id: 'example/oracle',
type: 'doc',
label: 'Oracle 对象存储'
},
{
id: 'example/b2',
type: 'doc',
label: 'Backblaze(b2)'
},
{
id: 'example/s3',
type: 'doc',
label: 'S3 或其他兼容 S3 的服务'
},
{
id: 'example/onedrive',
type: 'doc',
label: 'OneDrive'
},
{
id: 'example/onedrive-china',
type: 'doc',
label: 'OneDrive (世纪互联)'
},
{
id: 'example/sharepoint',
type: 'doc',
label: 'SharePoint'
},
{
id: 'example/sharepoint-china',
type: 'doc',
label: 'SharePoint (世纪互联)'
},
{
id: 'example/ftp',
type: 'doc',
label: 'FTP'
},
{
id: 'example/sftp',
type: 'doc',
label: 'SFTP'
},
]
},
{
type: 'category',
label: '自定义 JS 示例',
link: {
type: 'generated-index',
title: '自定义 JS 相关示例',
description: '点击下方查看不同版本的更新日志',
slug: '/custom-js'
},
items: [
{
id: 'custom-js/51la',
type: 'doc',
label: '51LA 统计'
},
{
id: 'custom-js/baidu-tongji',
type: 'doc',
label: '百度统计'
}
]
},
{
type: 'category',
label: '更新日志',
link: {
type: 'generated-index',
title: '更新日志',
description: '点击下方查看不同版本的更新日志',
slug: '/changelog'
},
items: [
{
id: 'changelog/os',
type: 'doc',
label: '开源版'
},
{
id: 'changelog/pro',
type: 'doc',
label: '捐赠版'
}
]
},
{
type: 'doc',
label: '服务器推荐✨',
id: 'ad/ad'
},
{
type: 'doc',
label: '技术支持',
id: 'support/support'
}
],
};
module.exports = sidebars;