Skip to content

Commit c3857eb

Browse files
authored
docs: initialize zh docs (#514)
1 parent db055f1 commit c3857eb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+247
-40
lines changed

website/docs/en/guide/start/index.mdx

Lines changed: 2 additions & 2 deletions

website/docs/zh/_meta.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,5 @@
88
"text": "配置",
99
"link": "/config/",
1010
"activeMatch": "/config/"
11-
},
12-
{
13-
"text": "API",
14-
"link": "/api/javascript-api/core",
15-
"activeMatch": "/api/"
16-
},
17-
{
18-
"text": "博客",
19-
"link": "/blog/",
20-
"activeMatch": "/blog/"
2111
}
2212
]

website/docs/zh/config/_meta.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[
2+
{
3+
"type": "file",
4+
"name": "index",
5+
"label": "配置总览"
6+
},
7+
{
8+
"type": "dir",
9+
"name": "lib",
10+
"label": "Lib 配置"
11+
},
12+
{
13+
"type": "dir",
14+
"name": "rsbuild",
15+
"label": "Rsbuild 配置"
16+
}
17+
]

website/docs/zh/config/index.mdx

Lines changed: 6 additions & 0 deletions

website/docs/zh/config/lib/_meta.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[
2+
"format",
3+
"bundle",
4+
"auto-extension",
5+
"auto-external",
6+
"redirect",
7+
"syntax",
8+
"external-helpers",
9+
"banner",
10+
"footer",
11+
"dts",
12+
"shims",
13+
"id",
14+
"umd-name"
15+
]
Lines changed: 1 addition & 0 deletions
Lines changed: 5 additions & 0 deletions

website/docs/zh/config/lib/banner.mdx

Lines changed: 5 additions & 0 deletions

website/docs/zh/config/lib/bundle.mdx

Lines changed: 1 addition & 0 deletions

website/docs/zh/config/lib/dts.mdx

Lines changed: 5 additions & 0 deletions
Lines changed: 1 addition & 0 deletions

website/docs/zh/config/lib/footer.mdx

Lines changed: 5 additions & 0 deletions

website/docs/zh/config/lib/format.mdx

Lines changed: 1 addition & 0 deletions

website/docs/zh/config/lib/id.mdx

Lines changed: 1 addition & 0 deletions

website/docs/zh/config/lib/index.mdx

Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions

website/docs/zh/config/lib/shims.mdx

Lines changed: 5 additions & 0 deletions

website/docs/zh/config/lib/syntax.mdx

Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[
2+
"source",
3+
"output",
4+
"tools",
5+
{
6+
"type": "file",
7+
"name": "plugins",
8+
"label": "plugins"
9+
}
10+
]
Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions
Lines changed: 3 additions & 0 deletions
Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions

website/docs/zh/guide/_meta.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[
2+
{
3+
"type": "dir",
4+
"name": "start",
5+
"label": "开始"
6+
},
7+
{
8+
"type": "dir",
9+
"name": "solution",
10+
"label": "解决方案"
11+
},
12+
{
13+
"type": "dir",
14+
"name": "basic",
15+
"label": "基础"
16+
},
17+
{
18+
"type": "dir",
19+
"name": "advanced",
20+
"label": "进阶"
21+
},
22+
{
23+
"type": "dir",
24+
"name": "migration",
25+
"label": "迁移"
26+
}
27+
]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[
2+
"third-party-deps",
3+
"output-compatibility",
4+
"dts",
5+
"module-federation",
6+
"storybook"
7+
]
Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[
2+
"cli",
3+
"configure-rslib",
4+
"typescript",
5+
"output-format",
6+
"output-structure",
7+
"upgrade-rslib"
8+
]

website/docs/zh/guide/basic/cli.mdx

Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions

website/docs/zh/guide/faq/_meta.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
["general", "features", "exceptions"]
Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions

website/docs/zh/guide/faq/general.mdx

Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
["modernjs-module", "tsup"]
Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
["nodejs", "react"]
Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
["index", "quick-start", "glossary", "npm-packages"]
Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions
Lines changed: 3 additions & 0 deletions
Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions

website/docs/zh/guide/start/index.mdx

Lines changed: 48 additions & 0 deletions
Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions

website/docs/zh/index.mdx

Lines changed: 1 addition & 1 deletion

website/i18n.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"subtitle": {
1111
"en": "Rsbuild-based Library Development Tool",
12-
"zh": "基于 Rsbuild 的 Library 开发工具"
12+
"zh": "基于 Rsbuild 的库开发工具"
1313
},
1414
"slogan": {
1515
"en": "Create JavaScript libraries in a simple and intuitive way",

website/rspress.config.ts

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -53,23 +53,28 @@ export default defineConfig({
5353
text: '📝 Edit this page on GitHub',
5454
},
5555
},
56-
// {
57-
// lang: 'zh',
58-
// label: '简体中文',
59-
// title: 'Rslib',
60-
// outlineTitle: '目录',
61-
// prevPageText: '上一页',
62-
// nextPageText: '下一页',
63-
// searchPlaceholderText: '搜索文档',
64-
// searchNoResultsText: '无法找到相关搜索结果',
65-
// searchSuggestedQueryText: '请使用不同的关键字重试',
66-
// description: '基于 Rsbuild 的库构建工具',
67-
// editLink: {
68-
// docRepoBaseUrl:
69-
// 'https://github.com/web-infra-dev/rslib/tree/main/website/docs',
70-
// text: '📝 在 GitHub 上编辑此页',
71-
// },
72-
// },
56+
{
57+
lang: 'zh',
58+
label: '简体中文',
59+
title: 'Rslib',
60+
outlineTitle: '目录',
61+
prevPageText: '上一页',
62+
nextPageText: '下一页',
63+
searchPlaceholderText: '搜索文档',
64+
searchNoResultsText: '无法找到相关搜索结果',
65+
searchSuggestedQueryText: '请使用不同的关键字重试',
66+
description: '基于 Rsbuild 的库构建工具',
67+
overview: {
68+
filterNameText: '过滤',
69+
filterPlaceholderText: '输入关键词',
70+
filterNoResultText: '未找到匹配的 API',
71+
},
72+
editLink: {
73+
docRepoBaseUrl:
74+
'https://github.com/web-infra-dev/rslib/tree/main/website/docs',
75+
text: '📝 在 GitHub 上编辑此页',
76+
},
77+
},
7378
],
7479
},
7580
builderConfig: {

0 commit comments

Comments
 (0)