Browse Source

chore: docs config

pull/7921/head
xingyu4j 5 months ago
parent
commit
5c8dd1a6da
  1. 1
      .vscode/settings.json
  2. 4
      docs/.vitepress/config/index.mts
  3. 2
      docs/.vitepress/config/shared.mts
  4. 10
      docs/.vitepress/config/zh.mts

1
.vscode/settings.json

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

4
docs/.vitepress/config/index.mts

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

2
docs/.vitepress/config/shared.mts

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

10
docs/.vitepress/config/zh.mts

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

Loading…
Cancel
Save