@aigne/doc-smith 0.8.10 → 0.8.11-beta.1
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 +3 -3
- package/.aigne/doc-smith/upload-cache.yaml +252 -0
- package/.github/workflows/create-release-pr.yaml +21 -0
- package/.github/workflows/publish-docs.yml +67 -0
- package/.github/workflows/release.yml +3 -7
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +22 -0
- package/README.md +48 -115
- package/RELEASE.md +1 -2
- package/agents/clear/choose-contents.mjs +170 -0
- package/agents/clear/clear-auth-tokens.mjs +111 -0
- package/agents/clear/clear-document-config.mjs +39 -0
- package/agents/clear/clear-document-structure.mjs +106 -0
- package/agents/clear/clear-generated-docs.mjs +51 -0
- package/agents/clear/index.yaml +23 -0
- package/agents/evaluate/code-snippet.mjs +93 -0
- package/agents/evaluate/document-structure.yaml +70 -0
- package/agents/evaluate/document.yaml +79 -0
- package/agents/evaluate/generate-report.mjs +78 -0
- package/agents/evaluate/index.yaml +39 -0
- package/agents/generate/document-structure-tools/add-document.mjs +56 -0
- package/agents/generate/document-structure-tools/delete-document.mjs +49 -0
- package/agents/generate/document-structure-tools/move-document.mjs +82 -0
- package/agents/generate/document-structure-tools/update-document.mjs +50 -0
- package/agents/generate/generate-structure.yaml +1 -1
- package/agents/generate/update-document-structure.yaml +42 -0
- package/agents/generate/user-review-document-structure.mjs +6 -4
- package/agents/init/index.mjs +1 -1
- package/agents/publish/publish-docs.mjs +12 -3
- package/agents/translate/choose-language.mjs +1 -1
- package/agents/update/batch-update-document.yaml +7 -0
- package/agents/update/check-update-is-single.mjs +38 -0
- package/agents/update/document-tools/update-document-content.mjs +293 -0
- package/agents/update/index.yaml +4 -10
- package/agents/update/update-document-detail.yaml +52 -0
- package/agents/update/update-single-document.yaml +15 -0
- package/agents/update/user-review-document.mjs +248 -0
- package/agents/utils/choose-docs.mjs +4 -2
- package/agents/utils/format-document-structure.mjs +12 -2
- package/agents/utils/load-document-all-content.mjs +84 -0
- package/agents/utils/load-sources.mjs +4 -1
- package/aigne.yaml +59 -20
- package/assets/report-template/report.html +198 -0
- package/biome.json +14 -2
- package/docs/advanced-how-it-works.ja.md +101 -0
- package/docs/advanced-how-it-works.zh-TW.md +101 -0
- package/docs/advanced-how-it-works.zh.md +20 -20
- package/docs/advanced-quality-assurance.ja.md +96 -0
- package/docs/advanced-quality-assurance.zh-TW.md +96 -0
- package/docs/advanced-quality-assurance.zh.md +18 -18
- package/docs/advanced.ja.md +16 -0
- package/docs/advanced.zh-TW.md +16 -0
- package/docs/advanced.zh.md +4 -4
- package/docs/changelog.ja.md +309 -0
- package/docs/changelog.zh-TW.md +309 -0
- package/docs/changelog.zh.md +23 -23
- package/docs/cli-reference.ja.md +210 -0
- package/docs/cli-reference.zh-TW.md +210 -0
- package/docs/cli-reference.zh.md +21 -21
- package/docs/configuration-interactive-setup.ja.md +135 -0
- package/docs/configuration-interactive-setup.zh-TW.md +135 -0
- package/docs/configuration-interactive-setup.zh.md +29 -29
- package/docs/configuration-language-support.ja.md +94 -0
- package/docs/configuration-language-support.zh-TW.md +94 -0
- package/docs/configuration-language-support.zh.md +13 -13
- package/docs/configuration-llm-setup.ja.md +54 -0
- package/docs/configuration-llm-setup.zh-TW.md +54 -0
- package/docs/configuration-llm-setup.zh.md +12 -12
- package/docs/configuration-preferences.ja.md +129 -0
- package/docs/configuration-preferences.zh-TW.md +129 -0
- package/docs/configuration-preferences.zh.md +36 -36
- package/docs/configuration.ja.md +172 -0
- package/docs/configuration.zh-TW.md +172 -0
- package/docs/configuration.zh.md +49 -49
- package/docs/features-generate-documentation.ja.md +101 -0
- package/docs/features-generate-documentation.zh-TW.md +101 -0
- package/docs/features-generate-documentation.zh.md +17 -17
- package/docs/features-publish-your-docs.ja.md +107 -0
- package/docs/features-publish-your-docs.zh-TW.md +107 -0
- package/docs/features-publish-your-docs.zh.md +22 -22
- package/docs/features-translate-documentation.ja.md +79 -0
- package/docs/features-translate-documentation.zh-TW.md +79 -0
- package/docs/features-translate-documentation.zh.md +12 -12
- package/docs/features-update-and-refine.ja.md +138 -0
- package/docs/features-update-and-refine.zh-TW.md +138 -0
- package/docs/features-update-and-refine.zh.md +21 -21
- package/docs/features.ja.md +52 -0
- package/docs/features.zh-TW.md +52 -0
- package/docs/features.zh.md +8 -8
- package/docs/getting-started.ja.md +123 -0
- package/docs/getting-started.zh-TW.md +123 -0
- package/docs/getting-started.zh.md +24 -24
- package/docs/overview.ja.md +30 -0
- package/docs/overview.zh-TW.md +30 -0
- package/docs/overview.zh.md +8 -8
- package/package.json +19 -11
- package/prompts/common/document/content-rules-core.md +19 -0
- package/prompts/common/document/media-handling-rules.md +9 -0
- package/prompts/common/document/role-and-personality.md +15 -0
- package/prompts/common/document/user-preferences.md +9 -0
- package/prompts/common/document-structure/conflict-resolution-guidance.md +16 -0
- package/prompts/common/document-structure/document-structure-rules.md +45 -0
- package/prompts/common/document-structure/glossary.md +7 -0
- package/prompts/common/document-structure/intj-traits.md +5 -0
- package/prompts/common/document-structure/output-constraints.md +9 -0
- package/prompts/common/document-structure/user-locale-rules.md +10 -0
- package/prompts/common/document-structure/user-preferences.md +9 -0
- package/prompts/detail/custom/custom-components.md +9 -1
- package/prompts/detail/document-rules.md +6 -6
- package/prompts/detail/generate-document.md +5 -45
- package/prompts/detail/update-document.md +145 -0
- package/prompts/evaluate/document-structure.md +94 -0
- package/prompts/evaluate/document.md +149 -0
- package/prompts/structure/document-rules.md +1 -1
- package/prompts/structure/generate-structure-system.md +74 -0
- package/prompts/structure/generate-structure-user.md +41 -0
- package/prompts/structure/update-document-structure.md +118 -0
- package/prompts/translate/translate-document.md +1 -1
- package/prompts/utils/feedback-refiner.md +3 -3
- package/release-please-config.json +4 -3
- package/tests/agents/clear/choose-contents.test.mjs +280 -0
- package/tests/agents/clear/clear-auth-tokens.test.mjs +268 -0
- package/tests/agents/clear/clear-document-config.test.mjs +167 -0
- package/tests/agents/clear/clear-document-structure.test.mjs +374 -0
- package/tests/agents/clear/clear-generated-docs.test.mjs +222 -0
- package/tests/agents/evaluate/code-snippet.test.mjs +163 -0
- package/tests/agents/evaluate/fixtures/api-services.md +87 -0
- package/tests/agents/evaluate/fixtures/js-sdk.md +94 -0
- package/tests/agents/evaluate/generate-report.test.mjs +312 -0
- package/tests/agents/generate/check-document-structure.test.mjs +0 -6
- package/tests/agents/generate/document-structure-tools/add-document.test.mjs +449 -0
- package/tests/agents/generate/document-structure-tools/delete-document.test.mjs +410 -0
- package/tests/agents/generate/document-structure-tools/move-document.test.mjs +476 -0
- package/tests/agents/generate/document-structure-tools/update-document.test.mjs +548 -0
- package/tests/agents/generate/generate-structure.test.mjs +0 -6
- package/tests/agents/generate/user-review-document-structure.test.mjs +9 -9
- package/tests/agents/publish/publish-docs.test.mjs +2 -2
- package/tests/agents/update/check-update-is-single.test.mjs +300 -0
- package/tests/agents/update/document-tools/update-document-content.test.mjs +326 -0
- package/tests/agents/update/user-review-document.test.mjs +561 -0
- package/tests/agents/utils/format-document-structure.test.mjs +100 -0
- package/tests/utils/auth-utils.test.mjs +239 -1
- package/tests/utils/blocklet.test.mjs +9 -7
- package/tests/utils/constants.test.mjs +1 -1
- package/tests/utils/d2-utils.test.mjs +1 -1
- package/tests/utils/deploy.test.mjs +310 -366
- package/tests/utils/kroki-utils.test.mjs +2 -15
- package/tests/utils/linter/fixtures/css/keyword-error.css +1 -0
- package/tests/utils/linter/fixtures/css/missing-semicolon.css +1 -0
- package/tests/utils/linter/fixtures/css/syntax-error.css +1 -0
- package/tests/utils/linter/fixtures/css/undeclare-variable.css +1 -0
- package/tests/utils/linter/fixtures/css/unused-variable.css +2 -0
- package/tests/utils/linter/fixtures/css/valid-code.css +1 -0
- package/tests/utils/linter/fixtures/dockerfile/keyword-error.dockerfile +1 -0
- package/tests/utils/linter/fixtures/dockerfile/missing-semicolon.dockerfile +2 -0
- package/tests/utils/linter/fixtures/dockerfile/syntax-error.dockerfile +2 -0
- package/tests/utils/linter/fixtures/dockerfile/undeclare-variable.dockerfile +1 -0
- package/tests/utils/linter/fixtures/dockerfile/unused-variable.dockerfile +1 -0
- package/tests/utils/linter/fixtures/dockerfile/valid-code.dockerfile +2 -0
- package/tests/utils/linter/fixtures/go/keyword-error.go +5 -0
- package/tests/utils/linter/fixtures/go/missing-semicolon.go +5 -0
- package/tests/utils/linter/fixtures/go/syntax-error.go +6 -0
- package/tests/utils/linter/fixtures/go/undeclare-variable.go +5 -0
- package/tests/utils/linter/fixtures/go/unused-variable.go +5 -0
- package/tests/utils/linter/fixtures/go/valid-code.go +7 -0
- package/tests/utils/linter/fixtures/js/keyword-error.js +3 -0
- package/tests/utils/linter/fixtures/js/missing-semicolon.js +6 -0
- package/tests/utils/linter/fixtures/js/syntax-error.js +4 -0
- package/tests/utils/linter/fixtures/js/undeclare-variable.js +3 -0
- package/tests/utils/linter/fixtures/js/unused-variable.js +7 -0
- package/tests/utils/linter/fixtures/js/valid-code.js +15 -0
- package/tests/utils/linter/fixtures/json/keyword-error.json +1 -0
- package/tests/utils/linter/fixtures/json/missing-semicolon.json +1 -0
- package/tests/utils/linter/fixtures/json/syntax-error.json +1 -0
- package/tests/utils/linter/fixtures/json/undeclare-variable.json +1 -0
- package/tests/utils/linter/fixtures/json/unused-variable.json +1 -0
- package/tests/utils/linter/fixtures/json/valid-code.json +1 -0
- package/tests/utils/linter/fixtures/jsx/keyword-error.jsx +5 -0
- package/tests/utils/linter/fixtures/jsx/missing-semicolon.jsx +5 -0
- package/tests/utils/linter/fixtures/jsx/syntax-error.jsx +5 -0
- package/tests/utils/linter/fixtures/jsx/undeclare-variable.jsx +5 -0
- package/tests/utils/linter/fixtures/jsx/unused-variable.jsx +4 -0
- package/tests/utils/linter/fixtures/jsx/valid-code.jsx +5 -0
- package/tests/utils/linter/fixtures/python/keyword-error.py +3 -0
- package/tests/utils/linter/fixtures/python/missing-semicolon.py +2 -0
- package/tests/utils/linter/fixtures/python/syntax-error.py +3 -0
- package/tests/utils/linter/fixtures/python/undeclare-variable.py +3 -0
- package/tests/utils/linter/fixtures/python/unused-variable.py +6 -0
- package/tests/utils/linter/fixtures/python/valid-code.py +12 -0
- package/tests/utils/linter/fixtures/ruby/keyword-error.rb +2 -0
- package/tests/utils/linter/fixtures/ruby/missing-semicolon.rb +1 -0
- package/tests/utils/linter/fixtures/ruby/syntax-error.rb +2 -0
- package/tests/utils/linter/fixtures/ruby/undeclare-variable.rb +1 -0
- package/tests/utils/linter/fixtures/ruby/unused-variable.rb +2 -0
- package/tests/utils/linter/fixtures/ruby/valid-code.rb +1 -0
- package/tests/utils/linter/fixtures/sass/keyword-error.sass +2 -0
- package/tests/utils/linter/fixtures/sass/missing-semicolon.sass +3 -0
- package/tests/utils/linter/fixtures/sass/syntax-error.sass +3 -0
- package/tests/utils/linter/fixtures/sass/undeclare-variable.sass +2 -0
- package/tests/utils/linter/fixtures/sass/unused-variable.sass +4 -0
- package/tests/utils/linter/fixtures/sass/valid-code.sass +2 -0
- package/tests/utils/linter/fixtures/scss/keyword-error.scss +1 -0
- package/tests/utils/linter/fixtures/scss/missing-semicolon.scss +1 -0
- package/tests/utils/linter/fixtures/scss/syntax-error.scss +1 -0
- package/tests/utils/linter/fixtures/scss/undeclare-variable.scss +1 -0
- package/tests/utils/linter/fixtures/scss/unused-variable.scss +2 -0
- package/tests/utils/linter/fixtures/scss/valid-code.scss +1 -0
- package/tests/utils/linter/fixtures/shell/keyword-error.sh +5 -0
- package/tests/utils/linter/fixtures/shell/missing-semicolon.sh +3 -0
- package/tests/utils/linter/fixtures/shell/syntax-error.sh +4 -0
- package/tests/utils/linter/fixtures/shell/undeclare-variable.sh +3 -0
- package/tests/utils/linter/fixtures/shell/unused-variable.sh +4 -0
- package/tests/utils/linter/fixtures/shell/valid-code.sh +3 -0
- package/tests/utils/linter/fixtures/ts/keyword-error.ts +1 -0
- package/tests/utils/linter/fixtures/ts/missing-semicolon.ts +1 -0
- package/tests/utils/linter/fixtures/ts/syntax-error.ts +1 -0
- package/tests/utils/linter/fixtures/ts/undeclare-variable.ts +1 -0
- package/tests/utils/linter/fixtures/ts/unused-variable.ts +3 -0
- package/tests/utils/linter/fixtures/ts/valid-code.ts +3 -0
- package/tests/utils/linter/fixtures/tsx/keyword-error.tsx +5 -0
- package/tests/utils/linter/fixtures/tsx/missing-semicolon.tsx +5 -0
- package/tests/utils/linter/fixtures/tsx/syntax-error.tsx +5 -0
- package/tests/utils/linter/fixtures/tsx/undeclare-variable.tsx +6 -0
- package/tests/utils/linter/fixtures/tsx/unused-variable.tsx +6 -0
- package/tests/utils/linter/fixtures/tsx/valid-code.tsx +5 -0
- package/tests/utils/linter/fixtures/vue/keyword-error.vue +6 -0
- package/tests/utils/linter/fixtures/vue/missing-semicolon.vue +6 -0
- package/tests/utils/linter/fixtures/vue/syntax-error.vue +6 -0
- package/tests/utils/linter/fixtures/vue/undeclare-variable.vue +6 -0
- package/tests/utils/linter/fixtures/vue/unused-variable.vue +7 -0
- package/tests/utils/linter/fixtures/vue/valid-code.vue +6 -0
- package/tests/utils/linter/fixtures/yaml/keyword-error.yml +1 -0
- package/tests/utils/linter/fixtures/yaml/missing-semicolon.yml +2 -0
- package/tests/utils/linter/fixtures/yaml/syntax-error.yml +1 -0
- package/tests/utils/linter/fixtures/yaml/undeclare-variable.yml +1 -0
- package/tests/utils/linter/fixtures/yaml/unused-variable.yml +2 -0
- package/tests/utils/linter/fixtures/yaml/valid-code.yml +3 -0
- package/tests/utils/linter/index.test.mjs +440 -0
- package/tests/utils/linter/scan-results.mjs +42 -0
- package/tests/utils/markdown/index.test.mjs +478 -0
- package/tests/utils/mermaid-validator.test.mjs +2 -2
- package/tests/utils/utils.test.mjs +3 -1
- package/types/document-schema.mjs +54 -0
- package/types/document-structure-schema.mjs +244 -0
- package/utils/auth-utils.mjs +131 -6
- package/utils/conflict-detector.mjs +5 -1
- package/utils/{constants.mjs → constants/index.mjs} +109 -0
- package/utils/constants/linter.mjs +102 -0
- package/utils/d2-utils.mjs +2 -4
- package/utils/debug.mjs +3 -0
- package/utils/deploy.mjs +81 -385
- package/utils/evaluate/report-utils.mjs +131 -0
- package/utils/file-utils.mjs +36 -1
- package/utils/kroki-utils.mjs +1 -1
- package/utils/linter/index.mjs +50 -0
- package/utils/markdown/index.mjs +26 -0
- package/utils/markdown-checker.mjs +1 -1
- package/utils/utils.mjs +19 -7
- package/prompts/structure/generate-structure.md +0 -161
package/docs/changelog.zh.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# 更新日志
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
项目每个版本的所有显著变更、功能和错误修复的详细日志。
|
|
4
4
|
|
|
5
5
|
## [0.8.2](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.8.1...v0.8.2) (2025-09-04)
|
|
6
6
|
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
### 功能
|
|
28
28
|
|
|
29
|
-
*
|
|
29
|
+
* **测试:** 添加全面的工作流测试覆盖 ([#76](https://github.com/AIGNE-io/aigne-doc-smith/issues/76)) ([d5f6062](https://github.com/AIGNE-io/aigne-doc-smith/commit/d5f6062311f36dc5b6394ae0768583fb8f3853a4))
|
|
30
30
|
* 更新自定义组件指南,增加格式限制 ([#79](https://github.com/AIGNE-io/aigne-doc-smith/issues/79)) ([76158de](https://github.com/AIGNE-io/aigne-doc-smith/commit/76158de236696e68c63c057f5ea4b8458a15e787))
|
|
31
31
|
|
|
32
32
|
## [0.7.2](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.7.1...v0.7.2) (2025-09-01)
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
|
|
42
42
|
### 错误修复
|
|
43
43
|
|
|
44
|
-
* 修复
|
|
44
|
+
* 修复 tab 键路径选择错误 ([#72](https://github.com/AIGNE-io/aigne-doc-smith/issues/72)) ([369b342](https://github.com/AIGNE-io/aigne-doc-smith/commit/369b342d8ab8ce95b61a3b72e367157d2f71cce4))
|
|
45
45
|
|
|
46
46
|
## [0.7.0](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.6.0...v0.7.0) (2025-08-30)
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
### 功能
|
|
50
50
|
|
|
51
|
-
*
|
|
51
|
+
* 添加聊天模式支持 ([#60](https://github.com/AIGNE-io/aigne-doc-smith/issues/60)) ([9b2ce50](https://github.com/AIGNE-io/aigne-doc-smith/commit/9b2ce50014d1894a4e41bf043e699fdc4f1d74b7))
|
|
52
52
|
* 支持自定义组件和更强大的配置处理 ([#70](https://github.com/AIGNE-io/aigne-doc-smith/issues/70)) ([727ab42](https://github.com/AIGNE-io/aigne-doc-smith/commit/727ab429b00f924ef605530b35d2a12b4be77e3a))
|
|
53
53
|
* 在文档生成和发布工作流中支持 d2 图表 ([#69](https://github.com/AIGNE-io/aigne-doc-smith/issues/69)) ([bf95889](https://github.com/AIGNE-io/aigne-doc-smith/commit/bf958891516973636c4847b084c6fe75d1ea124b))
|
|
54
54
|
* 支持多用途文档规划和生成 ([#68](https://github.com/AIGNE-io/aigne-doc-smith/issues/68)) ([44152c5](https://github.com/AIGNE-io/aigne-doc-smith/commit/44152c53b7e8f82e3af1245a1affd77b9817486d))
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
|
|
59
59
|
### 功能
|
|
60
60
|
|
|
61
|
-
*
|
|
61
|
+
* 完成发布前媒体处理的支持 ([#63](https://github.com/AIGNE-io/aigne-doc-smith/issues/63)) ([5257ca1](https://github.com/AIGNE-io/aigne-doc-smith/commit/5257ca1756f47487b65a1813949e547b6fc51aca))
|
|
62
62
|
|
|
63
63
|
## [0.5.1](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.5.0...v0.5.1) (2025-08-26)
|
|
64
64
|
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
|
|
134
134
|
### 功能
|
|
135
135
|
|
|
136
|
-
*
|
|
136
|
+
* **核心:** 优化生成上下文收集工作流 ([#46](https://github.com/AIGNE-io/aigne-doc-smith/issues/46)) ([687d06a](https://github.com/AIGNE-io/aigne-doc-smith/commit/687d06afd648e0e697d25e85dcc841b17c3c311c))
|
|
137
137
|
|
|
138
138
|
|
|
139
139
|
### 错误修复
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
|
|
153
153
|
### 错误修复
|
|
154
154
|
|
|
155
|
-
*
|
|
155
|
+
* 修复缺陷反馈 ([#41](https://github.com/AIGNE-io/aigne-doc-smith/issues/41)) ([2740d1a](https://github.com/AIGNE-io/aigne-doc-smith/commit/2740d1abef70ea36780b030917a6d54f74df4327))
|
|
156
156
|
|
|
157
157
|
## [0.2.9](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.2.8...v0.2.9) (2025-08-13)
|
|
158
158
|
|
|
@@ -192,14 +192,14 @@
|
|
|
192
192
|
|
|
193
193
|
### 错误修复
|
|
194
194
|
|
|
195
|
-
* 优化
|
|
195
|
+
* 优化 cli 流程 ([#17](https://github.com/AIGNE-io/aigne-doc-smith/issues/17)) ([4c94263](https://github.com/AIGNE-io/aigne-doc-smith/commit/4c9426378dff9ca3270bd0e455aa6fb1045f6abb))
|
|
196
196
|
|
|
197
197
|
## [0.2.4](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.2.3...v0.2.4) (2025-08-07)
|
|
198
198
|
|
|
199
199
|
|
|
200
200
|
### 错误修复
|
|
201
201
|
|
|
202
|
-
* 优化
|
|
202
|
+
* 优化 agent 输出日志 ([40a2451](https://github.com/AIGNE-io/aigne-doc-smith/commit/40a245122ce4d8747e5b5dbe88be6986047c38ae))
|
|
203
203
|
|
|
204
204
|
## [0.2.3](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.2.2...v0.2.3) (2025-08-07)
|
|
205
205
|
|
|
@@ -227,7 +227,7 @@
|
|
|
227
227
|
|
|
228
228
|
### 功能
|
|
229
229
|
|
|
230
|
-
* 支持调用
|
|
230
|
+
* 支持调用 agents 时自动初始化配置 ([24d29db](https://github.com/AIGNE-io/aigne-doc-smith/commit/24d29db4dd86709750aa22ff649e7dacc4124126))
|
|
231
231
|
* 源文件变更时更新文档 ([#9](https://github.com/AIGNE-io/aigne-doc-smith/issues/9)) ([4adcecf](https://github.com/AIGNE-io/aigne-doc-smith/commit/4adcecfb32e72c9e88d0b0bd8ce0a91022847ca7))
|
|
232
232
|
|
|
233
233
|
## [0.1.4](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.1.3...v0.1.4) (2025-08-04)
|
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
|
|
243
243
|
### 错误修复
|
|
244
244
|
|
|
245
|
-
* 从 options.context 访问
|
|
245
|
+
* 从 options.context 访问 agents,而不是加载新的 aigne 实例 ([#6](https://github.com/AIGNE-io/aigne-doc-smith/issues/6)) ([0e7ce1d](https://github.com/AIGNE-io/aigne-doc-smith/commit/0e7ce1d3889aab435b029a511cb7ebdbb213ab8a))
|
|
246
246
|
|
|
247
247
|
## [0.1.2](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.1.1...v0.1.2) (2025-08-01)
|
|
248
248
|
|
|
@@ -256,7 +256,7 @@
|
|
|
256
256
|
|
|
257
257
|
### 错误修复
|
|
258
258
|
|
|
259
|
-
*
|
|
259
|
+
* agent 添加别名 ([7e25014](https://github.com/AIGNE-io/aigne-doc-smith/commit/7e250147309849fe0f4cc554077134d2e443d344))
|
|
260
260
|
* docs mcp 添加文档搜索 ([de96e0e](https://github.com/AIGNE-io/aigne-doc-smith/commit/de96e0e08455831dc6918d5fbc59d38b6a921373))
|
|
261
261
|
* 优化代码 ([8cb0a5c](https://github.com/AIGNE-io/aigne-doc-smith/commit/8cb0a5ce67cf009c672b2fb1aa9b89ef6d965a86))
|
|
262
262
|
|
|
@@ -265,33 +265,33 @@
|
|
|
265
265
|
|
|
266
266
|
### 功能
|
|
267
267
|
|
|
268
|
-
* 为 mcp 服务器和
|
|
268
|
+
* 为 mcp 服务器和 cli 添加入口 agents ([fa85d65](https://github.com/AIGNE-io/aigne-doc-smith/commit/fa85d651e8dc723e2b97150fc2258b115c6c5bb0))
|
|
269
269
|
|
|
270
270
|
|
|
271
271
|
### 错误修复
|
|
272
272
|
|
|
273
273
|
* 优化命令参数 ([#3](https://github.com/AIGNE-io/aigne-doc-smith/issues/3)) ([003f6b8](https://github.com/AIGNE-io/aigne-doc-smith/commit/003f6b8ae2c9e1af55ba1841458fa8567a0eb2f0))
|
|
274
|
-
* 优化 docs mcp
|
|
274
|
+
* 优化 docs mcp agent ([8654cd4](https://github.com/AIGNE-io/aigne-doc-smith/commit/8654cd4ea38034f3af0244f56b27acf66ba704e1))
|
|
275
275
|
|
|
276
276
|
## 0.0.2 (2025-07-30)
|
|
277
277
|
|
|
278
278
|
|
|
279
279
|
### 功能
|
|
280
280
|
|
|
281
|
-
*
|
|
281
|
+
* 添加自动创建看板功能 ([3ff06ad](https://github.com/AIGNE-io/aigne-doc-smith/commit/3ff06ad0241e208b09bcf828c52c2c5051c67ef8))
|
|
282
282
|
* 添加 docs-mcp ([a7508a1](https://github.com/AIGNE-io/aigne-doc-smith/commit/a7508a13abb2222968b1bc9c14948427af509f97))
|
|
283
|
-
* 添加输入生成器
|
|
283
|
+
* 添加输入生成器 agent ([20c01bb](https://github.com/AIGNE-io/aigne-doc-smith/commit/20c01bbca6d6f9414695071fc907bd7cf43d7f62))
|
|
284
284
|
* 添加发布文档功能 ([41bb126](https://github.com/AIGNE-io/aigne-doc-smith/commit/41bb126caeb1c3c242c7a2be27abb114aeab9953))
|
|
285
285
|
* 添加对文档标签的支持 ([4522c07](https://github.com/AIGNE-io/aigne-doc-smith/commit/4522c07b1ceb05664a1f5b5fb4df06feee536eba))
|
|
286
|
-
*
|
|
286
|
+
* 详情添加审查功能 ([8f1aa4f](https://github.com/AIGNE-io/aigne-doc-smith/commit/8f1aa4f22e2d2e590d7aa37288c2e1ee7ea48f07))
|
|
287
287
|
* 初始提交 ([dafc40e](https://github.com/AIGNE-io/aigne-doc-smith/commit/dafc40e94f3c407e50b2c46ecb46237f23a15cf7))
|
|
288
|
-
*
|
|
288
|
+
* 结构计划添加审查功能 ([b56e83e](https://github.com/AIGNE-io/aigne-doc-smith/commit/b56e83e558f509302b422205f30e9b2adb42d452))
|
|
289
289
|
|
|
290
290
|
|
|
291
291
|
### 错误修复
|
|
292
292
|
|
|
293
|
-
* 优化
|
|
294
|
-
* 优化
|
|
293
|
+
* 优化 agent 名称 ([25875a0](https://github.com/AIGNE-io/aigne-doc-smith/commit/25875a0688ebbca71f6c25bf4bd5246361f3dd2d))
|
|
294
|
+
* 优化 agent 参数和描述 ([290eb24](https://github.com/AIGNE-io/aigne-doc-smith/commit/290eb240ce986b0f1f406bf42824ce1235df11e5))
|
|
295
295
|
* 优化代码 ([34f9a24](https://github.com/AIGNE-io/aigne-doc-smith/commit/34f9a24fc3748b4177cad2b5330fe6b3ccd99175))
|
|
296
296
|
* 优化代码 ([0343486](https://github.com/AIGNE-io/aigne-doc-smith/commit/0343486aa086bbe2ced8de849de6a4a42567719c))
|
|
297
297
|
* 优化代码 ([7b7dfb9](https://github.com/AIGNE-io/aigne-doc-smith/commit/7b7dfb925b3aa55956ef7a99ededc749fb6a42d7))
|
|
@@ -299,11 +299,11 @@
|
|
|
299
299
|
* 优化代码 ([74fee51](https://github.com/AIGNE-io/aigne-doc-smith/commit/74fee51ad6337af8811a35f2a4334b67ec109439))
|
|
300
300
|
* 优化代码 ([7fa1675](https://github.com/AIGNE-io/aigne-doc-smith/commit/7fa1675b2cab6144d1fb9d4388130209c6cfa0bc))
|
|
301
301
|
* 优化文档审查 ([70374ab](https://github.com/AIGNE-io/aigne-doc-smith/commit/70374abed74946eafa7b0f87331c2e496fa61592))
|
|
302
|
-
* 优化输入生成器
|
|
303
|
-
*
|
|
302
|
+
* 优化输入生成器 agent ([ae908bb](https://github.com/AIGNE-io/aigne-doc-smith/commit/ae908bbc0cb98b9b196e8b08f23149e5693e0abe))
|
|
303
|
+
* 优化结构计划 ([3a0a196](https://github.com/AIGNE-io/aigne-doc-smith/commit/3a0a196a97196ba445c4709d3466ff355917ac53))
|
|
304
304
|
* 保存文档时移除无用文档 ([bec5ba3](https://github.com/AIGNE-io/aigne-doc-smith/commit/bec5ba3afd462c990a0aa813bbe38ce9a61363ee))
|
|
305
305
|
|
|
306
306
|
|
|
307
307
|
### 其他杂项
|
|
308
308
|
|
|
309
|
-
* 发布 0.0.2 ([73bf26a](https://github.com/AIGNE-io/aigne-doc-smith/commit/73bf26a5c55fa4726d866cff64bd48d1ca37a3b3))
|
|
309
|
+
* 发布 0.0.2 ([73bf26a](https://github.com/AIGNE-io/aigne-doc-smith/commit/73bf26a5c55fa4726d866cff64bd48d1ca37a3b3))
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
# CLIコマンドリファレンス
|
|
2
|
+
|
|
3
|
+
このガイドでは、利用可能なすべての `aigne doc` サブコマンド、その引数、およびオプションのリファレンスを提供します。コマンドラインインターフェースを最大限に活用したいユーザーを対象としています。
|
|
4
|
+
|
|
5
|
+
一般的な構文は次のとおりです。
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
aigne doc <command> [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
### コマンドのワークフロー
|
|
12
|
+
|
|
13
|
+
以下の図は、DocSmithのCLIコマンドを使用してドキュメントを作成および保守する典型的なライフサイクルを示しています。
|
|
14
|
+
|
|
15
|
+
```d2
|
|
16
|
+
direction: down
|
|
17
|
+
|
|
18
|
+
Start: {
|
|
19
|
+
label: "プロジェクトのセットアップ"
|
|
20
|
+
shape: circle
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
init: {
|
|
24
|
+
label: "aigne doc init\n(対話式セットアップ)"
|
|
25
|
+
shape: rectangle
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
generate: {
|
|
29
|
+
label: "aigne doc generate\n(全ドキュメントの作成/更新)"
|
|
30
|
+
shape: rectangle
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
refinement-cycle: {
|
|
34
|
+
label: "改良サイクル"
|
|
35
|
+
shape: rectangle
|
|
36
|
+
grid-columns: 2
|
|
37
|
+
|
|
38
|
+
update: {
|
|
39
|
+
label: "aigne doc update\n(単一ドキュメントの改良)"
|
|
40
|
+
}
|
|
41
|
+
translate: {
|
|
42
|
+
label: "aigne doc translate\n(コンテンツのローカライズ)"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
publish: {
|
|
47
|
+
label: "aigne doc publish\n(ドキュメントのデプロイ)"
|
|
48
|
+
shape: rectangle
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
End: {
|
|
52
|
+
label: "ドキュメント公開"
|
|
53
|
+
shape: circle
|
|
54
|
+
style.fill: "#a2eeaf"
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
Start -> init: "任意" {
|
|
58
|
+
style.stroke-dash: 4
|
|
59
|
+
}
|
|
60
|
+
init -> generate: "設定"
|
|
61
|
+
Start -> generate: "直接"
|
|
62
|
+
generate -> refinement-cycle: "改良"
|
|
63
|
+
refinement-cycle -> publish: "準備完了"
|
|
64
|
+
generate -> publish: "直接デプロイ"
|
|
65
|
+
publish -> End
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## `aigne doc generate`
|
|
71
|
+
|
|
72
|
+
ソースコードを分析し、設定に基づいてドキュメント一式を生成します。設定が見つからない場合は、対話式のセットアップウィザードが自動的に起動します。
|
|
73
|
+
|
|
74
|
+
### オプション
|
|
75
|
+
|
|
76
|
+
| オプション | タイプ | 説明 |
|
|
77
|
+
| ------------------- | ------- | --------------------------------------------------------------------------------------------- |
|
|
78
|
+
| `--feedback` | string | ドキュメント全体の構造を調整および改良するためのフィードバックを提供します。 |
|
|
79
|
+
| `--forceRegenerate` | boolean | 既存のコンテンツを破棄し、すべてのドキュメントを最初から再生成します。 |
|
|
80
|
+
| `--model` | string | 生成に使用する特定の言語モデルを指定します(例:`openai:gpt-4o`)。デフォルトを上書きします。 |
|
|
81
|
+
|
|
82
|
+
### 使用例
|
|
83
|
+
|
|
84
|
+
**ドキュメントを生成または更新する:**
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
aigne doc generate
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
**すべてのドキュメントを強制的に再生成する:**
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
aigne doc generate --forceRegenerate
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
**フィードバックをもとにドキュメント構造を改良する:**
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
aigne doc generate --feedback "APIの例のセクションを新しく追加し、「概要」ページを削除してください。"
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
**AIGNE Hubの特定のモデルを使用して生成する:**
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
aigne doc generate --model google:gemini-1.5-flash
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## `aigne doc update`
|
|
111
|
+
|
|
112
|
+
特定のドキュメントを最適化し、再生成します。対話形式で実行してドキュメントを選択するか、オプションで直接指定することができます。これは、プロジェクト全体を再生成することなく、フィードバックに基づいて対象を絞った改善を行うのに役立ちます。
|
|
113
|
+
|
|
114
|
+
### オプション
|
|
115
|
+
|
|
116
|
+
| オプション | タイプ | 説明 |
|
|
117
|
+
| ---------- | ----- | ----------------------------------------------------------------------------------- |
|
|
118
|
+
| `--docs` | array | 再生成するドキュメントのパスのリスト。複数回使用できます。 |
|
|
119
|
+
| `--feedback` | string | 選択したドキュメントのコンテンツを改善するための具体的なフィードバックを提供します。|
|
|
120
|
+
|
|
121
|
+
### 使用例
|
|
122
|
+
|
|
123
|
+
**更新するドキュメントを選択するための対話セッションを開始する:**
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
aigne doc update
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
**特定のドキュメントを対象を絞ったフィードバックで更新する:**
|
|
130
|
+
|
|
131
|
+
```bash
|
|
132
|
+
aigne doc update --docs overview.md --feedback "より詳細なFAQ項目を追加してください"
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## `aigne doc translate`
|
|
138
|
+
|
|
139
|
+
既存のドキュメントを1つ以上の言語に翻訳します。対話形式で実行してドキュメントと言語を選択するか、引数として指定して非対話形式で実行することができます。
|
|
140
|
+
|
|
141
|
+
### オプション
|
|
142
|
+
|
|
143
|
+
| オプション | タイプ | 説明 |
|
|
144
|
+
| ------------ | ----- | ------------------------------------------------------------------------------------------------ |
|
|
145
|
+
| `--docs` | array | 翻訳するドキュメントのパスのリスト。複数回使用できます。 |
|
|
146
|
+
| `--langs` | array | ターゲット言語コードのリスト(例:`zh`、`ja`)。複数回使用できます。 |
|
|
147
|
+
| `--feedback` | string | 翻訳の品質を向上させるためのフィードバックを提供します。 |
|
|
148
|
+
| `--glossary` | string | 言語間で一貫した用語を確保するための用語集ファイルへのパス。`@path/to/glossary.md` を使用します。 |
|
|
149
|
+
|
|
150
|
+
### 使用例
|
|
151
|
+
|
|
152
|
+
**対話型の翻訳セッションを開始する:**
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
aigne doc translate
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
**特定のドキュメントを中国語と日本語に翻訳する:**
|
|
159
|
+
|
|
160
|
+
```bash
|
|
161
|
+
aigne doc translate --langs zh --langs ja --docs examples.md --docs overview.md
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
**用語集とフィードバックを使用して、より高品質な翻訳を行う:**
|
|
165
|
+
|
|
166
|
+
```bash
|
|
167
|
+
aigne doc translate --glossary @glossary.md --feedback "専門用語を一貫して使用してください"
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
## `aigne doc publish`
|
|
173
|
+
|
|
174
|
+
生成されたドキュメントをDiscuss Kitプラットフォームに公開します。公式のAIGNE DocSmithプラットフォーム、または自己ホスト型のインスタンスに公開できます。
|
|
175
|
+
|
|
176
|
+
### オプション
|
|
177
|
+
|
|
178
|
+
| オプション | タイプ | 説明 |
|
|
179
|
+
| ---------- | ------ | -------------------------------------------------------------------------------------------- |
|
|
180
|
+
| `--appUrl` | string | 自己ホスト型のDiscuss KitインスタンスのURL。指定しない場合、コマンドは対話形式で実行されます。 |
|
|
181
|
+
|
|
182
|
+
### 使用例
|
|
183
|
+
|
|
184
|
+
**対話型の公開セッションを開始する:**
|
|
185
|
+
|
|
186
|
+
```bash
|
|
187
|
+
aigne doc publish
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
**自己ホスト型のインスタンスに直接公開する:**
|
|
191
|
+
|
|
192
|
+
```bash
|
|
193
|
+
aigne doc publish --appUrl https://your-discuss-kit-instance.com
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
## `aigne doc init`
|
|
199
|
+
|
|
200
|
+
対話式の構成ウィザードを手動で開始します。これは、新しいプロジェクトを設定したり、既存のプロジェクトの構成を変更したりするのに役立ちます。ウィザードは、ソースコードのパスの定義、出力ディレクトリの設定、言語の選択、ドキュメントのスタイルと対象読者の定義を案内します。
|
|
201
|
+
|
|
202
|
+
### 使用例
|
|
203
|
+
|
|
204
|
+
**セットアップウィザードを起動する:**
|
|
205
|
+
|
|
206
|
+
```bash
|
|
207
|
+
aigne doc init
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
DocSmithをニーズに合わせて調整する方法の詳細については、[設定ガイド](./configuration.md)を参照してください。
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
# CLI 命令參考
|
|
2
|
+
|
|
3
|
+
本指南為所有可用的 `aigne doc` 子命令、其參數和選項提供參考。它旨在幫助使用者充分利用命令列介面。
|
|
4
|
+
|
|
5
|
+
一般語法為:
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
aigne doc <command> [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
### 命令工作流程
|
|
12
|
+
|
|
13
|
+
下圖說明了使用 DocSmith 的 CLI 命令建立和維護文件的典型生命週期:
|
|
14
|
+
|
|
15
|
+
```d2
|
|
16
|
+
direction: down
|
|
17
|
+
|
|
18
|
+
Start: {
|
|
19
|
+
label: "專案設定"
|
|
20
|
+
shape: circle
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
init: {
|
|
24
|
+
label: "aigne doc init\n(互動式設定)"
|
|
25
|
+
shape: rectangle
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
generate: {
|
|
29
|
+
label: "aigne doc generate\n(建立/更新所有文件)"
|
|
30
|
+
shape: rectangle
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
refinement-cycle: {
|
|
34
|
+
label: "優化週期"
|
|
35
|
+
shape: rectangle
|
|
36
|
+
grid-columns: 2
|
|
37
|
+
|
|
38
|
+
update: {
|
|
39
|
+
label: "aigne doc update\n(優化單一文件)"
|
|
40
|
+
}
|
|
41
|
+
translate: {
|
|
42
|
+
label: "aigne doc translate\n(內容本地化)"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
publish: {
|
|
47
|
+
label: "aigne doc publish\n(部署文件)"
|
|
48
|
+
shape: rectangle
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
End: {
|
|
52
|
+
label: "文件上線"
|
|
53
|
+
shape: circle
|
|
54
|
+
style.fill: "#a2eeaf"
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
Start -> init: "可選" {
|
|
58
|
+
style.stroke-dash: 4
|
|
59
|
+
}
|
|
60
|
+
init -> generate: "配置"
|
|
61
|
+
Start -> generate: "直接"
|
|
62
|
+
generate -> refinement-cycle: "優化"
|
|
63
|
+
refinement-cycle -> publish: "就緒"
|
|
64
|
+
generate -> publish: "直接部署"
|
|
65
|
+
publish -> End
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## `aigne doc generate`
|
|
71
|
+
|
|
72
|
+
分析您的原始碼並根據您的設定產生一套完整的文件。如果找不到設定,它會自動啟動互動式設定精靈。
|
|
73
|
+
|
|
74
|
+
### 選項
|
|
75
|
+
|
|
76
|
+
| Option | Type | Description |
|
|
77
|
+
| ------------------- | ------- | ------------------------------------------------------------------------------------------------------------- |
|
|
78
|
+
| `--feedback` | string | 提供回饋以調整和優化整體文件結構。 |
|
|
79
|
+
| `--forceRegenerate` | boolean | 捨棄現有內容並從頭開始重新產生所有文件。 |
|
|
80
|
+
| `--model` | string | 指定用於產生的特定大型語言模型(例如 `openai:gpt-4o`)。此選項會覆蓋預設設定。 |
|
|
81
|
+
|
|
82
|
+
### 使用範例
|
|
83
|
+
|
|
84
|
+
**產生或更新文件:**
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
aigne doc generate
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
**強制完整重新產生所有文件:**
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
aigne doc generate --forceRegenerate
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
**透過回饋優化文件結構:**
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
aigne doc generate --feedback "Add a new section for API examples and remove the 'About' page."
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
**使用 AIGNE Hub 中的特定模型產生:**
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
aigne doc generate --model google:gemini-1.5-flash
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## `aigne doc update`
|
|
111
|
+
|
|
112
|
+
優化並重新產生特定文件。您可以以互動方式執行以選擇文件,或使用選項直接指定。這對於根據回饋進行有針對性的改進,而無需重新產生整個專案非常有用。
|
|
113
|
+
|
|
114
|
+
### 選項
|
|
115
|
+
|
|
116
|
+
| Option | Type | Description |
|
|
117
|
+
| ---------- | ----- | ------------------------------------------------------------------------------------------- |
|
|
118
|
+
| `--docs` | array | 要重新產生的文件路徑列表。可多次使用。 |
|
|
119
|
+
| `--feedback` | string | 提供具體回饋以改善所選文件的內容。 |
|
|
120
|
+
|
|
121
|
+
### 使用範例
|
|
122
|
+
|
|
123
|
+
**啟動互動式會話以選擇要更新的文件:**
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
aigne doc update
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
**使用針對性回饋更新特定文件:**
|
|
130
|
+
|
|
131
|
+
```bash
|
|
132
|
+
aigne doc update --docs overview.md --feedback "Add more detailed FAQ entries"
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## `aigne doc translate`
|
|
138
|
+
|
|
139
|
+
將現有文件翻譯成一種或多種語言。可以互動方式執行以選擇文件和語言,或透過將它們指定為參數以非互動方式執行。
|
|
140
|
+
|
|
141
|
+
### 選項
|
|
142
|
+
|
|
143
|
+
| Option | Type | Description |
|
|
144
|
+
| ------------ | ----- | ---------------------------------------------------------------------------------------------------------- |
|
|
145
|
+
| `--docs` | array | 要翻譯的文件路徑列表。可多次使用。 |
|
|
146
|
+
| `--langs` | array | 目標語言代碼列表(例如 `zh`、`ja`)。可多次使用。 |
|
|
147
|
+
| `--feedback` | string | 提供回饋以改善翻譯品質。 |
|
|
148
|
+
| `--glossary` | string | 詞彙表檔案的路徑,以確保跨語言的術語一致性。使用 `@path/to/glossary.md`。 |
|
|
149
|
+
|
|
150
|
+
### 使用範例
|
|
151
|
+
|
|
152
|
+
**啟動互動式翻譯會話:**
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
aigne doc translate
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
**將特定文件翻譯成中文和日文:**
|
|
159
|
+
|
|
160
|
+
```bash
|
|
161
|
+
aigne doc translate --langs zh --langs ja --docs examples.md --docs overview.md
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
**使用詞彙表和回饋進行翻譯以獲得更高品質:**
|
|
165
|
+
|
|
166
|
+
```bash
|
|
167
|
+
aigne doc translate --glossary @glossary.md --feedback "Use technical terminology consistently"
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
## `aigne doc publish`
|
|
173
|
+
|
|
174
|
+
將您產生的文件發佈到 Discuss Kit 平台。您可以發佈到官方的 AIGNE DocSmith 平台或您自己託管的實例。
|
|
175
|
+
|
|
176
|
+
### 選項
|
|
177
|
+
|
|
178
|
+
| Option | Type | Description |
|
|
179
|
+
| ---------- | ------ | ---------------------------------------------------------------------------------------------------- |
|
|
180
|
+
| `--appUrl` | string | 您自行託管的 Discuss Kit 實例的 URL。如果未提供,此命令將以互動方式執行。 |
|
|
181
|
+
|
|
182
|
+
### 使用範例
|
|
183
|
+
|
|
184
|
+
**啟動互動式發佈會話:**
|
|
185
|
+
|
|
186
|
+
```bash
|
|
187
|
+
aigne doc publish
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
**直接發佈到自行託管的實例:**
|
|
191
|
+
|
|
192
|
+
```bash
|
|
193
|
+
aigne doc publish --appUrl https://your-discuss-kit-instance.com
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
## `aigne doc init`
|
|
199
|
+
|
|
200
|
+
手動啟動互動式設定精靈。這對於設定新專案或修改現有專案的設定很有用。此精靈會引導您定義原始碼路徑、設定輸出目錄、選擇語言以及定義文件的風格和目標受眾。
|
|
201
|
+
|
|
202
|
+
### 使用範例
|
|
203
|
+
|
|
204
|
+
**啟動設定精靈:**
|
|
205
|
+
|
|
206
|
+
```bash
|
|
207
|
+
aigne doc init
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
有關如何根據您的需求量身訂做 DocSmith 的更多詳細資訊,請參閱 [設定指南](./configuration.md)。
|