@@ -3,6 +3,7 @@ const { config } = require("vuepress-theme-hope");
33module . exports = config ( {
44 title : "JavaGuide" ,
55 description : "Java学习&&面试指南" ,
6+ //指定 vuepress build 的输出目录
67 dest : "./dist" ,
78 head : [
89 [
@@ -22,7 +23,7 @@ module.exports = config({
2223 ] ,
2324 // 添加百度统计
2425 [
25- "script" , { } ,
26+ "script" , { } ,
2627 `var _hmt = _hmt || [];
2728 (function() {
2829 var hm = document.createElement("script");
@@ -32,12 +33,18 @@ module.exports = config({
3233 })();`
3334 ]
3435 ] ,
35-
36+ locales : {
37+ "/" : {
38+ lang : "zh-CN"
39+ }
40+ } ,
3641 themeConfig : {
3742 logo : "/logo.png" ,
3843 hostname : "https://javaguide.cn/" ,
3944 author : "Guide哥" ,
4045 repo : "https://github.com/Snailclimb/JavaGuide" ,
46+ editLinks : true ,
47+ docsDir : 'docs' ,
4148 nav : [
4249 { text : "Java面试指南" , icon : "java" , link : "/" , } ,
4350 { text : "Java面试指北" , icon : "java" , link : "https://www.yuque.com/docs/share/f37fc804-bfe6-4b0d-b373-9c462188fec7?#%20%E3%80%8A%E3%80%8AJava%E9%9D%A2%E8%AF%95%E8%BF%9B%E9%98%B6%E6%8C%87%E5%8C%97%20%20%E6%89%93%E9%80%A0%E4%B8%AA%E4%BA%BA%E7%9A%84%E6%8A%80%E6%9C%AF%E7%AB%9E%E4%BA%89%E5%8A%9B%E3%80%8B%E3%80%8B" , } ,
@@ -282,15 +289,14 @@ module.exports = config({
282289 } ] ,
283290 } ,
284291 blog : {
285- intro : "/intro /" ,
292+ intro : "/about-the-author /" ,
286293 sidebarDisplay : "mobile" ,
287294 links : {
288295 Zhihu : "https://www.zhihu.com/people/javaguide" ,
289296 Github : "https://github.com/Snailclimb" ,
290297 Gitee : "https://gitee.com/SnailClimb" ,
291298 } ,
292299 } ,
293-
294300 footer : {
295301 display : true ,
296302 content : '<a href="https://beian.miit.gov.cn/" target="_blank">鄂ICP备2020015769号-1</a>' ,
0 commit comments