升级 vitepress 至 v1.2.3 (#74)

This commit is contained in:
Theo 2024-06-24 22:23:44 +08:00 committed by GitHub
parent 7ee02b0745
commit 152f482594
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 1530 additions and 822 deletions

View File

@ -16,7 +16,8 @@ export default defineConfig({
'script',
{},
"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: {
root: {
@ -83,14 +84,60 @@ export default defineConfig({
},
},
themeConfig: {
logo: { src: '/logo.png', width: 24, height: 24 },
socialLinks: [
{ icon: 'github', link: 'https://github.com/nezhahq/nezhahq.github.io' }
],
algolia: {
appId: 'HP6QF6KMZD',
apiKey: 'fb8bae9ed373d1057e0c07fcf32b3f1a',
indexName: 'nezhahq'
search: {
provider: 'algolia',
options:
{
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: {
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'

BIN
docs/public/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

2293
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -21,6 +21,6 @@
},
"homepage": "https://github.com/nezhahq/nezhahq.github.io#readme",
"devDependencies": {
"vitepress": "^1.0.0-beta.2"
"vitepress": "^1.2.3"
}
}