1
1
import { defineConfig } from 'vitepress'
2
2
3
- export const zhCN = defineConfig ( {
3
+ export const docs = defineConfig ( {
4
4
lang : 'zh-CN' ,
5
- description : 'LLOneBot ' ,
5
+ description : 'LLTwoBot ' ,
6
6
7
7
themeConfig : {
8
8
nav : nav ( ) ,
9
9
10
10
sidebar : {
11
+ '/guide/' : { base : '/' , items : sidebarGuide ( ) } ,
12
+ '/develop/' : { base : '/' , items : sidebarDevelop ( ) } ,
11
13
'/zh-CN/guide/' : { base : '/zh-CN/' , items : sidebarGuide ( ) } ,
12
14
'/zh-CN/develop/' : { base : '/zh-CN/' , items : sidebarDevelop ( ) }
13
15
} ,
@@ -45,8 +47,8 @@ export const zhCN = defineConfig({
45
47
46
48
function nav ( ) {
47
49
return [
48
- { text : '指南' , link : '/zh-CN/ guide/getting-started' } ,
49
- { text : '开发' , link : '/zh-CN/ develop/quick-start' }
50
+ { text : '指南' , link : '/guide/getting-started' } ,
51
+ { text : '开发' , link : '/develop/quick-start' }
50
52
] ;
51
53
}
52
54
@@ -56,18 +58,18 @@ function sidebarGuide() {
56
58
text : '基础配置' ,
57
59
collapsed : false ,
58
60
items : [
59
- { text : '快速开始' , link : 'guide/getting-started' , activeMatch : '/zh-CN/ guide/' } ,
60
- { text : '对接配置' , link : 'guide/configuration' , activeMatch : '/zh-CN/ guide/' } ,
61
- { text : '开发对接' , link : 'develop/quick-start' , activeMatch : '/zh-CN/ develop/quick-start' } ,
62
- { text : 'API 示例' , link : 'develop/api' , activeMatch : '/zh-CN/ develop/api' } ,
63
- { text : '常见问题' , link : 'guide/faq' , activeMatch : '/zh-CN/ guide/' } ,
64
- { text : '从零安装 NoneBot2' , link : 'guide/nonebot2' , activeMatch : '/zh-CN/ guide/' }
61
+ { text : '快速开始' , link : 'guide/getting-started' , activeMatch : '/guide/' } ,
62
+ { text : '对接配置' , link : 'guide/configuration' , activeMatch : '/guide/' } ,
63
+ { text : '开发对接' , link : 'develop/quick-start' , activeMatch : '/develop/quick-start' } ,
64
+ { text : 'API 示例' , link : 'develop/api' , activeMatch : '/develop/api' } ,
65
+ { text : '常见问题' , link : 'guide/faq' , activeMatch : '/guide/' } ,
66
+ { text : '从零安装 NoneBot2' , link : 'guide/nonebot2' , activeMatch : '/guide/' }
65
67
]
66
68
} , {
67
69
text : '进阶配置' ,
68
70
collapsed : false ,
69
71
items : [
70
- { text : '配置 FFmpeg' , link : 'guide/ffmpeg' , activeMatch : '/en-US/ guide/' }
72
+ { text : '配置 FFmpeg' , link : 'guide/ffmpeg' , activeMatch : '/guide/' }
71
73
]
72
74
73
75
}
@@ -80,11 +82,11 @@ function sidebarDevelop() {
80
82
text : '开发信息' ,
81
83
collapsed : false ,
82
84
items : [
83
- { text : '快速开始' , link : 'develop/quick-start' , activeMatch : '/zh-CN/ develop/' } ,
84
- { text : 'API 列表' , link : 'develop/api' , activeMatch : '/zh-CN/ develop/api' } ,
85
- { text : '上报事件' , link : 'develop/event' , activeMatch : '/zh-CN/ develop/event' } ,
86
- { text : '消息类型' , link : 'develop/msg' , activeMatch : '/zh-CN/ develop/msg' } ,
87
- { text : '扩展 API' , link : 'develop/extends_api' , activeMatch : '/zh-CN/ develop/extends_api' } ,
85
+ { text : '快速开始' , link : 'develop/quick-start' , activeMatch : '/develop/' } ,
86
+ { text : 'API 列表' , link : 'develop/api' , activeMatch : '/develop/api' } ,
87
+ { text : '上报事件' , link : 'develop/event' , activeMatch : '/develop/event' } ,
88
+ { text : '消息类型' , link : 'develop/msg' , activeMatch : '/develop/msg' } ,
89
+ { text : '扩展 API' , link : 'develop/extends_api' , activeMatch : '/develop/extends_api' } ,
88
90
]
89
91
}
90
92
] ;
0 commit comments