|
@@ -105,11 +105,49 @@ export default defineConfig({
|
|
|
title: "CocoBlockly帮助文档",
|
|
|
description: "Cococlass help documents",
|
|
|
srcDir: DOC_BASE_PATH,
|
|
|
- // themeConfig: {
|
|
|
- // search: {
|
|
|
- // provider: "local",
|
|
|
- // },
|
|
|
- // },
|
|
|
+ themeConfig: {
|
|
|
+ search: {
|
|
|
+ provider: "local",
|
|
|
+ options: {
|
|
|
+ locales: {
|
|
|
+ root: {
|
|
|
+ translations: {
|
|
|
+ button: {
|
|
|
+ buttonText: '搜索文档',
|
|
|
+ buttonAriaLabel: '搜索文档'
|
|
|
+ },
|
|
|
+ modal: {
|
|
|
+ noResultsText: '无法找到相关结果',
|
|
|
+ resetButtonTitle: '清除查询条件',
|
|
|
+ footer: {
|
|
|
+ selectText: '选择',
|
|
|
+ navigateText: '切换',
|
|
|
+ closeText: '关闭',
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ 'zh-HK': {
|
|
|
+ translations: {
|
|
|
+ button: {
|
|
|
+ buttonText: '搜索文档hk',
|
|
|
+ buttonAriaLabel: '搜索文档hk'
|
|
|
+ },
|
|
|
+ modal: {
|
|
|
+ noResultsText: '无法找到相关结果',
|
|
|
+ resetButtonTitle: '清除查询条件',
|
|
|
+ footer: {
|
|
|
+ selectText: '选择',
|
|
|
+ navigateText: '切换',
|
|
|
+ closeText: '关闭',
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
appearance: false,
|
|
|
|
|
|
vite: {
|