forked from Blessing-Studio/blessing-studio.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsidebars.ts
40 lines (35 loc) · 1.01 KB
/
sidebars.ts
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
import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
//这在 Node.js 中运行 - 不要在此处使用客户端代码(浏览器 API、JSX...
/**
* 创建边栏使您能够:
- 创建有序的文档组
- 为该组的每个文档呈现一个侧边栏
- 提供下一个/上一个导航
侧边栏可以从文件系统生成,也可以在此处显式定义。
根据需要创建任意数量的侧边栏。
*/
const sidebars: SidebarsConfig = {
// 默认情况下,Docusaurus 会从 docs 文件夹结构生成侧边栏
minecraftLaunchSidebar: [
{type: 'autogenerated', dirName: 'MinecraftLaunch'}
],
wonderLabSidebar: [
{type: 'autogenerated', dirName: 'WonderLab'}
],
aboutSidebar: [
{type: 'autogenerated', dirName: 'About'}
]
// 但您可以手动创建侧边栏
/*
minecraftLaunchSidebar: [
'intro',
'hello',
{
type: 'category',
label: 'Tutorial',
items: ['tutorial-basics/create-a-document'],
},
],
*/
};
export default sidebars;