chore: docs config
parent
6592135cc5
commit
5c8dd1a6da
|
|
@ -105,6 +105,7 @@
|
|||
"**/bower_components": true,
|
||||
"**/.turbo": true,
|
||||
"**/.idea": true,
|
||||
"**/.vitepress": true,
|
||||
"**/tmp": true,
|
||||
"**/.git": true,
|
||||
"**/.svn": true,
|
||||
|
|
|
|||
|
|
@ -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: {
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ export const shared = defineConfig({
|
|||
},
|
||||
preprocessorOptions: {
|
||||
scss: {
|
||||
api: 'modern',
|
||||
// api: 'modern',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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: '收藏',
|
||||
|
|
|
|||
Loading…
Reference in New Issue