升级 vitepress 至 v1.2.3 (#74)
This commit is contained in:
parent
7ee02b0745
commit
152f482594
@ -16,7 +16,8 @@ export default defineConfig({
|
|||||||
'script',
|
'script',
|
||||||
{},
|
{},
|
||||||
"window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js', new Date());\ngtag('config', 'G-FDME8GJGTW');"
|
"window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js', new Date());\ngtag('config', 'G-FDME8GJGTW');"
|
||||||
]
|
],
|
||||||
|
['link', { rel: 'icon', type: 'image/png', sizes: '193x193', href: '/logo.png' }],
|
||||||
],
|
],
|
||||||
locales: {
|
locales: {
|
||||||
root: {
|
root: {
|
||||||
@ -83,14 +84,60 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
themeConfig: {
|
themeConfig: {
|
||||||
|
logo: { src: '/logo.png', width: 24, height: 24 },
|
||||||
socialLinks: [
|
socialLinks: [
|
||||||
{ icon: 'github', link: 'https://github.com/nezhahq/nezhahq.github.io' }
|
{ icon: 'github', link: 'https://github.com/nezhahq/nezhahq.github.io' }
|
||||||
],
|
],
|
||||||
algolia: {
|
search: {
|
||||||
appId: 'HP6QF6KMZD',
|
provider: 'algolia',
|
||||||
apiKey: 'fb8bae9ed373d1057e0c07fcf32b3f1a',
|
options:
|
||||||
indexName: 'nezhahq'
|
{
|
||||||
|
appId: 'HP6QF6KMZD',
|
||||||
|
apiKey: 'fb8bae9ed373d1057e0c07fcf32b3f1a',
|
||||||
|
indexName: 'nezhahq',
|
||||||
|
locales: {
|
||||||
|
root: {
|
||||||
|
placeholder: '搜索文档',
|
||||||
|
translations: {
|
||||||
|
button: {
|
||||||
|
buttonText: '搜索文档',
|
||||||
|
buttonAriaLabel: '搜索文档'
|
||||||
|
},
|
||||||
|
modal: {
|
||||||
|
searchBox: {
|
||||||
|
resetButtonTitle: '清除查询条件',
|
||||||
|
resetButtonAriaLabel: '清除查询条件',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
cancelButtonAriaLabel: '取消'
|
||||||
|
},
|
||||||
|
startScreen: {
|
||||||
|
recentSearchesTitle: '搜索历史',
|
||||||
|
noRecentSearchesText: '没有搜索历史',
|
||||||
|
saveRecentSearchButtonTitle: '保存至搜索历史',
|
||||||
|
removeRecentSearchButtonTitle: '从搜索历史中移除',
|
||||||
|
favoriteSearchesTitle: '收藏',
|
||||||
|
removeFavoriteSearchButtonTitle: '从收藏中移除'
|
||||||
|
},
|
||||||
|
errorScreen: {
|
||||||
|
titleText: '无法获取结果',
|
||||||
|
helpText: '你可能需要检查你的网络连接'
|
||||||
|
},
|
||||||
|
footer: {
|
||||||
|
selectText: '选择',
|
||||||
|
navigateText: '切换',
|
||||||
|
closeText: '关闭',
|
||||||
|
searchByText: '搜索提供者'
|
||||||
|
},
|
||||||
|
noResultsScreen: {
|
||||||
|
noResultsText: '无法找到相关结果',
|
||||||
|
suggestedQueryText: '你可以尝试查询',
|
||||||
|
reportMissingResultsText: '你认为该查询应该有结果?',
|
||||||
|
reportMissingResultsLinkText: '点击反馈'
|
||||||
|
}
|
||||||
|
}}}}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
footer: {
|
footer: {
|
||||||
message: 'This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) License',
|
message: 'This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) License',
|
||||||
copyright: 'Copyright © 2022-present NezhaHQ'
|
copyright: 'Copyright © 2022-present NezhaHQ'
|
BIN
docs/public/logo.png
Normal file
BIN
docs/public/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.3 KiB |
2293
package-lock.json
generated
2293
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -21,6 +21,6 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/nezhahq/nezhahq.github.io#readme",
|
"homepage": "https://github.com/nezhahq/nezhahq.github.io#readme",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"vitepress": "^1.0.0-beta.2"
|
"vitepress": "^1.2.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user