forked from Corona-Studio/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsharedConfig.ts
39 lines (30 loc) · 1.03 KB
/
sharedConfig.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
import {defineConfig} from "vitepress";
import {zhSearchBarLocale} from "./searchBar/zhCN";
import {ruSearchBarLocale} from "./searchBar/ruRU";
import {zhTWSearchBarLocale} from "./searchBar/zhTW";
import {enUSSearchBarLocale} from "./searchBar/enUS";
export const sharedConfig = defineConfig({
markdown: {
// options for @mdit-vue/plugin-toc
// https://github.com/mdit-vue/mdit-vue/tree/main/packages/plugin-toc#options
toc: { level: [1, 2, 3] },
lineNumbers: true,
},
themeConfig: {
logo: {
light: "/img/favicon/favicon_light.png",
dark: "/img/favicon/favicon_dark.png"
},
socialLinks: [
{ icon: 'github', link: 'https://github.com/Corona-Studio' }
],
outline: {
level: [2, 4], // 控制显示的标题级别范围,例如 h2 到 h3
label: 'On This Page' // 可选,修改“On This Page”的标题
},
// aside:
search: {
provider: 'local'
}
}
});