-
Notifications
You must be signed in to change notification settings - Fork 45.8k
/
Copy paththemeConfig.ts
125 lines (124 loc) · 3.37 KB
/
themeConfig.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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
import { defineThemeConfig } from "vuepress-theme-hope";
import { navbarConfig } from "./navbar";
import { sidebarConfig } from "./sidebar";
export default defineThemeConfig({
logo: "/logo.png",
hostname: "https://javaguide.cn/",
author: {
name: "Guide",
url: "https://javaguide.cn/",
},
repo: "https://github.com/Snailclimb/JavaGuide",
docsDir: "docs",
iconPrefix: "iconfont icon-",
pure: true,
navbar: navbarConfig,
sidebar: sidebarConfig,
pageInfo: ["Author", "Category", "Tag", "Date", "Original", "Word"],
blog: {
intro: "/about-the-author/",
sidebarDisplay: "mobile",
medias: {
Zhihu: "https://www.zhihu.com/people/javaguide",
Github: "https://github.com/Snailclimb",
Gitee: "https://gitee.com/SnailClimb",
},
},
footer:
'<a href="https://beian.miit.gov.cn/" target="_blank">鄂ICP备2020015769号-1</a>',
displayFooter: true,
plugins: {
blog: {
autoExcerpt: true,
},
mdEnhance: {
enableAll: true,
presentation: {
plugins: ["highlight", "math", "search", "notes", "zoom"],
},
},
feed: {
json: true,
},
comment: {
type: "giscus",
repo: "Snailclimb/JavaGuide",
repoId: "MDEwOlJlcG9zaXRvcnkxMzI0NjQzOTU=",
category: "Announcements",
categoryId: "DIC_kwDOB-U_C84COYQF",
},
search: {
// https://v2.vuepress.vuejs.org/zh/reference/plugin/search.html
// 排除首页
isSearchable: (page) => page.path !== "/",
maxSuggestions: 10,
hotKeys: ["s", "/"],
// 用于在页面的搜索索引中添加额外字段
getExtraFields: () => [],
locales: {
"/": {
placeholder: "搜索",
},
},
},
// pwa: {
// favicon: "/favicon.ico",
// cachePic: true,
// apple: {
// icon: "/assets/icon/apple-icon-152.png",
// statusBarColor: "black",
// },
// msTile: {
// image: "/assets/icon/ms-icon-144.png",
// color: "#ffffff",
// },
// manifest: {
// icons: [
// {
// src: "/assets/icon/chrome-mask-512.png",
// sizes: "512x512",
// purpose: "maskable",
// type: "image/png",
// },
// {
// src: "/assets/icon/chrome-mask-192.png",
// sizes: "192x192",
// purpose: "maskable",
// type: "image/png",
// },
// {
// src: "/assets/icon/chrome-512.png",
// sizes: "512x512",
// type: "image/png",
// },
// {
// src: "/assets/icon/chrome-192.png",
// sizes: "192x192",
// type: "image/png",
// },
// ],
// shortcuts: [
// {
// name: "Guide",
// short_name: "Guide",
// url: "/guide/",
// icons: [
// {
// src: "/assets/icon/guide-maskable.png",
// sizes: "192x192",
// purpose: "maskable",
// type: "image/png",
// },
// {
// src: "/assets/icon/guide-monochrome.png",
// sizes: "192x192",
// purpose: "monochrome",
// type: "image/png",
// },
// ],
// },
// ],
// },
// },
},
});