1
1
import { defineConfig } from 'vitepress'
2
2
import { navbar } from './nav'
3
3
import { sidebar } from './sidebar'
4
+ // 导入主题的配置
5
+ import { blogTheme } from './blog-theme'
4
6
export default defineConfig ( {
5
7
base : '/html-tutor/' ,
6
8
7
9
// site-level locales config
8
- outDir :" ../dist" ,
10
+ outDir : ' ../dist' ,
9
11
head : [
10
12
// ['link', { rel: 'shortcut icon', type: 'image/png', href: '/hero.png' }],
11
13
// ['link', { rel: 'shortcut icon', type: 'image/png', href: '/hero.png' }],
@@ -15,14 +17,21 @@ outDir:"../dist",
15
17
title : 'html教程' ,
16
18
description : 'Vue 驱动的静态网站生成器' ,
17
19
vue : { } ,
18
- markdown :{
19
- theme : { light :'github-light' , dark :'solarized-light' }
20
- } ,
20
+ markdown : {
21
+ theme : { light : 'github-light' , dark : 'solarized-light' } ,
22
+ } ,
23
+ extends : blogTheme ,
21
24
themeConfig : {
22
25
logo : '/vue.svg' ,
23
26
search : {
24
27
provider : 'local' ,
25
28
} ,
29
+ // 展示 2,3 级标题在目录中
30
+
31
+ // 默认文案修改
32
+ returnToTopLabel : '回到顶部' ,
33
+ sidebarMenuLabel : '相关文章' ,
34
+ lastUpdatedText : '上次更新于' ,
26
35
// theme-level locales config
27
36
28
37
// navbar
@@ -33,8 +42,7 @@ theme: {light:'github-light',dark:'solarized-light'}
33
42
{ icon : 'github' , link : 'https://github.com/yzqdev/html-tutor' } ,
34
43
] ,
35
44
editLink : {
36
- pattern :
37
- 'https://github.com/yzqdev/html-tutor/edit/main/src/:path' ,
45
+ pattern : 'https://github.com/yzqdev/html-tutor/edit/main/src/:path' ,
38
46
text : 'Edit this page on GitHub' ,
39
47
} ,
40
48
footer : {
0 commit comments