-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocusaurus.config.ts
More file actions
101 lines (99 loc) · 2.19 KB
/
docusaurus.config.ts
File metadata and controls
101 lines (99 loc) · 2.19 KB
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
import { themes as prismThemes } from 'prism-react-renderer'
import type { Config } from '@docusaurus/types'
import type * as Preset from '@docusaurus/preset-classic'
/**
*
* @param config
* @returns
*/
const defineConfig = (config: Config) => config
export default defineConfig({
title: 'Bubble',
tagline: '泡泡聊天开放平台',
url: 'https://bubble.alemonjs.com',
baseUrl: '/bubble.dev/',
organizationName: 'lemonade-lab',
projectName: 'bubble.dev',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: './sidebars.ts',
editUrl:
'https://github.com/lemonade-lab/bubble.dev'
},
theme: {
customCss: './src/css/custom.css'
}
} satisfies Preset.Options
]
],
themeConfig: {
image: 'img/docusaurus-social-card.jpg',
navbar: {
title: 'Bubble',
items: [
{
position: 'left',
label: '文档',
type: 'docSidebar',
sidebarId: 'tutorialSidebar'
},
{
to: 'blog',
label: '更新记录',
position: 'left'
}
]
},
footer: {
style: 'dark',
links: [
{
title: '教程',
items: [
{
label: '简介',
to: '/docs/intro'
}
]
},
{
title: '更多',
items: [
{
label: '官方推荐框架',
href: 'https://github.com/lemonade-lab/alemonjs'
}
]
}
]
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula
}
} satisfies Preset.ThemeConfig,
themes: [
[
require.resolve(
'@easyops-cn/docusaurus-search-local'
),
/** @type {import("@easyops-cn/docusaurus-search-local").PluginOptions} */
{
indexDocs: true,
indexBlog: false,
indexPages: true,
hashed: true,
language: ['zh'],
searchResultLimits: 10,
searchResultContextMaxLength: 50
}
]
],
stylesheets: [],
plugins: []
})