Skip to content

Commit fffb9b3

Browse files
committed
feat: 添加英语和葡萄牙语 config.ts 配置文件
- 为 en 语言创建 config.ts 文件 - 为 pt 语言创建 config.ts 文件 - 包含各语言对应的导航菜单和配置 - 确保所有语言版本都有完整的配置文件
1 parent fd5082d commit fffb9b3

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed

docs/en/config.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import { defineAdditionalConfig } from 'vitepress'
2+
import { sidebar } from './sidebar'
3+
4+
export default defineAdditionalConfig({
5+
lang: 'en-US',
6+
description: 'RustFS - MinIO alternative, high-performance distributed storage solution',
7+
8+
themeConfig: {
9+
nav: [
10+
{ text: 'Home', link: 'https://rustfs.com' },
11+
{ text: 'Installation', link: '/en/installation/linux' },
12+
{ text: 'SDK', link: '/en/sdk' },
13+
{ text: 'Demo', link: 'https://play.rustfs.com' },
14+
{ text: 'Community', link: 'https://github.com/rustfs/rustfs/discussions' },
15+
{ text: 'About', link: '/en/about' },
16+
],
17+
18+
sidebar: {
19+
'/en/': sidebar,
20+
},
21+
22+
editLink: {
23+
pattern: 'https://github.com/rustfs/docs.rustfs.com/edit/main/docs/:path',
24+
text: 'Edit this page on GitHub'
25+
},
26+
27+
footer: {
28+
message: 'Released under the Apache License 2.0.',
29+
copyright: 'Copyright © 2025 RustFS'
30+
}
31+
}
32+
})

docs/pt/config.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import { defineAdditionalConfig } from 'vitepress'
2+
import { sidebar } from './sidebar'
3+
4+
export default defineAdditionalConfig({
5+
lang: 'pt-BR',
6+
description: 'RustFS - Alternativa ao MinIO, solução de armazenamento distribuído de alta performance',
7+
8+
themeConfig: {
9+
nav: [
10+
{ text: 'Início', link: 'https://rustfs.com' },
11+
{ text: 'Instalação', link: '/pt/installation/linux' },
12+
{ text: 'SDK', link: '/pt/sdk' },
13+
{ text: 'Demo', link: 'https://play.rustfs.com' },
14+
{ text: 'Comunidade', link: 'https://github.com/rustfs/rustfs/discussions' },
15+
{ text: 'Sobre', link: '/pt/about' },
16+
],
17+
18+
sidebar: {
19+
'/pt/': sidebar,
20+
},
21+
22+
editLink: {
23+
pattern: 'https://github.com/rustfs/docs.rustfs.com/edit/main/docs/:path',
24+
text: 'Editar esta página no GitHub'
25+
},
26+
27+
footer: {
28+
message: 'Lançado sob a Licença Apache 2.0.',
29+
copyright: 'Copyright © 2025 RustFS'
30+
}
31+
}
32+
})

0 commit comments

Comments
 (0)