@aigne/doc-smith 0.8.11-beta.6 → 0.8.11-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.aigne/doc-smith/config.yaml +2 -0
- package/.aigne/doc-smith/output/structure-plan.json +2 -2
- package/.aigne/doc-smith/preferences.yml +28 -20
- package/.aigne/doc-smith/upload-cache.yaml +702 -0
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +13 -0
- package/README.md +1 -1
- package/agents/generate/document-structure-tools/add-document.mjs +35 -10
- package/agents/generate/document-structure-tools/delete-document.mjs +35 -12
- package/agents/generate/document-structure-tools/move-document.mjs +43 -17
- package/agents/generate/document-structure-tools/update-document.mjs +37 -10
- package/agents/generate/update-document-structure.yaml +1 -7
- package/agents/generate/user-review-document-structure.mjs +5 -4
- package/agents/translate/translate-document.yaml +1 -9
- package/agents/update/check-update-is-single.mjs +2 -1
- package/agents/update/document-tools/update-document-content.mjs +24 -14
- package/agents/update/fs-tools/glob.mjs +184 -0
- package/agents/update/fs-tools/grep.mjs +317 -0
- package/agents/update/fs-tools/read-file.mjs +307 -0
- package/agents/update/generate-document.yaml +4 -7
- package/agents/update/update-document-detail.yaml +6 -10
- package/agents/update/user-review-document.mjs +13 -13
- package/assets/screenshots/doc-complete-setup.png +0 -0
- package/assets/screenshots/doc-generate-docs.png +0 -0
- package/assets/screenshots/doc-generate.png +0 -0
- package/assets/screenshots/doc-generated-successfully.png +0 -0
- package/assets/screenshots/doc-publish.png +0 -0
- package/assets/screenshots/doc-regenerate.png +0 -0
- package/assets/screenshots/doc-translate-langs.png +0 -0
- package/assets/screenshots/doc-translate.png +0 -0
- package/assets/screenshots/doc-update.png +0 -0
- package/docs/advanced-how-it-works.ja.md +31 -31
- package/docs/advanced-how-it-works.md +9 -9
- package/docs/advanced-how-it-works.zh-TW.md +24 -24
- package/docs/advanced-how-it-works.zh.md +20 -20
- package/docs/advanced-quality-assurance.ja.md +57 -61
- package/docs/advanced-quality-assurance.md +57 -61
- package/docs/advanced-quality-assurance.zh-TW.md +57 -61
- package/docs/advanced-quality-assurance.zh.md +57 -61
- package/docs/advanced.ja.md +8 -4
- package/docs/advanced.md +7 -3
- package/docs/advanced.zh-TW.md +9 -5
- package/docs/advanced.zh.md +9 -5
- package/docs/changelog.ja.md +206 -29
- package/docs/changelog.md +177 -0
- package/docs/changelog.zh-TW.md +229 -52
- package/docs/changelog.zh.md +204 -27
- package/docs/cli-reference.ja.md +82 -52
- package/docs/cli-reference.md +56 -26
- package/docs/cli-reference.zh-TW.md +82 -52
- package/docs/cli-reference.zh.md +70 -40
- package/docs/configuration-interactive-setup.ja.md +45 -42
- package/docs/configuration-interactive-setup.md +8 -5
- package/docs/configuration-interactive-setup.zh-TW.md +26 -23
- package/docs/configuration-interactive-setup.zh.md +25 -22
- package/docs/configuration-language-support.ja.md +33 -63
- package/docs/configuration-language-support.md +32 -62
- package/docs/configuration-language-support.zh-TW.md +35 -65
- package/docs/configuration-language-support.zh.md +32 -62
- package/docs/configuration-llm-setup.ja.md +25 -23
- package/docs/configuration-llm-setup.md +20 -18
- package/docs/configuration-llm-setup.zh-TW.md +21 -19
- package/docs/configuration-llm-setup.zh.md +20 -18
- package/docs/configuration-preferences.ja.md +67 -52
- package/docs/configuration-preferences.md +56 -41
- package/docs/configuration-preferences.zh-TW.md +69 -54
- package/docs/configuration-preferences.zh.md +68 -53
- package/docs/configuration.ja.md +65 -81
- package/docs/configuration.md +19 -35
- package/docs/configuration.zh-TW.md +62 -79
- package/docs/configuration.zh.md +50 -67
- package/docs/features-generate-documentation.ja.md +44 -69
- package/docs/features-generate-documentation.md +36 -61
- package/docs/features-generate-documentation.zh-TW.md +42 -67
- package/docs/features-generate-documentation.zh.md +41 -67
- package/docs/features-publish-your-docs.ja.md +36 -36
- package/docs/features-publish-your-docs.md +2 -2
- package/docs/features-publish-your-docs.zh-TW.md +21 -21
- package/docs/features-publish-your-docs.zh.md +23 -23
- package/docs/features-translate-documentation.ja.md +40 -31
- package/docs/features-translate-documentation.md +15 -6
- package/docs/features-translate-documentation.zh-TW.md +37 -28
- package/docs/features-translate-documentation.zh.md +23 -14
- package/docs/features-update-and-refine.ja.md +68 -118
- package/docs/features-update-and-refine.md +58 -108
- package/docs/features-update-and-refine.zh-TW.md +67 -116
- package/docs/features-update-and-refine.zh.md +64 -114
- package/docs/features.ja.md +29 -19
- package/docs/features.md +25 -15
- package/docs/features.zh-TW.md +28 -18
- package/docs/features.zh.md +31 -21
- package/docs/getting-started.ja.md +40 -43
- package/docs/getting-started.md +36 -39
- package/docs/getting-started.zh-TW.md +38 -41
- package/docs/getting-started.zh.md +45 -48
- package/docs/overview.ja.md +63 -11
- package/docs/overview.md +60 -8
- package/docs/overview.zh-TW.md +67 -15
- package/docs/overview.zh.md +62 -10
- package/media.md +9 -9
- package/package.json +1 -1
- package/prompts/detail/custom/custom-components.md +304 -188
- package/prompts/detail/document-rules.md +4 -4
- package/prompts/detail/generate-document.md +21 -8
- package/prompts/detail/update-document.md +8 -12
- package/prompts/structure/update-document-structure.md +12 -8
- package/prompts/utils/feedback-refiner.md +3 -3
- package/tests/agents/generate/document-structure-tools/move-document.test.mjs +9 -9
- package/tests/agents/generate/user-review-document-structure.test.mjs +29 -8
- package/tests/agents/update/document-tools/update-document-content.test.mjs +115 -112
- package/tests/agents/update/fs-tools/glob.test.mjs +438 -0
- package/tests/agents/update/fs-tools/grep.test.mjs +279 -0
- package/tests/agents/update/fs-tools/read-file.test.mjs +553 -0
- package/tests/agents/update/user-review-document.test.mjs +48 -27
- package/types/document-schema.mjs +5 -6
- package/types/document-structure-schema.mjs +20 -8
|
@@ -1,138 +1,90 @@
|
|
|
1
|
-
#
|
|
1
|
+
# 更新和优化
|
|
2
2
|
|
|
3
|
-
让文档与不断演进的代码库保持同步是一个系统性的过程。AIGNE DocSmith
|
|
3
|
+
让文档与不断演进的代码库保持同步是一个系统性的过程。AIGNE DocSmith 提供了直接且灵活的命令,可以通过基于代码变更的自动更新或通过精确、由反馈驱动的优化来保持您的内容为最新状态。
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
本指南提供了执行以下任务的步骤:
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
* 在源代码修改时自动更新文档。
|
|
8
|
+
* 使用有针对性的反馈重新生成特定文档。
|
|
9
|
+
* 调整整体文档结构。
|
|
10
10
|
|
|
11
11
|
### 文档更新工作流
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
下图说明了可用于更新文档的不同工作流:
|
|
14
14
|
|
|
15
15
|
```d2 文档更新工作流
|
|
16
16
|
direction: down
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
Developer: {
|
|
19
19
|
shape: c4-person
|
|
20
|
-
label: "开发者"
|
|
21
20
|
}
|
|
22
21
|
|
|
23
|
-
|
|
24
|
-
shape: cylinder
|
|
22
|
+
Source-Code: {
|
|
25
23
|
label: "源代码"
|
|
26
24
|
}
|
|
27
25
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
label: "更新后的\n文档"
|
|
26
|
+
Documentation: {
|
|
27
|
+
label: "文档"
|
|
31
28
|
}
|
|
32
29
|
|
|
33
|
-
|
|
34
|
-
label: "
|
|
30
|
+
Action-Choice: {
|
|
31
|
+
label: "选择操作"
|
|
32
|
+
shape: diamond
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
Generate-Sync: {
|
|
36
|
+
label: "aigne doc generate"
|
|
35
37
|
shape: rectangle
|
|
36
38
|
|
|
37
|
-
|
|
38
|
-
label: "
|
|
39
|
-
shape:
|
|
39
|
+
Change-Detection: {
|
|
40
|
+
label: "检测变更?"
|
|
41
|
+
shape: diamond
|
|
42
|
+
}
|
|
43
|
+
Regenerate-Affected: "重新生成受影响部分"
|
|
44
|
+
Regenerate-All: "重新生成全部"
|
|
40
45
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
46
|
+
Change-Detection -> Regenerate-Affected: "是 (默认)"
|
|
47
|
+
Change-Detection -> Regenerate-All: "否\n(--forceRegenerate)"
|
|
48
|
+
}
|
|
44
49
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
50
|
+
Refine-Content: {
|
|
51
|
+
label: "aigne doc update"
|
|
52
|
+
}
|
|
49
53
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
54
|
+
Refine-Structure: {
|
|
55
|
+
label: "aigne doc generate\n--feedback"
|
|
56
|
+
}
|
|
53
57
|
|
|
54
|
-
|
|
55
|
-
label: "重新生成\n受影响的文档"
|
|
56
|
-
}
|
|
58
|
+
Developer -> Action-Choice
|
|
57
59
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
60
|
+
Action-Choice -> Generate-Sync: "与代码同步"
|
|
61
|
+
Action-Choice -> Refine-Content: "优化文档内容"
|
|
62
|
+
Action-Choice -> Refine-Structure: "优化文档结构"
|
|
62
63
|
|
|
63
|
-
|
|
64
|
-
label: "手动完善(反馈驱动)"
|
|
65
|
-
shape: rectangle
|
|
66
|
-
grid-columns: 2
|
|
67
|
-
grid-gap: 100
|
|
68
|
-
|
|
69
|
-
refine-individual: {
|
|
70
|
-
label: "完善单个文档"
|
|
71
|
-
shape: rectangle
|
|
72
|
-
|
|
73
|
-
cmd-update: {
|
|
74
|
-
label: "aigne doc update\n--feedback"
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
regen-specific: {
|
|
78
|
-
label: "重新生成\n特定文档"
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
optimize-structure: {
|
|
83
|
-
label: "优化整体结构"
|
|
84
|
-
shape: rectangle
|
|
85
|
-
|
|
86
|
-
cmd-generate-feedback: {
|
|
87
|
-
label: "aigne doc generate\n--feedback"
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
re-evaluate-plan: {
|
|
91
|
-
label: "重新评估\n文档计划"
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
64
|
+
Source-Code -> Generate-Sync
|
|
96
65
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
codebase -> workflows.automatic-updates.cmd-generate: "2. 运行命令"
|
|
102
|
-
workflows.automatic-updates.cmd-generate -> workflows.automatic-updates.decision-force
|
|
103
|
-
workflows.automatic-updates.decision-force -> workflows.automatic-updates.detect-changes: "否"
|
|
104
|
-
workflows.automatic-updates.detect-changes -> workflows.automatic-updates.regen-affected
|
|
105
|
-
workflows.automatic-updates.decision-force -> workflows.automatic-updates.regen-all: "是"
|
|
106
|
-
workflows.automatic-updates.regen-affected -> updated-documentation
|
|
107
|
-
workflows.automatic-updates.regen-all -> updated-documentation
|
|
108
|
-
|
|
109
|
-
# 路径 2:单个完善
|
|
110
|
-
developer -> workflows.manual-refinements.refine-individual.cmd-update: "3. 提供\n内容反馈"
|
|
111
|
-
workflows.manual-refinements.refine-individual.cmd-update -> workflows.manual-refinements.refine-individual.regen-specific
|
|
112
|
-
workflows.manual-refinements.refine-individual.regen-specific -> updated-documentation
|
|
113
|
-
|
|
114
|
-
# 路径 3:结构完善
|
|
115
|
-
developer -> workflows.manual-refinements.optimize-structure.cmd-generate-feedback: "4. 提供\n结构反馈"
|
|
116
|
-
workflows.manual-refinements.optimize-structure.cmd-generate-feedback -> workflows.manual-refinements.optimize-structure.re-evaluate-plan
|
|
117
|
-
workflows.manual-refinements.optimize-structure.re-evaluate-plan -> updated-documentation: "使用\n新结构重新生成"
|
|
66
|
+
Generate-Sync.Regenerate-Affected -> Documentation: "更新"
|
|
67
|
+
Generate-Sync.Regenerate-All -> Documentation: "更新"
|
|
68
|
+
Refine-Content -> Documentation: "更新"
|
|
69
|
+
Refine-Structure -> Documentation: "更新"
|
|
118
70
|
```
|
|
119
71
|
|
|
120
72
|
---
|
|
121
73
|
|
|
122
|
-
##
|
|
74
|
+
## 通过变更检测自动更新
|
|
123
75
|
|
|
124
|
-
当您执行 `aigne doc generate` 命令时,DocSmith
|
|
76
|
+
当您执行 `aigne doc generate` 命令时,DocSmith 会首先分析您的代码库,以检测自上次生成以来的变更。然后,它仅重新生成受这些变更影响的文档。这种默认行为通过避免冗余操作来节省时间并减少 API 使用。
|
|
125
77
|
|
|
126
78
|
```shell icon=lucide:terminal
|
|
127
|
-
# DocSmith
|
|
79
|
+
# DocSmith 将检测变更并仅更新必要部分
|
|
128
80
|
aigne doc generate
|
|
129
81
|
```
|
|
130
82
|
|
|
131
|
-

|
|
132
84
|
|
|
133
85
|
### 强制完全重新生成
|
|
134
86
|
|
|
135
|
-
要从头开始重新生成所有文档,绕过缓存和变更检测,请使用 `--forceRegenerate`
|
|
87
|
+
要从头开始重新生成所有文档,绕过缓存和变更检测,请使用 `--forceRegenerate` 标志。当您进行了重大的配置更改或需要完全重建以确保所有文件的一致性时,这是必要的。
|
|
136
88
|
|
|
137
89
|
```shell icon=lucide:terminal
|
|
138
90
|
# 从头开始重新生成所有文档
|
|
@@ -141,52 +93,50 @@ aigne doc generate --forceRegenerate
|
|
|
141
93
|
|
|
142
94
|
---
|
|
143
95
|
|
|
144
|
-
##
|
|
96
|
+
## 通过反馈优化文档
|
|
97
|
+
|
|
98
|
+
您可以通过向 CLI 命令提供直接反馈来优化文档,而无需进行相应的代码更改。这对于提高清晰度、添加示例或调整结构非常有用。
|
|
145
99
|
|
|
146
|
-
|
|
100
|
+
### 优化单个文档内容
|
|
147
101
|
|
|
148
|
-
|
|
102
|
+
要改进特定文档的内容,请使用 `aigne doc update` 命令。该命令允许您提供有针对性的优化指令,并可以在两种模式下运行:交互式或非交互式。
|
|
149
103
|
|
|
150
|
-
|
|
104
|
+
#### 交互模式
|
|
151
105
|
|
|
152
|
-
|
|
106
|
+
要进行引导式流程,请在不带参数的情况下运行该命令。DocSmith 将会显示一个菜单,供您选择要更新的文档。选择后,系统将提示您输入反馈。
|
|
153
107
|
|
|
154
108
|
```shell icon=lucide:terminal
|
|
155
109
|
# 启动交互式更新流程
|
|
156
110
|
aigne doc update
|
|
157
111
|
```
|
|
158
112
|
|
|
159
|
-

|
|
160
114
|
|
|
161
|
-
|
|
115
|
+
#### 非交互模式
|
|
162
116
|
|
|
163
117
|
对于脚本化或更快速的工作流,您可以使用标志直接指定文档和反馈。这样可以实现精确的非交互式更新。
|
|
164
118
|
|
|
165
119
|
```shell icon=lucide:terminal
|
|
166
120
|
# 使用反馈更新特定文档
|
|
167
|
-
aigne doc update --docs overview.md --feedback "
|
|
121
|
+
aigne doc update --docs overview.md --feedback "Add a more detailed FAQ section at the end."
|
|
168
122
|
```
|
|
169
123
|
|
|
170
124
|
`update` 命令的主要参数如下:
|
|
171
125
|
|
|
172
126
|
| 参数 | 描述 |
|
|
173
|
-
|
|
|
127
|
+
| :--- | :--- |
|
|
174
128
|
| `--docs` | 要更新的文档的路径。此标志可以多次使用以进行批量更新。 |
|
|
175
|
-
| `--feedback` |
|
|
176
|
-
|
|
177
|
-
---
|
|
178
|
-
|
|
179
|
-
## 优化整体结构
|
|
129
|
+
| `--feedback` | 一个包含在重新生成文档内容时要使用的具体指令的字符串。 |
|
|
180
130
|
|
|
181
|
-
|
|
131
|
+
### 优化整体结构
|
|
182
132
|
|
|
183
|
-
|
|
133
|
+
除了优化单个文档外,您还可以调整整体文档结构。如果现有组织结构不理想或缺少某个部分,您可以向 `generate` 命令提供反馈。这会指示 DocSmith 根据您的输入重新评估整个文档计划。
|
|
184
134
|
|
|
185
135
|
```shell icon=lucide:terminal
|
|
186
136
|
# 使用特定反馈重新生成文档结构
|
|
187
|
-
aigne doc generate --feedback "
|
|
137
|
+
aigne doc generate --feedback "Remove the 'About' section and add a detailed 'API Reference'."
|
|
188
138
|
```
|
|
189
139
|
|
|
190
|
-
|
|
140
|
+
此方法旨在对文档的目录进行高层级更改,而非对单个文件内的细微内容进行编辑。
|
|
191
141
|
|
|
192
|
-
|
|
142
|
+
内容优化后,下一步是为全球受众做准备。有关说明,请参阅[翻译文档](./features-translate-documentation.md)指南。
|
package/docs/features.ja.md
CHANGED
|
@@ -1,52 +1,62 @@
|
|
|
1
1
|
# コア機能
|
|
2
2
|
|
|
3
|
-
AIGNE DocSmith
|
|
3
|
+
AIGNE DocSmithは、初期作成からグローバルな配布まで、ドキュメントのライフサイクルを管理するための一連のコマンドを提供します。プロセスは、ドキュメントの生成、改良、翻訳、公開という標準的なワークフローに整理されています。
|
|
4
4
|
|
|
5
5
|
```d2
|
|
6
6
|
direction: down
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
label: "
|
|
8
|
+
source-code: {
|
|
9
|
+
label: "ソースコード"
|
|
10
10
|
shape: rectangle
|
|
11
|
-
description: "ソースコードから完全なドキュメントセットを作成します。"
|
|
12
11
|
}
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
label: "
|
|
13
|
+
generate-documentation: {
|
|
14
|
+
label: "ドキュメントの生成"
|
|
16
15
|
shape: rectangle
|
|
17
|
-
description: "ドキュメントをコードと同期させ、的を絞ったフィードバックを適用します。"
|
|
18
16
|
}
|
|
19
17
|
|
|
20
|
-
|
|
21
|
-
label: "
|
|
18
|
+
update-and-refine: {
|
|
19
|
+
label: "更新と改良"
|
|
22
20
|
shape: rectangle
|
|
23
|
-
description: "グローバルな読者のために、コンテンツを複数の言語にローカライズします。"
|
|
24
21
|
}
|
|
25
22
|
|
|
26
|
-
|
|
27
|
-
label: "
|
|
23
|
+
translate-documentation: {
|
|
24
|
+
label: "ドキュメントの翻訳"
|
|
28
25
|
shape: rectangle
|
|
29
|
-
description: "ドキュメントをパブリックまたはプライベートなプラットフォームにデプロイします。"
|
|
30
26
|
}
|
|
31
27
|
|
|
32
|
-
|
|
28
|
+
publish-docs: {
|
|
29
|
+
label: "ドキュメントの公開"
|
|
30
|
+
shape: rectangle
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
platform: {
|
|
34
|
+
label: "DocSmith プラットフォーム\n(またはセルフホスト)"
|
|
35
|
+
shape: cylinder
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
source-code -> generate-documentation
|
|
39
|
+
generate-documentation -> update-and-refine
|
|
40
|
+
update-and-refine -> translate-documentation
|
|
41
|
+
translate-documentation -> publish-docs
|
|
42
|
+
publish-docs -> platform
|
|
33
43
|
```
|
|
34
44
|
|
|
35
|
-
以下のセクションで、DocSmith
|
|
45
|
+
以下のセクションで、DocSmithの主な機能をご覧ください。
|
|
36
46
|
|
|
37
47
|
<x-cards data-columns="2">
|
|
38
48
|
<x-card data-title="ドキュメントの生成" data-icon="lucide:file-plus-2" data-href="/features/generate-documentation">
|
|
39
49
|
単一のコマンドを使用して、ソースコードから完全なドキュメントセットを作成します。
|
|
40
50
|
</x-card>
|
|
41
51
|
<x-card data-title="更新と改良" data-icon="lucide:edit" data-href="/features/update-and-refine">
|
|
42
|
-
|
|
52
|
+
ドキュメントをコードの変更と同期させたり、特定のフィードバックを基に特定のドキュメントを再生成したりします。
|
|
43
53
|
</x-card>
|
|
44
54
|
<x-card data-title="ドキュメントの翻訳" data-icon="lucide:languages" data-href="/features/translate-documentation">
|
|
45
|
-
|
|
55
|
+
コンテンツを複数の対応言語に翻訳し、プロジェクトを世界中のオーディエンスにアクセス可能にします。
|
|
46
56
|
</x-card>
|
|
47
57
|
<x-card data-title="ドキュメントの公開" data-icon="lucide:send" data-href="/features/publish-your-docs">
|
|
48
|
-
|
|
58
|
+
生成したドキュメントを公式のDocSmithプラットフォームまたは独自のセルフホストインスタンスに公開します。
|
|
49
59
|
</x-card>
|
|
50
60
|
</x-cards>
|
|
51
61
|
|
|
52
|
-
|
|
62
|
+
これらの機能は、ドキュメントを作成および保守するための構造化されたワークフローを提供します。利用可能なすべてのコマンドとそのオプションの詳細なリストについては、[CLIコマンドリファレンス](./cli-reference.md)を参照してください。
|
package/docs/features.md
CHANGED
|
@@ -1,35 +1,45 @@
|
|
|
1
1
|
# Core Features
|
|
2
2
|
|
|
3
|
-
AIGNE DocSmith provides a set of commands to manage
|
|
3
|
+
AIGNE DocSmith provides a set of commands to manage the documentation lifecycle, from initial creation to global distribution. The process is organized into a standard workflow: generating, refining,translating, and publishing your documentation.
|
|
4
4
|
|
|
5
5
|
```d2
|
|
6
6
|
direction: down
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
label: "
|
|
8
|
+
source-code: {
|
|
9
|
+
label: "Source Code"
|
|
10
10
|
shape: rectangle
|
|
11
|
-
description: "Create a full documentation set from your source code."
|
|
12
11
|
}
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
label: "
|
|
13
|
+
generate-documentation: {
|
|
14
|
+
label: "Generate Documentation"
|
|
16
15
|
shape: rectangle
|
|
17
|
-
description: "Keep docs in sync with code and apply targeted feedback."
|
|
18
16
|
}
|
|
19
17
|
|
|
20
|
-
|
|
21
|
-
label: "
|
|
18
|
+
update-and-refine: {
|
|
19
|
+
label: "Update and Refine"
|
|
22
20
|
shape: rectangle
|
|
23
|
-
description: "Localize content into multiple languages for a global audience."
|
|
24
21
|
}
|
|
25
22
|
|
|
26
|
-
|
|
27
|
-
label: "
|
|
23
|
+
translate-documentation: {
|
|
24
|
+
label: "Translate Documentation"
|
|
28
25
|
shape: rectangle
|
|
29
|
-
description: "Deploy your documentation to public or private platforms."
|
|
30
26
|
}
|
|
31
27
|
|
|
32
|
-
|
|
28
|
+
publish-docs: {
|
|
29
|
+
label: "Publish Your Docs"
|
|
30
|
+
shape: rectangle
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
platform: {
|
|
34
|
+
label: "DocSmith Platform\n(or self-hosted)"
|
|
35
|
+
shape: cylinder
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
source-code -> generate-documentation
|
|
39
|
+
generate-documentation -> update-and-refine
|
|
40
|
+
update-and-refine -> translate-documentation
|
|
41
|
+
translate-documentation -> publish-docs
|
|
42
|
+
publish-docs -> platform
|
|
33
43
|
```
|
|
34
44
|
|
|
35
45
|
Explore the main capabilities of DocSmith in the following sections:
|
|
@@ -49,4 +59,4 @@ Explore the main capabilities of DocSmith in the following sections:
|
|
|
49
59
|
</x-card>
|
|
50
60
|
</x-cards>
|
|
51
61
|
|
|
52
|
-
These features provide a structured workflow for documentation. For a detailed list of all available commands and their options,
|
|
62
|
+
These features provide a structured workflow for creating and maintaining documentation. For a detailed list of all available commands and their options, refer to the [CLI Command Reference](./cli-reference.md).
|
package/docs/features.zh-TW.md
CHANGED
|
@@ -1,35 +1,45 @@
|
|
|
1
1
|
# 核心功能
|
|
2
2
|
|
|
3
|
-
AIGNE DocSmith
|
|
3
|
+
AIGNE DocSmith 提供了一組指令來管理文件的生命週期,從初始建立到全球分發。整個過程被組織成一個標準的工作流程:產生、優化、翻譯和發布您的文件。
|
|
4
4
|
|
|
5
5
|
```d2
|
|
6
6
|
direction: down
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
label: "
|
|
8
|
+
source-code: {
|
|
9
|
+
label: "原始碼"
|
|
10
10
|
shape: rectangle
|
|
11
|
-
description: "從您的原始碼建立一套完整的文件。"
|
|
12
11
|
}
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
label: "
|
|
13
|
+
generate-documentation: {
|
|
14
|
+
label: "產生文件"
|
|
16
15
|
shape: rectangle
|
|
17
|
-
description: "保持文件與程式碼同步,並應用針對性的回饋。"
|
|
18
16
|
}
|
|
19
17
|
|
|
20
|
-
|
|
21
|
-
label: "
|
|
18
|
+
update-and-refine: {
|
|
19
|
+
label: "更新與優化"
|
|
22
20
|
shape: rectangle
|
|
23
|
-
description: "將內容本地化為多種語言,以服務全球受眾。"
|
|
24
21
|
}
|
|
25
22
|
|
|
26
|
-
|
|
27
|
-
label: "
|
|
23
|
+
translate-documentation: {
|
|
24
|
+
label: "翻譯文件"
|
|
28
25
|
shape: rectangle
|
|
29
|
-
description: "將您的文件部署到公開或私有平台。"
|
|
30
26
|
}
|
|
31
27
|
|
|
32
|
-
|
|
28
|
+
publish-docs: {
|
|
29
|
+
label: "發布您的文件"
|
|
30
|
+
shape: rectangle
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
platform: {
|
|
34
|
+
label: "DocSmith 平台\n(或自行託管)"
|
|
35
|
+
shape: cylinder
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
source-code -> generate-documentation
|
|
39
|
+
generate-documentation -> update-and-refine
|
|
40
|
+
update-and-refine -> translate-documentation
|
|
41
|
+
translate-documentation -> publish-docs
|
|
42
|
+
publish-docs -> platform
|
|
33
43
|
```
|
|
34
44
|
|
|
35
45
|
在以下章節中探索 DocSmith 的主要功能:
|
|
@@ -39,14 +49,14 @@ Generate -> Refine -> Translate -> Publish
|
|
|
39
49
|
使用單一指令從您的原始碼建立一套完整的文件。
|
|
40
50
|
</x-card>
|
|
41
51
|
<x-card data-title="更新與優化" data-icon="lucide:edit" data-href="/features/update-and-refine">
|
|
42
|
-
|
|
52
|
+
讓您的文件與程式碼變更保持同步,或根據具體回饋重新產生特定文件。
|
|
43
53
|
</x-card>
|
|
44
54
|
<x-card data-title="翻譯文件" data-icon="lucide:languages" data-href="/features/translate-documentation">
|
|
45
|
-
|
|
55
|
+
將您的內容翻譯成多種支援的語言,讓您的專案能夠觸及全球使用者。
|
|
46
56
|
</x-card>
|
|
47
57
|
<x-card data-title="發布您的文件" data-icon="lucide:send" data-href="/features/publish-your-docs">
|
|
48
|
-
將您產生的文件發布到官方 DocSmith
|
|
58
|
+
將您產生的文件發布到官方 DocSmith 平台或您自行託管的實例。
|
|
49
59
|
</x-card>
|
|
50
60
|
</x-cards>
|
|
51
61
|
|
|
52
|
-
|
|
62
|
+
這些功能提供了一個結構化的工作流程,用於建立和維護文件。有關所有可用指令及其選項的詳細列表,請參閱 [CLI 指令參考](./cli-reference.md)。
|
package/docs/features.zh.md
CHANGED
|
@@ -1,52 +1,62 @@
|
|
|
1
1
|
# 核心功能
|
|
2
2
|
|
|
3
|
-
AIGNE DocSmith
|
|
3
|
+
AIGNE DocSmith 提供了一套命令来管理文档的整个生命周期,从初始创建到全球分发。该过程被组织成一个标准工作流程:生成、优化、翻译和发布您的文档。
|
|
4
4
|
|
|
5
5
|
```d2
|
|
6
6
|
direction: down
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
label: "
|
|
8
|
+
source-code: {
|
|
9
|
+
label: "源代码"
|
|
10
10
|
shape: rectangle
|
|
11
|
-
description: "从您的源代码创建一套完整的文档。"
|
|
12
11
|
}
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
label: "
|
|
13
|
+
generate-documentation: {
|
|
14
|
+
label: "生成文档"
|
|
16
15
|
shape: rectangle
|
|
17
|
-
description: "保持文档与代码同步,并应用有针对性的反馈。"
|
|
18
16
|
}
|
|
19
17
|
|
|
20
|
-
|
|
21
|
-
label: "
|
|
18
|
+
update-and-refine: {
|
|
19
|
+
label: "更新与优化"
|
|
22
20
|
shape: rectangle
|
|
23
|
-
description: "将内容本地化为多种语言,以面向全球受众。"
|
|
24
21
|
}
|
|
25
22
|
|
|
26
|
-
|
|
27
|
-
label: "
|
|
23
|
+
translate-documentation: {
|
|
24
|
+
label: "翻译文档"
|
|
28
25
|
shape: rectangle
|
|
29
|
-
description: "将您的文档部署到公共或私有平台。"
|
|
30
26
|
}
|
|
31
27
|
|
|
32
|
-
|
|
28
|
+
publish-docs: {
|
|
29
|
+
label: "发布文档"
|
|
30
|
+
shape: rectangle
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
platform: {
|
|
34
|
+
label: "DocSmith 平台\n(或自托管)"
|
|
35
|
+
shape: cylinder
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
source-code -> generate-documentation
|
|
39
|
+
generate-documentation -> update-and-refine
|
|
40
|
+
update-and-refine -> translate-documentation
|
|
41
|
+
translate-documentation -> publish-docs
|
|
42
|
+
publish-docs -> platform
|
|
33
43
|
```
|
|
34
44
|
|
|
35
|
-
|
|
45
|
+
在以下部分中,探索 DocSmith 的主要功能:
|
|
36
46
|
|
|
37
47
|
<x-cards data-columns="2">
|
|
38
48
|
<x-card data-title="生成文档" data-icon="lucide:file-plus-2" data-href="/features/generate-documentation">
|
|
39
|
-
|
|
49
|
+
使用单个命令从您的源代码创建一整套文档。
|
|
40
50
|
</x-card>
|
|
41
51
|
<x-card data-title="更新与优化" data-icon="lucide:edit" data-href="/features/update-and-refine">
|
|
42
|
-
|
|
52
|
+
让您的文档与代码更改保持同步,或根据特定反馈重新生成特定文档。
|
|
43
53
|
</x-card>
|
|
44
54
|
<x-card data-title="翻译文档" data-icon="lucide:languages" data-href="/features/translate-documentation">
|
|
45
|
-
|
|
55
|
+
将您的内容翻译成多种支持的语言,使您的项目能够面向全球受众。
|
|
46
56
|
</x-card>
|
|
47
|
-
<x-card data-title="
|
|
48
|
-
将您生成的文档发布到官方 DocSmith
|
|
57
|
+
<x-card data-title="发布文档" data-icon="lucide:send" data-href="/features/publish-your-docs">
|
|
58
|
+
将您生成的文档发布到官方 DocSmith 平台或您自己的自托管实例。
|
|
49
59
|
</x-card>
|
|
50
60
|
</x-cards>
|
|
51
61
|
|
|
52
|
-
|
|
62
|
+
这些功能为创建和维护文档提供了一个结构化的工作流程。有关所有可用命令及其选项的详细列表,请参阅 [CLI 命令参考](./cli-reference.md)。
|