chore: docs config

master^2
xingyu4j 2026-05-18 18:35:34 +08:00
parent 6592135cc5
commit 5c8dd1a6da
4 changed files with 9 additions and 8 deletions

View File

@ -105,6 +105,7 @@
"**/bower_components": true,
"**/.turbo": true,
"**/.idea": true,
"**/.vitepress": true,
"**/tmp": true,
"**/.git": true,
"**/.svn": true,

View File

@ -1,12 +1,12 @@
import { withPwa } from '@vite-pwa/vitepress';
import { defineConfigWithTheme } from 'vitepress';
import { defineConfig } from 'vitepress';
import { en } from './en.mts';
import { shared } from './shared.mts';
import { zh } from './zh.mts';
export default withPwa(
defineConfigWithTheme({
defineConfig({
...shared,
locales: {
en: {

View File

@ -61,7 +61,7 @@ export const shared = defineConfig({
},
preprocessorOptions: {
scss: {
api: 'modern',
// api: 'modern',
},
},
},

View File

@ -337,8 +337,8 @@ export const search: DefaultTheme.AlgoliaSearchOptions['locales'] = {
footer: {
closeText: '关闭',
navigateText: '切换',
searchByText: '搜索提供者',
selectText: '选择',
poweredByText: '搜索提供者',
},
noResultsScreen: {
noResultsText: '无法找到相关结果',
@ -347,10 +347,10 @@ export const search: DefaultTheme.AlgoliaSearchOptions['locales'] = {
suggestedQueryText: '你可以尝试查询',
},
searchBox: {
cancelButtonAriaLabel: '取消',
cancelButtonText: '取消',
resetButtonAriaLabel: '清除查询条件',
resetButtonTitle: '清除查询条件',
closeButtonAriaLabel: '取消',
closeButtonText: '取消',
clearButtonAriaLabel: '清除查询条件',
clearButtonTitle: '清除查询条件',
},
startScreen: {
favoriteSearchesTitle: '收藏',