Skip to content

Commit e2b5598

Browse files
authored
fix: i18n (#33)
* feat: 多个目录 * fix: 空连接 * style: test * fix: 无法构建 * fix: 无法构建 * fix: 无法构建 * fix: 无法构建
1 parent b7f5271 commit e2b5598

File tree

1 file changed

+23
-12
lines changed

1 file changed

+23
-12
lines changed

docusaurus.config.js

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const config = {
3131
// to replace "en" with "zh-Hans".
3232
i18n: {
3333
defaultLocale: 'zh-Hans',
34-
locales: ['zh-Hans', 'en'],
34+
locales: ['zh-Hans'],
3535
},
3636

3737
presets: [
@@ -72,6 +72,27 @@ const config = {
7272
position: 'left',
7373
label: '开始',
7474
},
75+
{
76+
type: 'docSidebar',
77+
sidebarId: 'tutorialSidebar',
78+
position: 'left',
79+
label: '历史',
80+
docsPluginId: 'history'
81+
},
82+
{
83+
type: 'docSidebar',
84+
sidebarId: 'tutorialSidebar',
85+
position: 'left',
86+
label: '管理人员',
87+
docsPluginId: 'admin'
88+
},
89+
{
90+
type: 'docSidebar',
91+
sidebarId: 'tutorialSidebar',
92+
position: 'left',
93+
label: '日志',
94+
docsPluginId: 'logs'
95+
},
7596
// 搜索框
7697
{
7798
type: 'search',
@@ -172,17 +193,7 @@ const config = {
172193
],
173194
],
174195
themes: [
175-
[
176-
require.resolve("@easyops-cn/docusaurus-search-local"),
177-
{
178-
hashed: true,
179-
language: ["en", "zh"],
180-
highlightSearchTermsOnTargetPage: true,
181-
explicitSearchResultPath: true,
182-
indexBlog: false,
183-
docsRouteBasePath: "/"
184-
},
185-
],
196+
186197
],
187198
};
188199

0 commit comments

Comments
 (0)