44 * @Author : 【B站&公众号】Rong姐姐好可爱
55 * @Date : 2021-01-19 08:04:19
66 * @LastEditors : 【B站&公众号】Rong姐姐好可爱
7- * @LastEditTime : 2022-04-22 08:33:12
7+ * @LastEditTime : 2022-04-24 09:12:19
88 */
9+ const { path } = require ( '@vuepress/utils' )
910module . exports = {
11+ // 自定义主题
12+ theme : path . resolve ( __dirname , './theme' ) ,
13+ // theme:'reco', // https://vuepress-theme-reco.recoluan.com/views/1.x/installUse.html
1014 title : "凡是过往、皆为序章" ,
1115 description : "一本有趣的JavaScript合集" ,
12- // base: "/JavaScriptCollection/",
16+ base : "/JavaScriptCollection/" ,
1317 port : 4000 ,
1418 head : [
1519 [ "link" , { rel : "icon" , href : "/fight_favicon.ico" } ]
1620 ] ,
1721 themeConfig : {
1822 logo : "/favicon.ico" ,
1923 darkMode : false , // 禁用夜色
20- navbar : require ( "./config/navbar" ) , // 注意这个关键字有所改变
21- sidebar : require ( "./config/sidebar" ) ,
24+ navbar : require ( "./config/navbar/index " ) , // 注意这个关键字有所改变
25+ sidebar : require ( "./config/sidebar/index " ) ,
2226 smoothScroll : true ,
2327 lastUpdated : true ,
2428 lastUpdatedText : "最近更新" ,
2529 contributorsText : '贡献者' ,
2630 notFound : [ 'not exist' ] , // 自定义404页面提示语,数组
2731 backToHome : '返回首页' , // 返回首页
2832 repo : "https://github.com/mmdapl/JavaScriptCollection" ,
29-
33+
3034 editLink : false ,
3135 // 默认为 "Edit this page"
3236 // editLinkText: '帮助我们改善此页面!',
@@ -36,58 +40,58 @@ module.exports = {
3640 } ,
3741 plugins : [
3842 // 全文搜索 参考配置:https://github.com/vuepress/vuepress-next/blob/main/docs/.vuepress/config.ts
39- [ '@vuepress/docsearch' ,
40- {
41- apiKey : '<API_KEY>' ,
42- indexName : '<INDEX_NAME>' ,
43- locales : {
44- '/' : {
45- placeholder : '搜索一下' ,
46- translations : {
47- button : {
48- buttonText : '搜索一下' ,
49- buttonAriaLabel : '搜索一下' ,
50- } ,
51- modal : {
52- searchBox : {
53- resetButtonTitle : '清除查询条件' ,
54- resetButtonAriaLabel : '清除查询条件' ,
55- cancelButtonText : '取消' ,
56- cancelButtonAriaLabel : '取消'
57- } ,
58- startScreen : {
59- recentSearchesTitle : '搜索历史' ,
60- noRecentSearchesText : '没有搜索历史' ,
61- saveRecentSearchButtonTitle : '保存至搜索历史' ,
62- removeRecentSearchButtonTitle : '从搜索历史中移除' ,
63- favoriteSearchesTitle : '收藏' ,
64- removeFavoriteSearchButtonTitle : '从收藏中移除' ,
65- } ,
66- errorScreen : {
67- titleText : '无法获取结果' ,
68- helpText : '你可能需要检查你的网络连接' ,
69- } ,
70- footer : {
71- selectText : '查询' ,
72- selectKeyAriaLabel : 'Enter key' ,
73- navigateText : '切换' ,
74- navigateUpKeyAriaLabel : 'Arrow up' ,
75- navigateDownKeyAriaLabel : 'Arrow down' ,
76- closeText : '关闭' ,
77- closeKeyAriaLabel : 'Escape key' ,
78- searchByText : '技术支持' ,
79- } ,
80- noResultsScreen : {
81- noResultsText : '无法找到相关结果' ,
82- suggestedQueryText : '你可以尝试查询' ,
83- openIssueText : '你认为该查询应该有结果?' ,
84- openIssueLinkText : '点击反馈' ,
85- } ,
86- } ,
87- }
88- }
89- }
90- } ] ,
43+ // ['@vuepress/docsearch',
44+ // {
45+ // apiKey: '<API_KEY>',
46+ // indexName: '<INDEX_NAME>',
47+ // locales: {
48+ // '/': {
49+ // placeholder: '搜索一下',
50+ // translations: {
51+ // button: {
52+ // buttonText: '搜索一下',
53+ // buttonAriaLabel: '搜索一下',
54+ // },
55+ // modal: {
56+ // searchBox: {
57+ // resetButtonTitle: '清除查询条件',
58+ // resetButtonAriaLabel: '清除查询条件',
59+ // cancelButtonText: '取消',
60+ // cancelButtonAriaLabel: '取消'
61+ // },
62+ // startScreen: {
63+ // recentSearchesTitle: '搜索历史',
64+ // noRecentSearchesText: '没有搜索历史',
65+ // saveRecentSearchButtonTitle: '保存至搜索历史',
66+ // removeRecentSearchButtonTitle: '从搜索历史中移除',
67+ // favoriteSearchesTitle: '收藏',
68+ // removeFavoriteSearchButtonTitle: '从收藏中移除',
69+ // },
70+ // errorScreen: {
71+ // titleText: '无法获取结果',
72+ // helpText: '你可能需要检查你的网络连接',
73+ // },
74+ // footer: {
75+ // selectText: '查询',
76+ // selectKeyAriaLabel: 'Enter key',
77+ // navigateText: '切换',
78+ // navigateUpKeyAriaLabel: 'Arrow up',
79+ // navigateDownKeyAriaLabel: 'Arrow down',
80+ // closeText: '关闭',
81+ // closeKeyAriaLabel: 'Escape key',
82+ // searchByText: '技术支持',
83+ // },
84+ // noResultsScreen: {
85+ // noResultsText: '无法找到相关结果',
86+ // suggestedQueryText: '你可以尝试查询',
87+ // openIssueText: '你认为该查询应该有结果?',
88+ // openIssueLinkText: '点击反馈',
89+ // },
90+ // },
91+ // }
92+ // }
93+ // }
94+ // }],
9195 // other plugins
9296 // [
9397 // // 本地全文搜索
0 commit comments