@@ -14,45 +14,54 @@ module.exports = {
1414 [ 'link' , { rel : 'icon' , href : '/img/favicon.ico' } ] , //favicons,资源放在public文件夹
1515 [ 'meta' , { name : 'keywords' , content : 'vuepress,theme,blog,vdoing' } ] ,
1616 [ 'meta' , { name : 'theme-color' , content : '#11a8cd' } ] , // 移动浏览器主题颜色
17+
18+ [ 'meta' , { name : 'wwads-cn-verify' , content : 'mxqWx62nfQQ9ocT4e5DzISHzOWyF4s' } ] , // 广告相关,你可以去掉
19+ [ 'script' , { src : 'https://cdn.wwads.cn/js/makemoney.js' , type : 'text/javascript' } ] , // 广告相关,你可以去掉
1720 ] ,
1821 markdown : {
1922 // lineNumbers: true,
2023 extractHeaders : [ 'h2' , 'h3' , 'h4' , 'h5' , 'h6' ] , // 提取标题到侧边栏的级别,默认['h2', 'h3']
2124 externalLinks : {
2225 target : '_blank' ,
23- rel : 'noopener noreferrer' ,
24- } ,
26+ rel : 'noopener noreferrer'
27+ }
2528 } ,
2629 // 主题配置
2730 themeConfig : {
2831 nav : [
32+ { text : '首页' , link : '/' } ,
33+ { text : 'JavaEE' , link : '/01.JavaEE/' } ,
2934 {
30- text : 'JavaEE' ,
35+ text : 'Java软件' ,
36+ link : '/02.Java软件/' ,
3137 items : [
32- { text : 'JavaWeb' , link : '/02.JavaEE/01.JavaWeb/' } ,
33- { text : '服务器' , link : '/02.JavaEE/02.服务器/' } ,
34- ] ,
38+ { text : 'Java构建' , link : '/02.Java软件/01.Java构建/' } ,
39+ { text : 'Java IDE' , link : '/02.Java软件/02.JavaIDE/' } ,
40+ { text : 'Java服务器' , link : '/02.Java软件/03.Java服务器/' } ,
41+ { text : 'Java监控诊断' , link : '/02.Java软件/04.Java监控诊断/' }
42+ ]
3543 } ,
3644 {
37- text : 'Java软件 ' ,
38- link : '/11.软件 /' ,
45+ text : 'Java工具 ' ,
46+ link : '/03.Java工具 /' ,
3947 items : [
40- { text : 'Java构建' , link : '/11.软件/01.构建/' } ,
41- { text : 'Java IDE' , link : '/11.软件/02.IDE/' } ,
42- { text : 'Java监控诊断' , link : '/11.软件/03.监控诊断/' } ,
43- ] ,
48+ { text : 'Java序列化工具' , link : '/03.Java工具/01.Java序列化工具/' } ,
49+ { text : 'JavaBean工具' , link : '/03.Java工具/02.JavaBean工具/' } ,
50+ { text : 'Java模板引擎' , link : '/03.Java工具/03.Java模板引擎/' } ,
51+ { text : 'Java测试工具' , link : '/03.Java工具/04.Java测试工具/' } ,
52+ { text : '其他' , link : '/03.Java工具/05.其他Java工具/' }
53+ ]
4454 } ,
45- { text : 'Java工具' , link : '/12.工具/' } ,
46- { text : 'Java框架' , link : '/13.框架/' } ,
47- { text : 'Java中间件' , link : '/14.中间件/' } ,
55+ { text : 'Java框架' , link : '/04.Java框架/' } ,
56+ { text : 'Java中间件' , link : '/05.Java中间件/' } ,
4857 {
4958 text : '✨ Java系列' ,
5059 ariaLabel : 'Java' ,
5160 items : [
5261 { text : 'Java 教程 📚' , link : 'https://dunwu.github.io/java-tutorial/' , target : '_blank' } ,
53- { text : 'JavaCore 教程 📚' , link : 'https://dunwu.github.io/javacore/' , target : '_blank' } ,
54- ] ,
55- } ,
62+ { text : 'JavaCore 教程 📚' , link : 'https://dunwu.github.io/javacore/' , target : '_blank' }
63+ ]
64+ }
5665 ] ,
5766 sidebarDepth : 2 , // 侧边栏显示深度,默认1,最大2(显示到h3标题)
5867 logo : 'https://raw.githubusercontent.com/dunwu/images/dev/common/dunwu-logo.png' , // 导航栏logo
@@ -65,12 +74,13 @@ module.exports = {
6574 editLinkText : '📝 帮助改善此页面!' ,
6675
6776 // 以下配置是Vdoing主题改动的和新增的配置
68- sidebar : { mode : 'structuring' , collapsable : false } , // 侧边栏 'structuring' | { mode: 'structuring', collapsable: Boolean} | 'auto' | 自定义 温馨提示:目录页数据依赖于结构化的侧边栏数据,如果你不设置为'structuring',将无法使用目录页
77+ sidebar : { mode : 'structuring' , collapsable : true } , // 侧边栏 'structuring' | { mode: 'structuring', collapsable:
78+ // Boolean} | 'auto' | 自定义 温馨提示:目录页数据依赖于结构化的侧边栏数据,如果你不设置为'structuring',将无法使用目录页
6979
70- // sidebarOpen: false , // 初始状态是否打开侧边栏,默认true
80+ sidebarOpen : true , // 初始状态是否打开侧边栏,默认true
7181 updateBar : {
7282 // 最近更新栏
73- showToArticle : true , // 显示到文章页底部,默认true
83+ showToArticle : true // 显示到文章页底部,默认true
7484 // moreArticle: '/archives' // “更多文章”跳转的页面,默认'/archives'
7585 } ,
7686 // titleBadge: false, // 文章标题前的图标是否显示,默认true
@@ -95,7 +105,7 @@ module.exports = {
95105 author : {
96106 // 文章默认的作者信息,可在md文件中单独配置此信息 String | {name: String, href: String}
97107 name : 'dunwu' , // 必需
98- href : 'https://github.com/dunwu' , // 可选的
108+ href : 'https://github.com/dunwu' // 可选的
99109 } ,
100110 social : {
101111 // 社交图标,显示于博主信息栏和页脚栏
@@ -104,21 +114,21 @@ module.exports = {
104114 {
105115 iconClass : 'icon-youjian' ,
106116 title : '发邮件' ,
107- 117+ 108118 } ,
109119 {
110120 iconClass : 'icon-github' ,
111121 title : 'GitHub' ,
112- link : 'https://github.com/dunwu' ,
113- } ,
114- ] ,
122+ link : 'https://github.com/dunwu'
123+ }
124+ ]
115125 } ,
116126 footer : {
117127 // 页脚信息
118128 createYear : 2019 , // 博客创建年份
119- copyrightInfo : '钝悟(dunwu) | CC-BY-SA-4.0' , // 博客版权信息,支持a标签
129+ copyrightInfo : '钝悟(dunwu) | CC-BY-SA-4.0' // 博客版权信息,支持a标签
120130 } ,
121- htmlModules,
131+ htmlModules
122132 } ,
123133
124134 // 插件
@@ -128,8 +138,8 @@ module.exports = {
128138 {
129139 // 鼠标点击爱心特效
130140 color : '#11a8cd' , // 爱心颜色,默认随机色
131- excludeClassName : 'theme-vdoing-content' , // 要排除元素的class, 默认空''
132- } ,
141+ excludeClassName : 'theme-vdoing-content' // 要排除元素的class, 默认空''
142+ }
133143 ] ,
134144
135145 [ 'fulltext-search' ] , // 全文搜索
@@ -159,8 +169,8 @@ module.exports = {
159169 copySelector : [ 'div[class*="language-"] pre' , 'div[class*="aside-code"] aside' ] , // String or Array
160170 copyMessage : '复制成功' , // default is 'Copy successfully and then paste it for use.'
161171 duration : 1000 , // prompt message display time.
162- showInMobile : false , // whether to display on the mobile side, default: false.
163- } ,
172+ showInMobile : false // whether to display on the mobile side, default: false.
173+ }
164174 ] ,
165175 [
166176 'demo-block' ,
@@ -172,30 +182,30 @@ module.exports = {
172182 // vue: 'https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js', // 在线示例中的vue依赖
173183 jsfiddle : false , // 是否显示 jsfiddle 链接
174184 codepen : true , // 是否显示 codepen 链接
175- horizontal : false , // 是否展示为横向样式
176- } ,
177- } ,
185+ horizontal : false // 是否展示为横向样式
186+ }
187+ }
178188 ] ,
179189 [
180190 'vuepress-plugin-zooming' , // 放大图片
181191 {
182192 selector : '.theme-vdoing-content img:not(.no-zoom)' ,
183193 options : {
184- bgColor : 'rgba(0,0,0,0.6)' ,
185- } ,
186- } ,
194+ bgColor : 'rgba(0,0,0,0.6)'
195+ }
196+ }
187197 ] ,
188198 [
189199 '@vuepress/last-updated' , // "上次更新"时间格式
190200 {
191201 transformer : ( timestamp , lang ) => {
192202 const dayjs = require ( 'dayjs' ) // https://day.js.org/
193203 return dayjs ( timestamp ) . format ( 'YYYY/MM/DD, HH:mm:ss' )
194- } ,
195- } ,
196- ] ,
204+ }
205+ }
206+ ]
197207 ] ,
198208
199209 // 监听文件变化并重新构建
200- extraWatchFiles : [ '.vuepress/config.js' , '.vuepress/config/htmlModules.js' ] ,
210+ extraWatchFiles : [ '.vuepress/config.js' , '.vuepress/config/htmlModules.js' ]
201211}
0 commit comments