mirror of
https://github.com/142vip/408CSFamily.git
synced 2026-04-13 12:19:43 +08:00
5.20 fix env
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
* @Author: 【B站&公众号】Rong姐姐好可爱
|
||||
* @Date: 2021-01-19 08:04:19
|
||||
* @LastEditors: 【B站&公众号】Rong姐姐好可爱
|
||||
* @LastEditTime: 2022-04-19 09:19:59
|
||||
* @LastEditTime: 2022-04-20 09:30:22
|
||||
*/
|
||||
module.exports = {
|
||||
title: "计算机应试全家桶",
|
||||
@@ -18,7 +18,7 @@ module.exports = {
|
||||
["link", { rel: "icon", href: "/fight_favicon.ico" }]
|
||||
],
|
||||
themeConfig: {
|
||||
logo: "/favicon.ico",
|
||||
logo: "/fight_favicon.ico",
|
||||
darkMode: false, // 禁用夜色
|
||||
navbar: require("./config/navbar"), // 注意这个关键字有所改变
|
||||
sidebar: require("./config/sidebar"),
|
||||
@@ -37,75 +37,75 @@ module.exports = {
|
||||
search: true,
|
||||
searchMaxSuggestions: 10,
|
||||
},
|
||||
plugins: [
|
||||
// 全文搜索 参考配置:https://github.com/vuepress/vuepress-next/blob/main/docs/.vuepress/config.ts
|
||||
['@vuepress/docsearch',
|
||||
{
|
||||
apiKey: '<API_KEY>',
|
||||
indexName: '<INDEX_NAME>',
|
||||
locales: {
|
||||
'/': {
|
||||
placeholder: '搜索一下',
|
||||
translations: {
|
||||
button: {
|
||||
buttonText: '搜索一下',
|
||||
buttonAriaLabel: '搜索一下',
|
||||
},
|
||||
modal: {
|
||||
searchBox: {
|
||||
resetButtonTitle: '清除查询条件',
|
||||
resetButtonAriaLabel: '清除查询条件',
|
||||
cancelButtonText: '取消',
|
||||
cancelButtonAriaLabel: '取消'
|
||||
},
|
||||
startScreen: {
|
||||
recentSearchesTitle: '搜索历史',
|
||||
noRecentSearchesText: '没有搜索历史',
|
||||
saveRecentSearchButtonTitle: '保存至搜索历史',
|
||||
removeRecentSearchButtonTitle: '从搜索历史中移除',
|
||||
favoriteSearchesTitle: '收藏',
|
||||
removeFavoriteSearchButtonTitle: '从收藏中移除',
|
||||
},
|
||||
errorScreen: {
|
||||
titleText: '无法获取结果',
|
||||
helpText: '你可能需要检查你的网络连接',
|
||||
},
|
||||
footer: {
|
||||
selectText: '查询',
|
||||
selectKeyAriaLabel: 'Enter key',
|
||||
navigateText: '切换',
|
||||
navigateUpKeyAriaLabel: 'Arrow up',
|
||||
navigateDownKeyAriaLabel: 'Arrow down',
|
||||
closeText: '关闭',
|
||||
closeKeyAriaLabel: 'Escape key',
|
||||
searchByText: '技术支持',
|
||||
},
|
||||
noResultsScreen: {
|
||||
noResultsText: '无法找到相关结果',
|
||||
suggestedQueryText: '你可以尝试查询',
|
||||
openIssueText: '你认为该查询应该有结果?',
|
||||
openIssueLinkText: '点击反馈',
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
}],
|
||||
// other plugins
|
||||
// [
|
||||
// // 本地全文搜索
|
||||
// '@vuepress/plugin-search',
|
||||
// {
|
||||
// locales: {
|
||||
// '/': {
|
||||
// placeholder: '搜索',
|
||||
// },
|
||||
// '/zh/': {
|
||||
// placeholder: '搜索',
|
||||
// },
|
||||
// },
|
||||
// maxSuggestions: 10 // 显示最大搜索
|
||||
// },
|
||||
// ],
|
||||
]
|
||||
// plugins: [
|
||||
// // 全文搜索 参考配置:https://github.com/vuepress/vuepress-next/blob/main/docs/.vuepress/config.ts
|
||||
// ['@vuepress/docsearch',
|
||||
// {
|
||||
// apiKey: '<API_KEY>',
|
||||
// indexName: '<INDEX_NAME>',
|
||||
// locales: {
|
||||
// '/': {
|
||||
// placeholder: '搜索一下',
|
||||
// translations: {
|
||||
// button: {
|
||||
// buttonText: '搜索一下',
|
||||
// buttonAriaLabel: '搜索一下',
|
||||
// },
|
||||
// modal: {
|
||||
// searchBox: {
|
||||
// resetButtonTitle: '清除查询条件',
|
||||
// resetButtonAriaLabel: '清除查询条件',
|
||||
// cancelButtonText: '取消',
|
||||
// cancelButtonAriaLabel: '取消'
|
||||
// },
|
||||
// startScreen: {
|
||||
// recentSearchesTitle: '搜索历史',
|
||||
// noRecentSearchesText: '没有搜索历史',
|
||||
// saveRecentSearchButtonTitle: '保存至搜索历史',
|
||||
// removeRecentSearchButtonTitle: '从搜索历史中移除',
|
||||
// favoriteSearchesTitle: '收藏',
|
||||
// removeFavoriteSearchButtonTitle: '从收藏中移除',
|
||||
// },
|
||||
// errorScreen: {
|
||||
// titleText: '无法获取结果',
|
||||
// helpText: '你可能需要检查你的网络连接',
|
||||
// },
|
||||
// footer: {
|
||||
// selectText: '查询',
|
||||
// selectKeyAriaLabel: 'Enter key',
|
||||
// navigateText: '切换',
|
||||
// navigateUpKeyAriaLabel: 'Arrow up',
|
||||
// navigateDownKeyAriaLabel: 'Arrow down',
|
||||
// closeText: '关闭',
|
||||
// closeKeyAriaLabel: 'Escape key',
|
||||
// searchByText: '技术支持',
|
||||
// },
|
||||
// noResultsScreen: {
|
||||
// noResultsText: '无法找到相关结果',
|
||||
// suggestedQueryText: '你可以尝试查询',
|
||||
// openIssueText: '你认为该查询应该有结果?',
|
||||
// openIssueLinkText: '点击反馈',
|
||||
// },
|
||||
// },
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }],
|
||||
// // other plugins
|
||||
// // [
|
||||
// // // 本地全文搜索
|
||||
// // '@vuepress/plugin-search',
|
||||
// // {
|
||||
// // locales: {
|
||||
// // '/': {
|
||||
// // placeholder: '搜索',
|
||||
// // },
|
||||
// // '/zh/': {
|
||||
// // placeholder: '搜索',
|
||||
// // },
|
||||
// // },
|
||||
// // maxSuggestions: 10 // 显示最大搜索
|
||||
// // },
|
||||
// // ],
|
||||
// ]
|
||||
};
|
||||
Reference in New Issue
Block a user