11import { defaultTheme } from "vuepress" ;
22// 参考:https://v2.vuepress.vuejs.org/zh/guide/getting-started.html
33// 主题参考:https://antdocs.js.org/
4+
5+
46export default {
5- title : "凡是过往、皆为序章" ,
6- description : "一本有趣的JavaScript合集" ,
7- // base: "/JavaScriptCollection/",
8- port : 7100 ,
9- head : [
10- [ "link" , { rel : "icon" , href : "/fight_favicon.ico" } ]
11- ] ,
12- theme : defaultTheme ( {
13- home :'/' ,
14- logo : "/favicon.ico" ,
15- darkMode : false , // 禁用夜色
16- navbar : require ( "./config/navbar/index" ) , // 注意这个关键字有所改变
17- sidebar : require ( "./config/sidebar/index" ) ,
18- smoothScroll : true ,
19- lastUpdated : true ,
20- lastUpdatedText : "最近更新" ,
21- contributorsText : '贡献者' ,
22- notFound : [ 'not exist' ] , // 自定义404 页面提示语,数组
23- backToHome : '返回首页' , // 返回首页
24- repo : "https://github.com/mmdapl/JavaScriptCollection" ,
25- editLink : false ,
26- // 默认为 "Edit this page"
27- // editLinkText: '帮助我们改善此页面!',
28- displayAllHeaders : true , // 默认值:false 显示所有页面的标题链接
29- search : true ,
30- searchMaxSuggestions : 10 ,
31- } ) ,
32- plugins : [
33- // 全文搜索 参考配置:https://github.com/vuepress/vuepress-next/blob/main/docs/.vuepress/config.ts
34- // ['@vuepress/docsearch',
35- // {
36- // apiKey: '<API_KEY>',
37- // indexName: '<INDEX_NAME>',
38- // locales: {
39- // '/': {
40- // placeholder: '搜索一下',
41- // translations: {
42- // button: {
43- // buttonText: '搜索一下',
44- // buttonAriaLabel: '搜索一下',
45- // },
46- // modal: {
47- // searchBox: {
48- // resetButtonTitle: '清除查询条件',
49- // resetButtonAriaLabel: '清除查询条件',
50- // cancelButtonText: '取消',
51- // cancelButtonAriaLabel: '取消'
52- // },
53- // startScreen: {
54- // recentSearchesTitle: '搜索历史',
55- // noRecentSearchesText: '没有搜索历史',
56- // saveRecentSearchButtonTitle: '保存至搜索历史',
57- // removeRecentSearchButtonTitle: '从搜索历史中移除',
58- // favoriteSearchesTitle: '收藏',
59- // removeFavoriteSearchButtonTitle: '从收藏中移除',
60- // },
61- // errorScreen: {
62- // titleText: '无法获取结果',
63- // helpText: '你可能需要检查你的网络连接',
64- // },
65- // footer: {
66- // selectText: '查询',
67- // selectKeyAriaLabel: 'Enter key',
68- // navigateText: '切换',
69- // navigateUpKeyAriaLabel: 'Arrow up',
70- // navigateDownKeyAriaLabel: 'Arrow down',
71- // closeText: '关闭',
72- // closeKeyAriaLabel: 'Escape key',
73- // searchByText: '技术支持',
74- // },
75- // noResultsScreen: {
76- // noResultsText: '无法找到相关结果',
77- // suggestedQueryText: '你可以尝试查询',
78- // openIssueText: '你认为该查询应该有结果?',
79- // openIssueLinkText: '点击反馈',
80- // },
81- // },
82- // }
83- // }
84- // }
85- // }],
86- // other plugins
87- // [
88- // // 本地全文搜索
89- // '@vuepress/plugin-search',
90- // {
91- // locales: {
92- // '/': {
93- // placeholder: '搜索',
94- // },
95- // '/zh/': {
96- // placeholder: '搜索',
97- // },
98- // },
99- // maxSuggestions: 10 // 显示最大搜索
100- // },
101- // ],
102- ]
7+ title : "凡是过往、皆为序章" ,
8+ description : "一本有趣的JavaScript合集" ,
9+ // base: "/JavaScriptCollection/",
10+ port : 7100 ,
11+ head : [
12+ [ "link" , { rel : "icon" , href : "/fight_favicon.ico" } ]
13+ ] ,
14+ theme : defaultTheme ( {
15+ home : '/' ,
16+ logo : "/favicon.ico" ,
17+ darkMode : false , // 禁用夜色
18+ navbar : require ( "./config/navbar/index" ) , // 注意这个关键字有所改变
19+ sidebar : require ( "./config/sidebar/index" ) ,
20+ smoothScroll : true ,
21+ lastUpdated : true ,
22+ lastUpdatedText : "最近更新" ,
23+ contributorsText : '贡献者' ,
24+ notFound : [ 'not exist' ] , // 自定义404 页面提示语,数组
25+ backToHome : '返回首页' , // 返回首页
26+ repo : "https://github.com/mmdapl/JavaScriptCollection" ,
27+ editLink : false ,
28+ // 默认为 "Edit this page"
29+ // editLinkText: '帮助我们改善此页面!',
30+ displayAllHeaders : true , // 默认值:false 显示所有页面的标题链接
31+ search : true ,
32+ searchMaxSuggestions : 10 ,
33+ } ) ,
34+ plugins : [
35+ // 全文搜索 参考配置:https://github.com/vuepress/vuepress-next/blob/main/docs/.vuepress/config.ts
36+ // ['@vuepress/docsearch',
37+ // {
38+ // apiKey: '<API_KEY>',
39+ // indexName: '<INDEX_NAME>',
40+ // locales: {
41+ // '/': {
42+ // placeholder: '搜索一下',
43+ // translations: {
44+ // button: {
45+ // buttonText: '搜索一下',
46+ // buttonAriaLabel: '搜索一下',
47+ // },
48+ // modal: {
49+ // searchBox: {
50+ // resetButtonTitle: '清除查询条件',
51+ // resetButtonAriaLabel: '清除查询条件',
52+ // cancelButtonText: '取消',
53+ // cancelButtonAriaLabel: '取消'
54+ // },
55+ // startScreen: {
56+ // recentSearchesTitle: '搜索历史',
57+ // noRecentSearchesText: '没有搜索历史',
58+ // saveRecentSearchButtonTitle: '保存至搜索历史',
59+ // removeRecentSearchButtonTitle: '从搜索历史中移除',
60+ // favoriteSearchesTitle: '收藏',
61+ // removeFavoriteSearchButtonTitle: '从收藏中移除',
62+ // },
63+ // errorScreen: {
64+ // titleText: '无法获取结果',
65+ // helpText: '你可能需要检查你的网络连接',
66+ // },
67+ // footer: {
68+ // selectText: '查询',
69+ // selectKeyAriaLabel: 'Enter key',
70+ // navigateText: '切换',
71+ // navigateUpKeyAriaLabel: 'Arrow up',
72+ // navigateDownKeyAriaLabel: 'Arrow down',
73+ // closeText: '关闭',
74+ // closeKeyAriaLabel: 'Escape key',
75+ // searchByText: '技术支持',
76+ // },
77+ // noResultsScreen: {
78+ // noResultsText: '无法找到相关结果',
79+ // suggestedQueryText: '你可以尝试查询',
80+ // openIssueText: '你认为该查询应该有结果?',
81+ // openIssueLinkText: '点击反馈',
82+ // },
83+ // },
84+ // }
85+ // }
86+ // }
87+ // }],
88+ // other plugins
89+ // [
90+ // // 本地全文搜索
91+ // '@vuepress/plugin-search',
92+ // {
93+ // locales: {
94+ // '/': {
95+ // placeholder: '搜索',
96+ // },
97+ // '/zh/': {
98+ // placeholder: '搜索',
99+ // },
100+ // },
101+ // maxSuggestions: 10 // 显示最大搜索
102+ // },
103+ // ],
104+ ]
103105} ;
0 commit comments