Skip to content

Commit af71e41

Browse files
committed
修改config
1 parent e059ff4 commit af71e41

File tree

1 file changed

+1
-30
lines changed

1 file changed

+1
-30
lines changed

docs/.vitepress/config.mts

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,12 @@ const sidebarItems = getChapterItems(1, 2);
77

88
// https://vitepress.dev/reference/site-config
99
export default defineConfig({
10+
lang: "zh",
1011
title: "灵矽文档中心",
1112
description: "A 灵矽 Documentation Project",
1213
lastUpdated: true,
1314
cleanUrls: true,
1415
base: "/Xrobot-docs/",
15-
locales: {
16-
root: {
17-
label: "简体中文",
18-
lang: "cn",
19-
},
20-
// en: {
21-
// label: "English",
22-
// lang: "en",
23-
// },
24-
},
2516
themeConfig: {
2617
// https://vitepress.dev/reference/default-theme-config
2718
outline: [2, 4],
@@ -42,26 +33,6 @@ export default defineConfig({
4233
],
4334
search: {
4435
provider: 'local',
45-
options: {
46-
locales: {
47-
zh: {
48-
translations: {
49-
button: {
50-
buttonText: '搜索文档',
51-
buttonAriaLabel: '搜索文档'
52-
},
53-
modal: {
54-
noResultsText: '无法找到相关结果',
55-
resetButtonTitle: '清除查询条件',
56-
footer: {
57-
selectText: '选择',
58-
navigateText: '切换'
59-
}
60-
}
61-
}
62-
}
63-
}
64-
}
6536
}
6637
},
6738
markdown: {

0 commit comments

Comments
 (0)