Skip to content

Commit 57bdb18

Browse files
committed
refactor(website): 重构文档结构并统一语言路径
1 parent 0c933ee commit 57bdb18

File tree

10 files changed

+12
-56
lines changed

10 files changed

+12
-56
lines changed

website/docs/.vitepress/locales/index.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,13 @@ export default defineConfig({
66
locales: {
77
root: {
88
label: '中文',
9-
lang: zh.lang,
10-
themeConfig: zh.themeConfig,
11-
description: zh.description
12-
},
13-
zh: {
14-
label: '中文',
15-
lang: zh.lang,
9+
lang: 'zh',
1610
themeConfig: zh.themeConfig,
1711
description: zh.description
1812
},
1913
en: {
2014
label: 'English',
21-
lang: en.lang,
15+
lang: 'en',
2216
themeConfig: en.themeConfig,
2317
description: en.description
2418
}

website/docs/.vitepress/locales/zh.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default defineConfig({
1414
lastUpdatedText: '最后更新',
1515

1616
sidebar: {
17-
'/zh/guide/': sidebarGuide()
17+
'/guide/': sidebarGuide()
1818
},
1919

2020
socialLinks: [
@@ -35,7 +35,7 @@ export default defineConfig({
3535

3636
function nav() {
3737
return [
38-
{ text: '指南', link: '/zh/guide/introduction' },
38+
{ text: '指南', link: '/guide/introduction' },
3939
]
4040
}
4141

@@ -44,12 +44,12 @@ function sidebarGuide() {
4444
{
4545
text: '指南',
4646
items: [
47-
{ text: '简介', link: '/zh/guide/introduction' },
48-
{ text: '安装指南', link: '/zh/guide/installation' },
49-
{ text: '配置指南', link: '/zh/guide/configuration' },
50-
{ text: '使用指南', link: '/zh/guide/usage' },
51-
{ text: '设备兼容性', link: '/zh/guide/compatibility' },
52-
{ text: '常见问题', link: '/zh/guide/faq' },
47+
{ text: '简介', link: '/guide/introduction' },
48+
{ text: '安装指南', link: '/guide/installation' },
49+
{ text: '配置指南', link: '/guide/configuration' },
50+
{ text: '使用指南', link: '/guide/usage' },
51+
{ text: '设备兼容性', link: '/guide/compatibility' },
52+
{ text: '常见问题', link: '/guide/faq' },
5353
]
5454
}
5555
]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

website/docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ hero:
1212
actions:
1313
- theme: brand
1414
text: 开始了解
15-
link: /zh/guide/introduction
15+
link: /guide/introduction
1616
- theme: alt
1717
text: 安装指南
18-
link: /zh/guide/installation
18+
link: /guide/installation
1919
- theme: brand
2020
text: 查看源码
2121
link: https://github.com/Seyud/Mediatek_Mali_GPU_Governor

website/docs/zh/index.md

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)