1+ import { defineUserConfig } from 'vuepress'
2+ import { defaultTheme } from '@vuepress/theme-default'
3+ import { viteBundler } from '@vuepress/bundler-vite'
4+ import { path } from '@vuepress/utils'
5+
6+ export default defineUserConfig ( {
7+ lang : 'zh-CN' ,
8+ title : 'Mosaic Framework' ,
9+ description : '基于插件化架构的Java模块化框架' ,
10+ base : '/Mosaic/' ,
11+ public : path . resolve ( __dirname , '../public' ) ,
12+ bundler : viteBundler ( {
13+ viteOptions : { } ,
14+ vuePluginOptions : { } ,
15+ } ) ,
16+
17+ theme : defaultTheme ( {
18+ logo : '/logo.png' ,
19+ navbar : [
20+ {
21+ text : '指南' ,
22+ link : '/guide/' ,
23+ } ,
24+ {
25+ text : 'API参考' ,
26+ link : '/api/' ,
27+ } ,
28+ {
29+ text : '插件开发' ,
30+ link : '/plugin/' ,
31+ } ,
32+ {
33+ text : '示例' ,
34+ link : '/examples/' ,
35+ } ,
36+ {
37+ text : 'GitHub' ,
38+ link : 'https://github.com/Time-Machine-Lab/Mosaic'
39+ }
40+ ] ,
41+ sidebar : {
42+ '/guide/' : [
43+ {
44+ text : '指南' ,
45+ children : [
46+ '/guide/README.md' ,
47+ '/guide/getting-started.md' ,
48+ '/guide/core-concepts.md' ,
49+ '/guide/configuration.md' ,
50+ '/guide/event-system.md'
51+ ]
52+ }
53+ ] ,
54+ '/api/' : [
55+ {
56+ text : 'API参考' ,
57+ children : [
58+ '/api/README.md' ,
59+ '/api/cube-api.md' ,
60+ '/api/extension-api.md' ,
61+ '/api/event-api.md' ,
62+ '/api/config-api.md'
63+ ]
64+ }
65+ ] ,
66+ '/plugin/' : [
67+ {
68+ text : '插件开发' ,
69+ children : [
70+ '/plugin/README.md' ,
71+ '/plugin/cube-development.md' ,
72+ '/plugin/extension-development.md' ,
73+ '/plugin/listener-development.md' ,
74+ '/plugin/best-practices.md'
75+ ]
76+ }
77+ ] ,
78+ '/examples/' : [
79+ {
80+ text : '示例' ,
81+ children : [
82+ '/examples/README.md' ,
83+ '/examples/ai-chat-plugin.md' ,
84+ '/examples/system-log-plugin.md' ,
85+ '/examples/listener-plugin.md'
86+ ]
87+ }
88+ ]
89+ }
90+ } )
91+ } )
0 commit comments