@aigne/doc-smith 0.8.12-beta.7 → 0.8.12-beta.9
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/CHANGELOG.md +25 -0
- package/agents/clear/choose-contents.mjs +14 -1
- package/agents/clear/clear-media-description.mjs +129 -0
- package/agents/clear/index.yaml +3 -1
- package/agents/evaluate/code-snippet.mjs +28 -24
- package/agents/evaluate/document-structure.yaml +0 -4
- package/agents/evaluate/document.yaml +1 -5
- package/agents/generate/index.yaml +1 -0
- package/agents/init/index.mjs +10 -0
- package/agents/media/batch-generate-media-description.yaml +44 -0
- package/agents/media/generate-media-description.yaml +47 -0
- package/agents/media/load-media-description.mjs +238 -0
- package/agents/publish/index.yaml +4 -0
- package/agents/publish/publish-docs.mjs +77 -5
- package/agents/publish/translate-meta.mjs +103 -0
- package/agents/update/generate-document.yaml +30 -28
- package/agents/update/index.yaml +1 -0
- package/agents/update/update-document-detail.yaml +3 -1
- package/agents/utils/load-sources.mjs +103 -53
- package/agents/utils/update-branding.mjs +69 -0
- package/aigne.yaml +6 -0
- package/assets/report-template/report.html +34 -34
- package/package.json +17 -2
- package/prompts/common/document/role-and-personality.md +3 -1
- package/prompts/detail/d2-diagram/guide.md +7 -1
- package/prompts/detail/d2-diagram/user-prompt.md +3 -0
- package/prompts/detail/generate/system-prompt.md +6 -7
- package/prompts/detail/generate/user-prompt.md +12 -3
- package/prompts/detail/update/user-prompt.md +0 -2
- package/prompts/evaluate/document-structure.md +6 -7
- package/prompts/evaluate/document.md +16 -25
- package/prompts/media/media-description/system-prompt.md +35 -0
- package/prompts/media/media-description/user-prompt.md +8 -0
- package/prompts/structure/update/user-prompt.md +0 -4
- package/utils/constants/index.mjs +0 -107
- package/utils/file-utils.mjs +86 -0
- package/utils/markdown-checker.mjs +0 -20
- package/utils/request.mjs +7 -0
- package/utils/upload-files.mjs +231 -0
- package/utils/utils.mjs +11 -1
- package/.aigne/doc-smith/config.yaml +0 -77
- package/.aigne/doc-smith/history.yaml +0 -37
- package/.aigne/doc-smith/output/structure-plan.json +0 -162
- package/.aigne/doc-smith/preferences.yml +0 -97
- package/.aigne/doc-smith/upload-cache.yaml +0 -1893
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -28
- package/.github/workflows/ci.yml +0 -54
- package/.github/workflows/create-release-pr.yaml +0 -21
- package/.github/workflows/publish-docs.yml +0 -65
- package/.github/workflows/release.yml +0 -49
- package/.github/workflows/reviewer.yml +0 -54
- package/.release-please-manifest.json +0 -3
- package/RELEASE.md +0 -9
- 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/biome.json +0 -73
- package/codecov.yml +0 -15
- package/docs/_sidebar.md +0 -15
- package/docs/configuration-initial-setup.ja.md +0 -179
- package/docs/configuration-initial-setup.md +0 -179
- package/docs/configuration-initial-setup.zh-TW.md +0 -179
- package/docs/configuration-initial-setup.zh.md +0 -179
- package/docs/configuration-managing-preferences.ja.md +0 -100
- package/docs/configuration-managing-preferences.md +0 -100
- package/docs/configuration-managing-preferences.zh-TW.md +0 -100
- package/docs/configuration-managing-preferences.zh.md +0 -100
- package/docs/configuration.ja.md +0 -96
- package/docs/configuration.md +0 -96
- package/docs/configuration.zh-TW.md +0 -96
- package/docs/configuration.zh.md +0 -96
- package/docs/getting-started.ja.md +0 -88
- package/docs/getting-started.md +0 -88
- package/docs/getting-started.zh-TW.md +0 -88
- package/docs/getting-started.zh.md +0 -88
- package/docs/guides-cleaning-up.ja.md +0 -51
- package/docs/guides-cleaning-up.md +0 -51
- package/docs/guides-cleaning-up.zh-TW.md +0 -51
- package/docs/guides-cleaning-up.zh.md +0 -51
- package/docs/guides-evaluating-documents.ja.md +0 -66
- package/docs/guides-evaluating-documents.md +0 -66
- package/docs/guides-evaluating-documents.zh-TW.md +0 -66
- package/docs/guides-evaluating-documents.zh.md +0 -66
- package/docs/guides-generating-documentation.ja.md +0 -151
- package/docs/guides-generating-documentation.md +0 -151
- package/docs/guides-generating-documentation.zh-TW.md +0 -151
- package/docs/guides-generating-documentation.zh.md +0 -151
- package/docs/guides-interactive-chat.ja.md +0 -85
- package/docs/guides-interactive-chat.md +0 -85
- package/docs/guides-interactive-chat.zh-TW.md +0 -85
- package/docs/guides-interactive-chat.zh.md +0 -85
- package/docs/guides-managing-history.ja.md +0 -48
- package/docs/guides-managing-history.md +0 -48
- package/docs/guides-managing-history.zh-TW.md +0 -48
- package/docs/guides-managing-history.zh.md +0 -48
- package/docs/guides-publishing-your-docs.ja.md +0 -78
- package/docs/guides-publishing-your-docs.md +0 -78
- package/docs/guides-publishing-your-docs.zh-TW.md +0 -78
- package/docs/guides-publishing-your-docs.zh.md +0 -78
- package/docs/guides-translating-documentation.ja.md +0 -95
- package/docs/guides-translating-documentation.md +0 -95
- package/docs/guides-translating-documentation.zh-TW.md +0 -95
- package/docs/guides-translating-documentation.zh.md +0 -95
- package/docs/guides-updating-documentation.ja.md +0 -77
- package/docs/guides-updating-documentation.md +0 -77
- package/docs/guides-updating-documentation.zh-TW.md +0 -77
- package/docs/guides-updating-documentation.zh.md +0 -77
- package/docs/guides.ja.md +0 -32
- package/docs/guides.md +0 -32
- package/docs/guides.zh-TW.md +0 -32
- package/docs/guides.zh.md +0 -32
- package/docs/overview.ja.md +0 -61
- package/docs/overview.md +0 -61
- package/docs/overview.zh-TW.md +0 -61
- package/docs/overview.zh.md +0 -61
- package/docs/release-notes.ja.md +0 -255
- package/docs/release-notes.md +0 -255
- package/docs/release-notes.zh-TW.md +0 -255
- package/docs/release-notes.zh.md +0 -255
- package/media.md +0 -19
- package/prompts/common/afs/afs-tools-usage.md +0 -5
- package/prompts/common/afs/use-afs-instruction.md +0 -1
- package/release-please-config.json +0 -14
- package/tests/agents/chat/chat.test.mjs +0 -46
- package/tests/agents/clear/choose-contents.test.mjs +0 -284
- package/tests/agents/clear/clear-auth-tokens.test.mjs +0 -268
- package/tests/agents/clear/clear-document-config.test.mjs +0 -167
- package/tests/agents/clear/clear-document-structure.test.mjs +0 -380
- package/tests/agents/clear/clear-generated-docs.test.mjs +0 -222
- package/tests/agents/evaluate/code-snippet.test.mjs +0 -163
- package/tests/agents/evaluate/fixtures/api-services.md +0 -87
- package/tests/agents/evaluate/fixtures/js-sdk.md +0 -94
- package/tests/agents/evaluate/generate-report.test.mjs +0 -312
- package/tests/agents/generate/check-document-structure.test.mjs +0 -45
- package/tests/agents/generate/check-need-generate-structure.test.mjs +0 -279
- package/tests/agents/generate/document-structure-tools/add-document.test.mjs +0 -449
- package/tests/agents/generate/document-structure-tools/delete-document.test.mjs +0 -410
- package/tests/agents/generate/document-structure-tools/generate-sub-structure.test.mjs +0 -277
- package/tests/agents/generate/document-structure-tools/move-document.test.mjs +0 -476
- package/tests/agents/generate/document-structure-tools/update-document.test.mjs +0 -548
- package/tests/agents/generate/generate-structure.test.mjs +0 -45
- package/tests/agents/generate/user-review-document-structure.test.mjs +0 -319
- package/tests/agents/history/view.test.mjs +0 -97
- package/tests/agents/init/init.test.mjs +0 -1657
- package/tests/agents/prefs/prefs.test.mjs +0 -431
- package/tests/agents/publish/publish-docs.test.mjs +0 -787
- package/tests/agents/translate/choose-language.test.mjs +0 -311
- package/tests/agents/translate/translate-document.test.mjs +0 -51
- package/tests/agents/update/check-document.test.mjs +0 -463
- package/tests/agents/update/check-update-is-single.test.mjs +0 -300
- package/tests/agents/update/document-tools/update-document-content.test.mjs +0 -329
- package/tests/agents/update/generate-document.test.mjs +0 -51
- package/tests/agents/update/save-and-translate-document.test.mjs +0 -369
- package/tests/agents/update/user-review-document.test.mjs +0 -582
- package/tests/agents/utils/action-success.test.mjs +0 -54
- package/tests/agents/utils/check-detail-result.test.mjs +0 -743
- package/tests/agents/utils/check-feedback-refiner.test.mjs +0 -478
- package/tests/agents/utils/choose-docs.test.mjs +0 -406
- package/tests/agents/utils/exit.test.mjs +0 -70
- package/tests/agents/utils/feedback-refiner.test.mjs +0 -51
- package/tests/agents/utils/find-item-by-path.test.mjs +0 -517
- package/tests/agents/utils/find-user-preferences-by-path.test.mjs +0 -382
- package/tests/agents/utils/format-document-structure.test.mjs +0 -364
- package/tests/agents/utils/fs.test.mjs +0 -267
- package/tests/agents/utils/load-sources.test.mjs +0 -1470
- package/tests/agents/utils/save-docs.test.mjs +0 -109
- package/tests/agents/utils/save-output.test.mjs +0 -315
- package/tests/agents/utils/save-single-doc.test.mjs +0 -364
- package/tests/agents/utils/transform-detail-datasources.test.mjs +0 -320
- package/tests/utils/auth-utils.test.mjs +0 -596
- package/tests/utils/blocklet.test.mjs +0 -336
- package/tests/utils/conflict-detector.test.mjs +0 -355
- package/tests/utils/constants.test.mjs +0 -295
- package/tests/utils/d2-utils.test.mjs +0 -437
- package/tests/utils/deploy.test.mjs +0 -399
- package/tests/utils/docs-finder-utils.test.mjs +0 -650
- package/tests/utils/file-utils.test.mjs +0 -521
- package/tests/utils/history-utils.test.mjs +0 -206
- package/tests/utils/kroki-utils.test.mjs +0 -646
- package/tests/utils/linter/fixtures/css/keyword-error.css +0 -1
- package/tests/utils/linter/fixtures/css/missing-semicolon.css +0 -1
- package/tests/utils/linter/fixtures/css/syntax-error.css +0 -1
- package/tests/utils/linter/fixtures/css/undeclare-variable.css +0 -1
- package/tests/utils/linter/fixtures/css/unused-variable.css +0 -2
- package/tests/utils/linter/fixtures/css/valid-code.css +0 -1
- package/tests/utils/linter/fixtures/dockerfile/keyword-error.dockerfile +0 -1
- package/tests/utils/linter/fixtures/dockerfile/missing-semicolon.dockerfile +0 -2
- package/tests/utils/linter/fixtures/dockerfile/syntax-error.dockerfile +0 -2
- package/tests/utils/linter/fixtures/dockerfile/undeclare-variable.dockerfile +0 -1
- package/tests/utils/linter/fixtures/dockerfile/unused-variable.dockerfile +0 -1
- package/tests/utils/linter/fixtures/dockerfile/valid-code.dockerfile +0 -2
- package/tests/utils/linter/fixtures/go/keyword-error.go +0 -5
- package/tests/utils/linter/fixtures/go/missing-semicolon.go +0 -5
- package/tests/utils/linter/fixtures/go/syntax-error.go +0 -6
- package/tests/utils/linter/fixtures/go/undeclare-variable.go +0 -5
- package/tests/utils/linter/fixtures/go/unused-variable.go +0 -5
- package/tests/utils/linter/fixtures/go/valid-code.go +0 -7
- package/tests/utils/linter/fixtures/js/keyword-error.js +0 -3
- package/tests/utils/linter/fixtures/js/missing-semicolon.js +0 -6
- package/tests/utils/linter/fixtures/js/syntax-error.js +0 -4
- package/tests/utils/linter/fixtures/js/undeclare-variable.js +0 -3
- package/tests/utils/linter/fixtures/js/unused-variable.js +0 -7
- package/tests/utils/linter/fixtures/js/valid-code.js +0 -15
- package/tests/utils/linter/fixtures/json/keyword-error.json +0 -1
- package/tests/utils/linter/fixtures/json/missing-semicolon.json +0 -1
- package/tests/utils/linter/fixtures/json/syntax-error.json +0 -1
- package/tests/utils/linter/fixtures/json/undeclare-variable.json +0 -1
- package/tests/utils/linter/fixtures/json/unused-variable.json +0 -1
- package/tests/utils/linter/fixtures/json/valid-code.json +0 -1
- package/tests/utils/linter/fixtures/jsx/keyword-error.jsx +0 -5
- package/tests/utils/linter/fixtures/jsx/missing-semicolon.jsx +0 -5
- package/tests/utils/linter/fixtures/jsx/syntax-error.jsx +0 -5
- package/tests/utils/linter/fixtures/jsx/undeclare-variable.jsx +0 -5
- package/tests/utils/linter/fixtures/jsx/unused-variable.jsx +0 -4
- package/tests/utils/linter/fixtures/jsx/valid-code.jsx +0 -5
- package/tests/utils/linter/fixtures/python/keyword-error.py +0 -3
- package/tests/utils/linter/fixtures/python/missing-semicolon.py +0 -2
- package/tests/utils/linter/fixtures/python/syntax-error.py +0 -3
- package/tests/utils/linter/fixtures/python/undeclare-variable.py +0 -3
- package/tests/utils/linter/fixtures/python/unused-variable.py +0 -6
- package/tests/utils/linter/fixtures/python/valid-code.py +0 -12
- package/tests/utils/linter/fixtures/ruby/keyword-error.rb +0 -2
- package/tests/utils/linter/fixtures/ruby/missing-semicolon.rb +0 -1
- package/tests/utils/linter/fixtures/ruby/syntax-error.rb +0 -2
- package/tests/utils/linter/fixtures/ruby/undeclare-variable.rb +0 -1
- package/tests/utils/linter/fixtures/ruby/unused-variable.rb +0 -2
- package/tests/utils/linter/fixtures/ruby/valid-code.rb +0 -1
- package/tests/utils/linter/fixtures/sass/keyword-error.sass +0 -2
- package/tests/utils/linter/fixtures/sass/missing-semicolon.sass +0 -3
- package/tests/utils/linter/fixtures/sass/syntax-error.sass +0 -3
- package/tests/utils/linter/fixtures/sass/undeclare-variable.sass +0 -2
- package/tests/utils/linter/fixtures/sass/unused-variable.sass +0 -4
- package/tests/utils/linter/fixtures/sass/valid-code.sass +0 -2
- package/tests/utils/linter/fixtures/scss/keyword-error.scss +0 -1
- package/tests/utils/linter/fixtures/scss/missing-semicolon.scss +0 -1
- package/tests/utils/linter/fixtures/scss/syntax-error.scss +0 -1
- package/tests/utils/linter/fixtures/scss/undeclare-variable.scss +0 -1
- package/tests/utils/linter/fixtures/scss/unused-variable.scss +0 -2
- package/tests/utils/linter/fixtures/scss/valid-code.scss +0 -1
- package/tests/utils/linter/fixtures/shell/keyword-error.sh +0 -5
- package/tests/utils/linter/fixtures/shell/missing-semicolon.sh +0 -3
- package/tests/utils/linter/fixtures/shell/syntax-error.sh +0 -4
- package/tests/utils/linter/fixtures/shell/undeclare-variable.sh +0 -3
- package/tests/utils/linter/fixtures/shell/unused-variable.sh +0 -4
- package/tests/utils/linter/fixtures/shell/valid-code.sh +0 -3
- package/tests/utils/linter/fixtures/ts/keyword-error.ts +0 -1
- package/tests/utils/linter/fixtures/ts/missing-semicolon.ts +0 -1
- package/tests/utils/linter/fixtures/ts/syntax-error.ts +0 -1
- package/tests/utils/linter/fixtures/ts/undeclare-variable.ts +0 -1
- package/tests/utils/linter/fixtures/ts/unused-variable.ts +0 -3
- package/tests/utils/linter/fixtures/ts/valid-code.ts +0 -3
- package/tests/utils/linter/fixtures/tsx/keyword-error.tsx +0 -5
- package/tests/utils/linter/fixtures/tsx/missing-semicolon.tsx +0 -5
- package/tests/utils/linter/fixtures/tsx/syntax-error.tsx +0 -5
- package/tests/utils/linter/fixtures/tsx/undeclare-variable.tsx +0 -6
- package/tests/utils/linter/fixtures/tsx/unused-variable.tsx +0 -6
- package/tests/utils/linter/fixtures/tsx/valid-code.tsx +0 -5
- package/tests/utils/linter/fixtures/vue/keyword-error.vue +0 -6
- package/tests/utils/linter/fixtures/vue/missing-semicolon.vue +0 -6
- package/tests/utils/linter/fixtures/vue/syntax-error.vue +0 -6
- package/tests/utils/linter/fixtures/vue/undeclare-variable.vue +0 -6
- package/tests/utils/linter/fixtures/vue/unused-variable.vue +0 -7
- package/tests/utils/linter/fixtures/vue/valid-code.vue +0 -6
- package/tests/utils/linter/fixtures/yaml/keyword-error.yml +0 -1
- package/tests/utils/linter/fixtures/yaml/missing-semicolon.yml +0 -2
- package/tests/utils/linter/fixtures/yaml/syntax-error.yml +0 -1
- package/tests/utils/linter/fixtures/yaml/undeclare-variable.yml +0 -1
- package/tests/utils/linter/fixtures/yaml/unused-variable.yml +0 -2
- package/tests/utils/linter/fixtures/yaml/valid-code.yml +0 -3
- package/tests/utils/linter/index.test.mjs +0 -440
- package/tests/utils/linter/scan-results.mjs +0 -42
- package/tests/utils/load-config.test.mjs +0 -141
- package/tests/utils/markdown/index.test.mjs +0 -478
- package/tests/utils/mermaid-validator.test.mjs +0 -541
- package/tests/utils/mock-chat-model.mjs +0 -12
- package/tests/utils/preferences-utils.test.mjs +0 -465
- package/tests/utils/save-value-to-config.test.mjs +0 -483
- package/tests/utils/utils.test.mjs +0 -941
package/docs/configuration.zh.md
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
# 配置
|
|
2
|
-
|
|
3
|
-
合理的配置对于根据项目的具体需求定制文档生成过程至关重要。AIGNE DocSmith 使用一个主配置文件和命令行界面来管理您的设置。这种设置确保了生成的文档能够准确反映您的项目目标、目标受众和结构要求。
|
|
4
|
-
|
|
5
|
-
本节概述了如何配置该工具。有关分步说明,请参阅以下详细指南:
|
|
6
|
-
|
|
7
|
-
<x-cards>
|
|
8
|
-
<x-card data-title="初始设置" data-icon="lucide:settings-2" data-href="/configuration/initial-setup">了解如何运行交互式设置来创建您的 config.yaml 文件。这是任何新项目的推荐第一步。</x-card>
|
|
9
|
-
<x-card data-title="管理偏好设置" data-icon="lucide:list-checks" data-href="/configuration/managing-preferences">了解如何查看、启用、禁用或删除已保存的偏好设置,以便随着时间的推移优化文档生成过程。</x-card>
|
|
10
|
-
</x-cards>
|
|
11
|
-
|
|
12
|
-
## `config.yaml` 文件
|
|
13
|
-
|
|
14
|
-
所有项目级别的设置都存储在名为 `config.yaml` 的文件中,该文件位于您项目中的 `.aigne/doc-smith/` 目录内。`aigne doc init` 命令通过一个交互式过程为您创建此文件。您也可以随时使用文本编辑器手动修改此文件以调整设置。
|
|
15
|
-
|
|
16
|
-
以下是一个 `config.yaml` 文件的示例,其中包含解释每个部分的注释。
|
|
17
|
-
|
|
18
|
-
```yaml Example config.yaml icon=logos:yaml
|
|
19
|
-
# 用于文档发布的项目信息
|
|
20
|
-
projectName: AIGNE DocSmith
|
|
21
|
-
projectDesc: AIGNE DocSmith 是一款功能强大、由 AI 驱动的文档生成工具,构建于 AIGNE 框架之上。它可以直接从您的源代码中自动创建详细、结构化和多语言的文档。
|
|
22
|
-
projectLogo: https://docsmith.aigne.io/image-bin/uploads/9645caf64b4232699982c4d940b03b90.svg
|
|
23
|
-
|
|
24
|
-
# =============================================================================
|
|
25
|
-
# 文档配置
|
|
26
|
-
# =============================================================================
|
|
27
|
-
|
|
28
|
-
# 目的:您希望读者实现的主要成果是什么?
|
|
29
|
-
# 可用选项(取消注释并根据需要修改):
|
|
30
|
-
# getStarted - 快速入门:帮助新用户在 30 分钟内从零开始上手
|
|
31
|
-
# completeTasks - 完成特定任务:引导用户了解常见工作流程和用例
|
|
32
|
-
# findAnswers - 快速查找答案:为所有功能和 API 提供可搜索的参考
|
|
33
|
-
# understandSystem - 理解系统:解释其工作原理以及做出设计决策的原因
|
|
34
|
-
# solveProblems - 解决问题:帮助用户排查和修复问题
|
|
35
|
-
# mixedPurpose - 多种目的混合:涵盖多种需求的综合文档
|
|
36
|
-
documentPurpose:
|
|
37
|
-
- getStarted
|
|
38
|
-
- completeTasks
|
|
39
|
-
|
|
40
|
-
# 目标受众:谁会最常阅读这些文档?
|
|
41
|
-
# 可用选项(取消注释并根据需要修改):
|
|
42
|
-
# endUsers - 最终用户(非技术人员):使用产品但不编码的人
|
|
43
|
-
# developers - 集成开发者:将此添加到其项目中的工程师
|
|
44
|
-
# devops - DevOps/基础设施:部署、监控、维护系统的团队
|
|
45
|
-
# decisionMakers - 技术决策者:评估或规划实施的架构师、负责人
|
|
46
|
-
# supportTeams - 支持团队:帮助他人使用产品的人
|
|
47
|
-
# mixedTechnical - 混合技术受众:开发者、DevOps 和技术用户
|
|
48
|
-
targetAudienceTypes:
|
|
49
|
-
- endUsers
|
|
50
|
-
|
|
51
|
-
# 读者知识水平:读者通常具备哪些知识?
|
|
52
|
-
# 可用选项(取消注释并根据需要修改):
|
|
53
|
-
# completeBeginners - 完全初学者:完全不熟悉该领域/技术
|
|
54
|
-
# domainFamiliar - 熟悉领域,但工具是新的:了解问题领域,但对这个特定解决方案不熟悉
|
|
55
|
-
# experiencedUsers - 经验丰富的用户:需要参考/高级主题的常规用户
|
|
56
|
-
# emergencyTroubleshooting - 紧急/故障排除:出现问题,需要快速修复
|
|
57
|
-
# exploringEvaluating - 探索/评估:试图了解这是否满足他们的需求
|
|
58
|
-
readerKnowledgeLevel: completeBeginners
|
|
59
|
-
|
|
60
|
-
# 文档深度:文档应有多全面?
|
|
61
|
-
# 可用选项(取消注释并根据需要修改):
|
|
62
|
-
# essentialOnly - 仅包含基本内容:覆盖 80% 的用例,保持简洁
|
|
63
|
-
# balancedCoverage - 平衡覆盖:具有适当深度和实际示例 [推荐]
|
|
64
|
-
# comprehensive - 全面:覆盖所有功能、边缘情况和高级场景
|
|
65
|
-
# aiDecide - 让 AI 决定:分析代码复杂性并建议适当的深度
|
|
66
|
-
documentationDepth: comprehensive
|
|
67
|
-
|
|
68
|
-
# 自定义规则:定义具体的文档生成规则和要求
|
|
69
|
-
rules: |
|
|
70
|
-
避免使用模糊或空洞的词语,这些词语无法提供可衡量或具体的细节,例如‘智能地’、‘无缝地’、‘全面地’或‘高质量地’。专注于具体、可验证的事实和信息。
|
|
71
|
-
专注于具体、可验证的事实和信息。
|
|
72
|
-
必须覆盖 DocSmith 的所有子命令
|
|
73
|
-
|
|
74
|
-
# 目标受众:描述您的具体目标受众及其特征
|
|
75
|
-
targetAudience: |
|
|
76
|
-
|
|
77
|
-
locale: en
|
|
78
|
-
translateLanguages:
|
|
79
|
-
- zh
|
|
80
|
-
- zh-TW
|
|
81
|
-
- ja
|
|
82
|
-
docsDir: ./docs # 保存生成文档的目录
|
|
83
|
-
sourcesPath: # 要分析的源代码路径
|
|
84
|
-
- ./README.md
|
|
85
|
-
- ./CHANGELOG.md
|
|
86
|
-
- ./aigne.yaml
|
|
87
|
-
- ./agents
|
|
88
|
-
- ./media.md
|
|
89
|
-
- ./.aigne/doc-smith/config.yaml
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
## 总结
|
|
93
|
-
|
|
94
|
-
完成配置后,该工具将清楚地了解您的项目、受众和文档目标,从而生成更准确、更相关的内容。
|
|
95
|
-
|
|
96
|
-
要开始设置您的项目,请继续阅读[初始设置](./configuration-initial-setup.md)指南。
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
# はじめに
|
|
2
|
-
|
|
3
|
-
このガイドでは、AIGNE DocSmithをインストールし、最初のドキュメントセットを生成するためのステップバイステップの手順を説明します。このプロセスは分かりやすく設計されており、短時間で完了できます。
|
|
4
|
-
|
|
5
|
-
## 前提条件
|
|
6
|
-
|
|
7
|
-
インストールを進める前に、お使いのシステムが以下の要件を満たしていることを確認してください。
|
|
8
|
-
|
|
9
|
-
* **Node.js**: バージョン20以降が必要です。DocSmithはNode.jsのインストールに含まれているNode Package Manager (npm) を使用してインストールされます。Node.jsをインストールするには、公式の[Node.jsウェブサイト](https://nodejs.org/)にアクセスし、お使いのオペレーティングシステムの手順に従ってください。ターミナルを開き、`node -v`と`npm -v`を実行することでインストールを確認できます。
|
|
10
|
-
|
|
11
|
-
* **APIキー**: 開始にあたりAPIキーは不要です。デフォルトでは、DocSmithはAIによる生成のためにAIGNE Hubサービスを使用します。これにより、直接的な設定なしで様々な大規模言語モデルを利用できます。
|
|
12
|
-
|
|
13
|
-
## インストール
|
|
14
|
-
|
|
15
|
-
このツールは、AIGNEコマンドラインインターフェース(CLI)の一部として配布されています。
|
|
16
|
-
|
|
17
|
-
### ステップ1:AIGNE CLIをインストールする
|
|
18
|
-
|
|
19
|
-
システムにAIGNE CLIをグローバルにインストールするには、ターミナルで以下のコマンドを実行します。
|
|
20
|
-
|
|
21
|
-
```bash title="AIGNE CLIのインストール" icon=logos:npm-icon
|
|
22
|
-
npm install -g @aigne/cli
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
このコマンドはパッケージをダウンロードしてインストールし、どのディレクトリからでも`aigne`コマンドを利用できるようにします。
|
|
26
|
-
|
|
27
|
-
### ステップ2:インストールを確認する
|
|
28
|
-
|
|
29
|
-
インストールが完了したら、ドキュメンテーションツールのヘルプコマンドを実行して確認します。
|
|
30
|
-
|
|
31
|
-
```bash title="インストールの確認"
|
|
32
|
-
aigne doc --help
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
このコマンドにより、利用可能なDocSmithのコマンドとオプションのリストが表示され、インストールが成功したことを確認できます。
|
|
36
|
-
|
|
37
|
-
## 最初のドキュメントを生成する
|
|
38
|
-
|
|
39
|
-
以下の手順に従って、プロジェクトを分析し、完全なドキュメントセットを生成します。
|
|
40
|
-
|
|
41
|
-
### ステップ1:プロジェクトディレクトリに移動する
|
|
42
|
-
|
|
43
|
-
ターミナルを開き、`cd`コマンドを使用して、ドキュメントを作成したいプロジェクトのルートにカレントディレクトリを変更します。
|
|
44
|
-
|
|
45
|
-
```bash title="ディレクトリの変更" icon=mdi:folder-open
|
|
46
|
-
cd /path/to/your/project
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
### ステップ2:生成コマンドを実行する
|
|
50
|
-
|
|
51
|
-
主要な`generate`コマンドを実行します。この単一のコマンドが、ドキュメント作成プロセス全体を処理します。
|
|
52
|
-
|
|
53
|
-
```bash title="生成コマンドの実行"
|
|
54
|
-
aigne doc generate
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
### ステップ3:対話式セットアップを完了する
|
|
58
|
-
|
|
59
|
-
プロジェクトで初めて`generate`コマンドを実行すると、DocSmithは1回限りの対話式セットアッププロセスを開始します。ドキュメントの主な目的、対象読者、言語など、ドキュメントの設定に関する一連の質問が表示されます。設定を保存するために、`.aigne/doc-smith`ディレクトリに`config.yaml`ファイルが作成されます。
|
|
60
|
-
|
|
61
|
-
### ステップ4:生成を待つ
|
|
62
|
-
|
|
63
|
-
セットアップが完了すると、DocSmithは自動的に以下のアクションを実行します。
|
|
64
|
-
|
|
65
|
-
1. **コードベースの分析**: ソースファイルをスキャンして、プロジェクトの構造とロジックを理解します。
|
|
66
|
-
2. **構造の計画**: セクションやトピックを含む、ドキュメントの論理的な計画を作成します。
|
|
67
|
-
3. **コンテンツの生成**: 分析と設定に基づいてドキュメントのコンテンツを記述します。
|
|
68
|
-
|
|
69
|
-
完了すると確認メッセージが表示され、生成されたファイルはセットアップ時に指定された出力ディレクトリ(例:`.aigne/doc-smith/docs`)に配置されます。
|
|
70
|
-
|
|
71
|
-
## 次のステップ
|
|
72
|
-
|
|
73
|
-
最初のドキュメントセットの生成が成功しました。ドキュメントを管理し、強化するための一般的な次のステップは以下の通りです。
|
|
74
|
-
|
|
75
|
-
<x-cards data-columns="2">
|
|
76
|
-
<x-card data-title="ドキュメントの更新" data-icon="lucide:refresh-cw" data-href="/guides/updating-documentation">
|
|
77
|
-
コードの変更や新しい要件に基づいて、ドキュメントの特定の部分を修正または再生成します。
|
|
78
|
-
</x-card>
|
|
79
|
-
<x-card data-title="ドキュメントの翻訳" data-icon="lucide:languages" data-href="/guides/translating-documentation">
|
|
80
|
-
ドキュメントを中国語、スペイン語、ドイツ語など、サポートされている12言語のいずれかに翻訳します。
|
|
81
|
-
</x-card>
|
|
82
|
-
<x-card data-title="ドキュメントの公開" data-icon="lucide:rocket" data-href="/guides/publishing-your-docs">
|
|
83
|
-
ドキュメントをオンラインで公開し、チームや一般の人が利用できるようにします。
|
|
84
|
-
</x-card>
|
|
85
|
-
<x-card data-title="設定の確認" data-icon="lucide:settings" data-href="/configuration/initial-setup">
|
|
86
|
-
初期セットアップ時に作成されたconfig.yamlファイルを確認・修正して、設定を調整します。
|
|
87
|
-
</x-card>
|
|
88
|
-
</x-cards>
|
package/docs/getting-started.md
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
# Getting Started
|
|
2
|
-
|
|
3
|
-
This guide provides a step-by-step procedure for installing AIGNE DocSmith and generating your first set of documentation. The process is designed to be straightforward and can be completed quickly.
|
|
4
|
-
|
|
5
|
-
## Prerequisites
|
|
6
|
-
|
|
7
|
-
Before proceeding with the installation, ensure your system meets the following requirements:
|
|
8
|
-
|
|
9
|
-
* **Node.js**: Version 20 or newer is required. DocSmith is installed using the Node Package Manager (npm), which is included with the Node.js installation. To install Node.js, visit the official [Node.js website](https://nodejs.org/) and follow the instructions for your operating system. You can verify the installation by opening your terminal and running `node -v` and `npm -v`.
|
|
10
|
-
|
|
11
|
-
* **API Keys**: No API keys are required to start. By default, DocSmith uses the AIGNE Hub service for AI-powered generation, which allows you to use various large language models without direct configuration.
|
|
12
|
-
|
|
13
|
-
## Installation
|
|
14
|
-
|
|
15
|
-
The tool is distributed as part of the AIGNE command-line interface (CLI).
|
|
16
|
-
|
|
17
|
-
### Step 1: Install the AIGNE CLI
|
|
18
|
-
|
|
19
|
-
To install the AIGNE CLI globally on your system, execute the following command in your terminal:
|
|
20
|
-
|
|
21
|
-
```bash title="Install AIGNE CLI" icon=logos:npm-icon
|
|
22
|
-
npm install -g @aigne/cli
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
This command downloads and installs the package, making the `aigne` command available from any directory.
|
|
26
|
-
|
|
27
|
-
### Step 2: Verify the Installation
|
|
28
|
-
|
|
29
|
-
After the installation is complete, verify it by running the help command for the documentation tool:
|
|
30
|
-
|
|
31
|
-
```bash title="Verify Installation"
|
|
32
|
-
aigne doc --help
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
This command should display a list of available DocSmith commands and options, confirming that the installation was successful.
|
|
36
|
-
|
|
37
|
-
## Generating Your First Documents
|
|
38
|
-
|
|
39
|
-
Follow these steps to analyze your project and generate a complete set of documentation.
|
|
40
|
-
|
|
41
|
-
### Step 1: Navigate to Your Project Directory
|
|
42
|
-
|
|
43
|
-
Open your terminal and use the `cd` command to change the current directory to the root of the project you wish to document.
|
|
44
|
-
|
|
45
|
-
```bash title="Change Directory" icon=mdi:folder-open
|
|
46
|
-
cd /path/to/your/project
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
### Step 2: Run the Generate Command
|
|
50
|
-
|
|
51
|
-
Execute the primary `generate` command. This single command handles the entire documentation creation process.
|
|
52
|
-
|
|
53
|
-
```bash title="Run Generate Command"
|
|
54
|
-
aigne doc generate
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
### Step 3: Complete the Interactive Setup
|
|
58
|
-
|
|
59
|
-
The first time you run the `generate` command in a project, DocSmith will initiate a one-time interactive setup process. You will be asked a series of questions to configure your documentation preferences, such as its primary purpose, target audience, and language. A `config.yaml` file will be created in the `.aigne/doc-smith` directory to store your settings.
|
|
60
|
-
|
|
61
|
-
### Step 4: Await Generation
|
|
62
|
-
|
|
63
|
-
Once the setup is complete, DocSmith will perform the following actions automatically:
|
|
64
|
-
|
|
65
|
-
1. **Analyze Codebase**: It scans your source files to understand the project's structure and logic.
|
|
66
|
-
2. **Plan Structure**: It creates a logical plan for the documentation, including sections and topics.
|
|
67
|
-
3. **Generate Content**: It writes the documentation content based on the analysis and your configuration.
|
|
68
|
-
|
|
69
|
-
Upon completion, a confirmation message will appear, and the generated files will be located in the output directory specified during setup (e.g., `.aigne/doc-smith/docs`).
|
|
70
|
-
|
|
71
|
-
## What's Next?
|
|
72
|
-
|
|
73
|
-
You have successfully generated your first set of documents. Here are the common next steps to manage and enhance your documentation:
|
|
74
|
-
|
|
75
|
-
<x-cards data-columns="2">
|
|
76
|
-
<x-card data-title="Update Documentation" data-icon="lucide:refresh-cw" data-href="/guides/updating-documentation">
|
|
77
|
-
Modify or regenerate specific sections of your documentation based on code changes or new requirements.
|
|
78
|
-
</x-card>
|
|
79
|
-
<x-card data-title="Translate Documentation" data-icon="lucide:languages" data-href="/guides/translating-documentation">
|
|
80
|
-
Translate your documents into any of the 12 supported languages, such as Chinese, Spanish, or German.
|
|
81
|
-
</x-card>
|
|
82
|
-
<x-card data-title="Publish Your Docs" data-icon="lucide:rocket" data-href="/guides/publishing-your-docs">
|
|
83
|
-
Make your documentation available online for your team or the public.
|
|
84
|
-
</x-card>
|
|
85
|
-
<x-card data-title="Review Configuration" data-icon="lucide:settings" data-href="/configuration/initial-setup">
|
|
86
|
-
Review and modify the config.yaml file that was created during the initial setup to adjust your preferences.
|
|
87
|
-
</x-card>
|
|
88
|
-
</x-cards>
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
# 開始使用
|
|
2
|
-
|
|
3
|
-
本指南提供安裝 AIGNE DocSmith 並產生第一份文件的逐步流程。整個過程設計得簡單明瞭,可以快速完成。
|
|
4
|
-
|
|
5
|
-
## 前提條件
|
|
6
|
-
|
|
7
|
-
在進行安裝之前,請確保您的系統符合以下要求:
|
|
8
|
-
|
|
9
|
-
* **Node.js**:需要 20 或更新版本。DocSmith 使用 Node Package Manager (npm) 安裝,npm 包含在 Node.js 的安裝中。若要安裝 Node.js,請造訪官方 [Node.js 網站](https://nodejs.org/) 並按照您作業系統的說明進行操作。您可以透過開啟終端機並執行 `node -v` 和 `npm -v` 來驗證安裝。
|
|
10
|
-
|
|
11
|
-
* **API 金鑰**:開始時不需要任何 API 金鑰。預設情況下,DocSmith 使用 AIGNE Hub 服務進行 AI 驅動的生成,讓您無需直接設定即可使用各種大型語言模型。
|
|
12
|
-
|
|
13
|
-
## 安裝
|
|
14
|
-
|
|
15
|
-
此工具作為 AIGNE 命令列介面 (CLI) 的一部分進行分發。
|
|
16
|
-
|
|
17
|
-
### 步驟 1:安裝 AIGNE CLI
|
|
18
|
-
|
|
19
|
-
若要在您的系統上全域安裝 AIGNE CLI,請在終端機中執行以下指令:
|
|
20
|
-
|
|
21
|
-
```bash title="安裝 AIGNE CLI" icon=logos:npm-icon
|
|
22
|
-
npm install -g @aigne/cli
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
此指令會下載並安裝套件,使 `aigne` 指令在任何目錄下都可用。
|
|
26
|
-
|
|
27
|
-
### 步驟 2:驗證安裝
|
|
28
|
-
|
|
29
|
-
安裝完成後,請執行文件工具的說明指令來進行驗證:
|
|
30
|
-
|
|
31
|
-
```bash title="驗證安裝"
|
|
32
|
-
aigne doc --help
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
此指令應會顯示可用的 DocSmith 指令與選項列表,確認安裝成功。
|
|
36
|
-
|
|
37
|
-
## 產生您的第一份文件
|
|
38
|
-
|
|
39
|
-
請依照以下步驟分析您的專案並產生一套完整的文件。
|
|
40
|
-
|
|
41
|
-
### 步驟 1:導覽至您的專案目錄
|
|
42
|
-
|
|
43
|
-
開啟您的終端機,並使用 `cd` 指令將目前目錄切換到您想要建立文件的專案根目錄。
|
|
44
|
-
|
|
45
|
-
```bash title="切換目錄" icon=mdi:folder-open
|
|
46
|
-
cd /path/to/your/project
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
### 步驟 2:執行產生指令
|
|
50
|
-
|
|
51
|
-
執行主要的 `generate` 指令。這個單一指令會處理整個文件建立過程。
|
|
52
|
-
|
|
53
|
-
```bash title="執行產生指令"
|
|
54
|
-
aigne doc generate
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
### 步驟 3:完成互動式設定
|
|
58
|
-
|
|
59
|
-
當您第一次在專案中執行 `generate` 指令時,DocSmith 將啟動一次性的互動式設定流程。系統會詢問您一系列問題來設定您的文件偏好,例如其主要目的、目標受眾和語言。設定完成後,將會在 `.aigne/doc-smith` 目錄中建立一個 `config.yaml` 檔案來儲存您的設定。
|
|
60
|
-
|
|
61
|
-
### 步驟 4:等待產生
|
|
62
|
-
|
|
63
|
-
設定完成後,DocSmith 將自動執行以下操作:
|
|
64
|
-
|
|
65
|
-
1. **分析程式碼庫**:掃描您的原始檔案以了解專案的結構和邏輯。
|
|
66
|
-
2. **規劃結構**:為文件建立一個邏輯計畫,包含章節和主題。
|
|
67
|
-
3. **產生內容**:根據分析和您的設定撰寫文件內容。
|
|
68
|
-
|
|
69
|
-
完成後,將會出現一則確認訊息,且產生的檔案將位於設定時指定的輸出目錄中(例如 `.aigne/doc-smith/docs`)。
|
|
70
|
-
|
|
71
|
-
## 接下來呢?
|
|
72
|
-
|
|
73
|
-
您已成功產生第一份文件。以下是管理和強化文件的常見後續步驟:
|
|
74
|
-
|
|
75
|
-
<x-cards data-columns="2">
|
|
76
|
-
<x-card data-title="更新文件" data-icon="lucide:refresh-cw" data-href="/guides/updating-documentation">
|
|
77
|
-
根據程式碼變更或新需求,修改或重新產生文件的特定部分。
|
|
78
|
-
</x-card>
|
|
79
|
-
<x-card data-title="翻譯文件" data-icon="lucide:languages" data-href="/guides/translating-documentation">
|
|
80
|
-
將您的文件翻譯成 12 種支援的語言之一,例如中文、西班牙文或德文。
|
|
81
|
-
</x-card>
|
|
82
|
-
<x-card data-title="發布您的文件" data-icon="lucide:rocket" data-href="/guides/publishing-your-docs">
|
|
83
|
-
將您的文件發布到網路上,供您的團隊或大眾使用。
|
|
84
|
-
</x-card>
|
|
85
|
-
<x-card data-title="檢視設定" data-icon="lucide:settings" data-href="/configuration/initial-setup">
|
|
86
|
-
檢視並修改在初始設定期間建立的 config.yaml 檔案,以調整您的偏好設定。
|
|
87
|
-
</x-card>
|
|
88
|
-
</x-cards>
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
# 快速入门
|
|
2
|
-
|
|
3
|
-
本指南提供了安装 AIGNE DocSmith 并生成您的第一套文档的分步流程。该过程设计得非常简单,可以快速完成。
|
|
4
|
-
|
|
5
|
-
## 前置要求
|
|
6
|
-
|
|
7
|
-
在继续安装之前,请确保您的系统满足以下要求:
|
|
8
|
-
|
|
9
|
-
* **Node.js**:需要 20 或更高版本。DocSmith 使用 Node.js 包管理器(npm)进行安装,该管理器包含在 Node.js 的安装包中。要安装 Node.js,请访问 [Node.js 官方网站](https://nodejs.org/) 并按照适用于您操作系统的说明进行操作。您可以通过打开终端并运行 `node -v` 和 `npm -v` 来验证安装。
|
|
10
|
-
|
|
11
|
-
* **API 密钥**:开始时不需要任何 API 密钥。默认情况下,DocSmith 使用 AIGNE Hub 服务进行 AI 驱动的生成,这使您无需直接配置即可使用各种大型语言模型。
|
|
12
|
-
|
|
13
|
-
## 安装
|
|
14
|
-
|
|
15
|
-
该工具作为 AIGNE 命令行界面(CLI)的一部分进行分发。
|
|
16
|
-
|
|
17
|
-
### 第 1 步:安装 AIGNE CLI
|
|
18
|
-
|
|
19
|
-
要在您的系统上全局安装 AIGNE CLI,请在终端中执行以下命令:
|
|
20
|
-
|
|
21
|
-
```bash title="安装 AIGNE CLI" icon=logos:npm-icon
|
|
22
|
-
npm install -g @aigne/cli
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
该命令会下载并安装软件包,使 `aigne` 命令在任何目录下都可用。
|
|
26
|
-
|
|
27
|
-
### 第 2 步:验证安装
|
|
28
|
-
|
|
29
|
-
安装完成后,通过运行文档工具的帮助命令来验证安装:
|
|
30
|
-
|
|
31
|
-
```bash title="验证安装"
|
|
32
|
-
aigne doc --help
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
该命令应显示 DocSmith 的可用命令和选项列表,以确认安装成功。
|
|
36
|
-
|
|
37
|
-
## 生成您的第一份文档
|
|
38
|
-
|
|
39
|
-
请按照以下步骤分析您的项目并生成一套完整的文档。
|
|
40
|
-
|
|
41
|
-
### 第 1 步:导航到您的项目目录
|
|
42
|
-
|
|
43
|
-
打开您的终端,使用 `cd` 命令将当前目录更改为您希望记录的项目的根目录。
|
|
44
|
-
|
|
45
|
-
```bash title="更改目录" icon=mdi:folder-open
|
|
46
|
-
cd /path/to/your/project
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
### 第 2 步:运行生成命令
|
|
50
|
-
|
|
51
|
-
执行主要的 `generate` 命令。这个单一的命令会处理整个文档创建过程。
|
|
52
|
-
|
|
53
|
-
```bash title="运行生成命令"
|
|
54
|
-
aigne doc generate
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
### 第 3 步:完成交互式设置
|
|
58
|
-
|
|
59
|
-
当您首次在项目中运行 `generate` 命令时,DocSmith 将启动一次性的交互式设置过程。系统会询问您一系列问题,以配置您的文档偏好,例如其主要目的、目标受众和语言。系统将在 `.aigne/doc-smith` 目录中创建一个 `config.yaml` 文件来存储您的设置。
|
|
60
|
-
|
|
61
|
-
### 第 4 步:等待生成
|
|
62
|
-
|
|
63
|
-
设置完成后,DocSmith 将自动执行以下操作:
|
|
64
|
-
|
|
65
|
-
1. **分析代码库**:它会扫描您的源文件以理解项目的结构和逻辑。
|
|
66
|
-
2. **规划结构**:它会为文档创建一个逻辑计划,包括章节和主题。
|
|
67
|
-
3. **生成内容**:它会根据分析和您的配置来编写文档内容。
|
|
68
|
-
|
|
69
|
-
完成后,将显示一条确认消息,生成的文件将位于设置期间指定的输出目录中(例如 `.aigne/doc-smith/docs`)。
|
|
70
|
-
|
|
71
|
-
## 后续步骤
|
|
72
|
-
|
|
73
|
-
您已成功生成第一套文档。以下是管理和增强文档的常见后续步骤:
|
|
74
|
-
|
|
75
|
-
<x-cards data-columns="2">
|
|
76
|
-
<x-card data-title="更新文档" data-icon="lucide:refresh-cw" data-href="/guides/updating-documentation">
|
|
77
|
-
根据代码更改或新要求,修改或重新生成文档的特定部分。
|
|
78
|
-
</x-card>
|
|
79
|
-
<x-card data-title="翻译文档" data-icon="lucide:languages" data-href="/guides/translating-documentation">
|
|
80
|
-
将您的文档翻译成 12 种支持的语言中的任意一种,例如中文、西班牙语或德语。
|
|
81
|
-
</x-card>
|
|
82
|
-
<x-card data-title="发布您的文档" data-icon="lucide:rocket" data-href="/guides/publishing-your-docs">
|
|
83
|
-
将您的文档在线发布,供您的团队或公众使用。
|
|
84
|
-
</x-card>
|
|
85
|
-
<x-card data-title="审查配置" data-icon="lucide:settings" data-href="/configuration/initial-setup">
|
|
86
|
-
审查并修改在初始设置期间创建的 config.yaml 文件,以调整您的偏好。
|
|
87
|
-
</x-card>
|
|
88
|
-
</x-cards>
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# クリーンアップ
|
|
2
|
-
|
|
3
|
-
`aigne doc clear` コマンドは、生成されたファイル、キャッシュデータ、設定を削除するための簡単な方法を提供します。これは、ドキュメントプロジェクトをリセットしたり、クリーンな状態から開始したり、古くなったファイルや破損したファイルに関連する問題をトラブルシューティングしたりする場合に役立ちます。
|
|
4
|
-
|
|
5
|
-
## 対話的なクリーンアップ
|
|
6
|
-
|
|
7
|
-
このコマンドを使用する最も簡単な方法は、引数なしで実行することです:
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
aigne doc clear
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
このコマンドを実行すると対話型のプロンプトが起動し、削除したい項目を正確に選択できます。各オプションについて明確な説明が提供され、偶発的なデータ損失を防ぐことができるため、ほとんどのユースケースでこのアプローチが推奨されます。
|
|
14
|
-
|
|
15
|
-
## クリーンアップ対象
|
|
16
|
-
|
|
17
|
-
`clear` コマンドは、いくつかの異なる種類のデータを削除できます。次の表は、利用可能な各ターゲット、その機能、および影響を受ける特定のファイルやディレクトリについて詳しく説明しています。
|
|
18
|
-
|
|
19
|
-
| Target | 説明 | 影響を受けるファイルとディレクトリ |
|
|
20
|
-
| :--- | :--- | :--- |
|
|
21
|
-
| `generatedDocs` | 出力ディレクトリ内の生成されたすべてのドキュメントを削除しますが、ドキュメント構造計画は保持します。 | 設定で指定された `docsDir` ディレクトリ。 |
|
|
22
|
-
| `documentStructure` | 生成されたすべてのドキュメントとドキュメント構造計画を削除し、ドキュメントコンテンツを効果的にリセットします。 | `.aigne/doc-smith/output/structure-plan.json` ファイルと `docsDir` ディレクトリ。 |
|
|
23
|
-
| `documentConfig` | プロジェクトの設定ファイルを削除します。この操作の後、再度 `aigne doc init` を実行する必要があります。 | `.aigne/doc-smith/config.yaml` ファイル。 |
|
|
24
|
-
| `authTokens` | 公開サイト用に保存された認証トークンを削除します。どのサイトをクリアするか選択するよう求められます。 | ホームディレクトリにある `~/.aigne/doc-smith-connected.yaml` ファイル。 |
|
|
25
|
-
| `deploymentConfig` | 設定ファイルから `appUrl` を削除します。 | `.aigne/doc-smith/config.yaml` ファイル。 |
|
|
26
|
-
|
|
27
|
-
## 非対話的なクリーンアップ
|
|
28
|
-
|
|
29
|
-
自動化スクリプトやコマンドラインを好むユーザーのために、`--targets` フラグを使用してクリアする1つ以上のターゲットを直接指定できます。これにより、対話型のプロンプトがバイパスされます。
|
|
30
|
-
|
|
31
|
-
### 単一ターゲットのクリア
|
|
32
|
-
|
|
33
|
-
生成されたドキュメントのみをクリアするには、次のコマンドを使用します:
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
aigne doc clear --targets generatedDocs
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
### 複数ターゲットのクリア
|
|
40
|
-
|
|
41
|
-
複数のターゲット名を指定して、一度に複数の項目をクリアできます。例えば、ドキュメント設定とドキュメント構造の両方を削除するには、次のように実行します:
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
aigne doc clear --targets documentConfig documentStructure
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
設定をクリアした後、再度セットアッププロセスを実行して新たに開始できます。
|
|
48
|
-
|
|
49
|
-
---
|
|
50
|
-
|
|
51
|
-
初期設定に関する詳細については、[初期設定](./configuration-initial-setup.md) ガイドを参照してください。
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# Cleaning Up
|
|
2
|
-
|
|
3
|
-
The `aigne doc clear` command provides a straightforward method for removing generated files, cached data, and configuration settings. This is useful when you want to reset your documentation project, start from a clean state, or troubleshoot issues related to outdated or corrupted files.
|
|
4
|
-
|
|
5
|
-
## Interactive Cleaning
|
|
6
|
-
|
|
7
|
-
The simplest way to use the command is to run it without any arguments:
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
aigne doc clear
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
Executing this command will launch an interactive prompt, allowing you to select precisely which items you want to remove. This is the recommended approach for most use cases as it provides clear descriptions for each option and prevents accidental data loss.
|
|
14
|
-
|
|
15
|
-
## Cleanup Targets
|
|
16
|
-
|
|
17
|
-
The `clear` command can remove several distinct types of data. The following table details each available target, what it does, and the specific files or directories it affects.
|
|
18
|
-
|
|
19
|
-
| Target | Description | Files and Directories Affected |
|
|
20
|
-
| :--- | :--- | :--- |
|
|
21
|
-
| `generatedDocs` | Deletes all generated documents in your output directory, but keeps the documentation structure plan. | The directory specified by `docsDir` in your configuration. |
|
|
22
|
-
| `documentStructure` | Deletes all generated documents and the documentation structure plan, effectively resetting your documentation content. | The `.aigne/doc-smith/output/structure-plan.json` file and the `docsDir` directory. |
|
|
23
|
-
| `documentConfig` | Deletes the project's configuration file. You will need to run `aigne doc init` again after this. | The `.aigne/doc-smith/config.yaml` file. |
|
|
24
|
-
| `authTokens` | Removes saved authorization tokens for publishing sites. You will be prompted to select which sites to clear. | The `~/.aigne/doc-smith-connected.yaml` file in your home directory. |
|
|
25
|
-
| `deploymentConfig` | Deletes the `appUrl` from your configuration file. | The `.aigne/doc-smith/config.yaml` file. |
|
|
26
|
-
|
|
27
|
-
## Non-Interactive Cleaning
|
|
28
|
-
|
|
29
|
-
For automated scripts or users who prefer the command line, you can specify one or more targets to clear directly using the `--targets` flag. This will bypass the interactive prompt.
|
|
30
|
-
|
|
31
|
-
### Clear a Single Target
|
|
32
|
-
|
|
33
|
-
To clear only the generated documents, use the following command:
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
aigne doc clear --targets generatedDocs
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
### Clear Multiple Targets
|
|
40
|
-
|
|
41
|
-
You can provide multiple target names to clear several items at once. For example, to remove both the document configuration and the documentation structure, run:
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
aigne doc clear --targets documentConfig documentStructure
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
After clearing your configuration, you can start fresh by running the setup process again.
|
|
48
|
-
|
|
49
|
-
---
|
|
50
|
-
|
|
51
|
-
For more information on the initial setup, refer to the [Initial Setup](./configuration-initial-setup.md) guide.
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# 清理
|
|
2
|
-
|
|
3
|
-
`aigne doc clear` 指令提供了一個直接的方法來移除生成的檔案、快取資料和配置設定。當您想要重設您的文件專案、從乾淨的狀態開始,或解決與過時或損壞檔案相關的問題時,這個指令非常有用。
|
|
4
|
-
|
|
5
|
-
## 互動式清理
|
|
6
|
-
|
|
7
|
-
使用此指令最簡單的方法是不帶任何參數直接執行:
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
aigne doc clear
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
執行此指令將啟動一個互動式提示,讓您精確選擇要移除的項目。這是大多數使用情境下的建議方法,因為它為每個選項提供了清晰的說明,並能防止意外的資料遺失。
|
|
14
|
-
|
|
15
|
-
## 清理目標
|
|
16
|
-
|
|
17
|
-
`clear` 指令可以移除幾種不同類型的資料。下表詳細說明了每個可用的目標、其功能以及它所影響的特定檔案或目錄。
|
|
18
|
-
|
|
19
|
-
| Target | 說明 | 受影響的檔案與目錄 |
|
|
20
|
-
| :--- | :--- | :--- |
|
|
21
|
-
| `generatedDocs` | 刪除您輸出目錄中所有已生成的檔案,但保留文件結構計畫。 | 您設定中 `docsDir` 所指定的目錄。 |
|
|
22
|
-
| `documentStructure` | 刪除所有已生成的檔案和文件結構計畫,有效地重設您的文件內容。 | `.aigne/doc-smith/output/structure-plan.json` 檔案和 `docsDir` 目錄。 |
|
|
23
|
-
| `documentConfig` | 刪除專案的設定檔。此操作後,您將需要重新執行 `aigne doc init`。 | `.aigne/doc-smith/config.yaml` 檔案。 |
|
|
24
|
-
| `authTokens` | 移除已儲存的發布網站授權權杖。系統將提示您選擇要清除哪些網站。 | 您家目錄中的 `~/.aigne/doc-smith-connected.yaml` 檔案。 |
|
|
25
|
-
| `deploymentConfig` | 從您的設定檔中刪除 `appUrl`。 | `.aigne/doc-smith/config.yaml` 檔案。 |
|
|
26
|
-
|
|
27
|
-
## 非互動式清理
|
|
28
|
-
|
|
29
|
-
對於自動化腳本或偏好使用命令列的使用者,您可以使用 `--targets` 旗標直接指定一個或多個要清除的目標。這將繞過互動式提示。
|
|
30
|
-
|
|
31
|
-
### 清除單一目標
|
|
32
|
-
|
|
33
|
-
若要僅清除已生成的檔案,請使用以下指令:
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
aigne doc clear --targets generatedDocs
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
### 清除多個目標
|
|
40
|
-
|
|
41
|
-
您可以提供多個目標名稱來一次清除多個項目。例如,若要同時移除文件設定和文件結構,請執行:
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
aigne doc clear --targets documentConfig documentStructure
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
清除您的設定後,您可以再次執行設定流程以重新開始。
|
|
48
|
-
|
|
49
|
-
---
|
|
50
|
-
|
|
51
|
-
有關初始設定的更多資訊,請參閱 [初始設定](./configuration-initial-setup.md) 指南。
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# 清理
|
|
2
|
-
|
|
3
|
-
`aigne doc clear` 命令提供了一种简单直接的方法来移除生成的文件、缓存数据和配置设置。当您想要重置文档项目、从干净的状态开始或排查与过时或损坏文件相关的问题时,这个命令非常有用。
|
|
4
|
-
|
|
5
|
-
## 交互式清理
|
|
6
|
-
|
|
7
|
-
使用该命令最简单的方法是不带任何参数运行它:
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
aigne doc clear
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
执行此命令将启动一个交互式提示,让您能够精确选择要移除的项目。这是大多数用例的推荐方法,因为它为每个选项提供了清晰的描述,并能防止意外的数据丢失。
|
|
14
|
-
|
|
15
|
-
## 清理目标
|
|
16
|
-
|
|
17
|
-
`clear` 命令可以移除几种不同类型的数据。下表详细说明了每个可用的目标、其功能以及所影响的具体文件或目录。
|
|
18
|
-
|
|
19
|
-
| Target | Description | Files and Directories Affected |
|
|
20
|
-
| :--- | :--- | :--- |
|
|
21
|
-
| `generatedDocs` | 删除输出目录中所有生成的文档,但保留文档结构计划。 | 您配置中由 `docsDir` 指定的目录。 |
|
|
22
|
-
| `documentStructure` | 删除所有生成的文档和文档结构计划,从而有效重置您的文档内容。 | `.aigne/doc-smith/output/structure-plan.json` 文件和 `docsDir` 目录。 |
|
|
23
|
-
| `documentConfig` | 删除项目的配置文件。执行此操作后,您需要重新运行 `aigne doc init`。 | `.aigne/doc-smith/config.yaml` 文件。 |
|
|
24
|
-
| `authTokens` | 移除已保存的用于发布站点的授权令牌。系统将提示您选择要清除哪些站点。 | 您主目录下的 `~/.aigne/doc-smith-connected.yaml` 文件。 |
|
|
25
|
-
| `deploymentConfig` | 从您的配置文件中删除 `appUrl`。 | `.aigne/doc-smith/config.yaml` 文件。 |
|
|
26
|
-
|
|
27
|
-
## 非交互式清理
|
|
28
|
-
|
|
29
|
-
对于自动化脚本或偏好使用命令行的用户,您可以使用 `--targets` 标志直接指定一个或多个要清理的目标。这将绕过交互式提示。
|
|
30
|
-
|
|
31
|
-
### 清理单个目标
|
|
32
|
-
|
|
33
|
-
要仅清理生成的文档,请使用以下命令:
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
aigne doc clear --targets generatedDocs
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
### 清理多个目标
|
|
40
|
-
|
|
41
|
-
您可以提供多个目标名称以一次性清理多个项目。例如,要同时移除文档配置和文档结构,请运行:
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
aigne doc clear --targets documentConfig documentStructure
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
清理配置后,您可以通过再次运行设置过程来重新开始。
|
|
48
|
-
|
|
49
|
-
---
|
|
50
|
-
|
|
51
|
-
有关初始设置的更多信息,请参阅 [初始设置](./configuration-initial-setup.md) 指南。
|