@aigne/doc-smith 0.8.11-beta.5 → 0.8.11-beta.6

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.
Files changed (95) hide show
  1. package/.aigne/doc-smith/config.yaml +1 -1
  2. package/.release-please-manifest.json +1 -1
  3. package/CHANGELOG.md +9 -2
  4. package/README.md +1 -1
  5. package/agents/clear/choose-contents.mjs +2 -2
  6. package/agents/clear/clear-document-structure.mjs +8 -8
  7. package/agents/clear/index.yaml +1 -1
  8. package/agents/evaluate/document-structure.yaml +1 -1
  9. package/agents/generate/check-document-structure.yaml +3 -3
  10. package/agents/generate/check-need-generate-structure.mjs +8 -8
  11. package/agents/generate/document-structure-tools/add-document.mjs +3 -3
  12. package/agents/generate/document-structure-tools/delete-document.mjs +2 -2
  13. package/agents/generate/document-structure-tools/move-document.mjs +3 -2
  14. package/agents/generate/document-structure-tools/update-document.mjs +2 -2
  15. package/agents/generate/generate-structure.yaml +1 -1
  16. package/agents/generate/update-document-structure.yaml +3 -3
  17. package/agents/generate/user-review-document-structure.mjs +10 -10
  18. package/agents/update/batch-generate-document.yaml +1 -1
  19. package/agents/update/check-document.mjs +2 -2
  20. package/agents/utils/check-feedback-refiner.mjs +1 -1
  21. package/agents/utils/choose-docs.mjs +1 -1
  22. package/agents/utils/load-document-all-content.mjs +3 -3
  23. package/agents/utils/load-sources.mjs +1 -1
  24. package/agents/utils/save-docs.mjs +7 -28
  25. package/aigne.yaml +2 -2
  26. package/docs/_sidebar.md +1 -1
  27. package/docs/advanced-how-it-works.md +3 -3
  28. package/docs/advanced-quality-assurance.md +1 -1
  29. package/docs/cli-reference.ja.md +151 -80
  30. package/docs/cli-reference.md +126 -55
  31. package/docs/cli-reference.zh-TW.md +133 -62
  32. package/docs/cli-reference.zh.md +143 -72
  33. package/docs/configuration-interactive-setup.md +1 -1
  34. package/docs/configuration-language-support.md +1 -1
  35. package/docs/configuration-preferences.md +1 -1
  36. package/docs/configuration.ja.md +104 -48
  37. package/docs/configuration.md +58 -2
  38. package/docs/configuration.zh-TW.md +99 -42
  39. package/docs/configuration.zh.md +78 -21
  40. package/docs/features-generate-documentation.ja.md +63 -44
  41. package/docs/features-generate-documentation.md +54 -35
  42. package/docs/features-generate-documentation.zh-TW.md +67 -48
  43. package/docs/features-generate-documentation.zh.md +61 -41
  44. package/docs/features-publish-your-docs.ja.md +69 -46
  45. package/docs/features-publish-your-docs.md +65 -42
  46. package/docs/features-publish-your-docs.zh-TW.md +73 -50
  47. package/docs/features-publish-your-docs.zh.md +67 -44
  48. package/docs/features-translate-documentation.ja.md +35 -33
  49. package/docs/features-translate-documentation.md +24 -22
  50. package/docs/features-translate-documentation.zh-TW.md +32 -30
  51. package/docs/features-translate-documentation.zh.md +29 -27
  52. package/docs/features-update-and-refine.ja.md +120 -66
  53. package/docs/features-update-and-refine.md +110 -56
  54. package/docs/features-update-and-refine.zh-TW.md +116 -62
  55. package/docs/features-update-and-refine.zh.md +118 -64
  56. package/docs/getting-started.ja.md +22 -22
  57. package/docs/getting-started.md +1 -1
  58. package/docs/getting-started.zh-TW.md +16 -16
  59. package/docs/getting-started.zh.md +28 -28
  60. package/docs/overview.md +3 -3
  61. package/docs-mcp/analyze-docs-relevance.yaml +6 -6
  62. package/docs-mcp/docs-search.yaml +1 -1
  63. package/package.json +2 -2
  64. package/prompts/common/document-structure/conflict-resolution-guidance.md +3 -3
  65. package/prompts/common/document-structure/document-structure-rules.md +2 -2
  66. package/prompts/detail/document-rules.md +1 -1
  67. package/prompts/detail/generate-document.md +1 -1
  68. package/prompts/evaluate/document-structure.md +6 -6
  69. package/prompts/structure/check-document-structure.md +10 -10
  70. package/prompts/structure/document-rules.md +2 -2
  71. package/prompts/structure/generate-structure-system.md +3 -3
  72. package/prompts/structure/structure-example.md +1 -1
  73. package/prompts/structure/structure-getting-started.md +1 -1
  74. package/prompts/structure/update-document-structure.md +9 -9
  75. package/prompts/utils/feedback-refiner.md +1 -1
  76. package/tests/agents/clear/choose-contents.test.mjs +1 -1
  77. package/tests/agents/clear/clear-document-structure.test.mjs +36 -30
  78. package/tests/agents/evaluate/generate-report.test.mjs +1 -1
  79. package/tests/agents/generate/check-need-generate-structure.test.mjs +1 -1
  80. package/tests/agents/generate/document-structure-tools/add-document.test.mjs +2 -2
  81. package/tests/agents/generate/document-structure-tools/delete-document.test.mjs +4 -4
  82. package/tests/agents/generate/document-structure-tools/move-document.test.mjs +3 -3
  83. package/tests/agents/generate/document-structure-tools/update-document.test.mjs +3 -3
  84. package/tests/agents/generate/user-review-document-structure.test.mjs +7 -5
  85. package/tests/agents/update/check-document.test.mjs +1 -1
  86. package/tests/agents/utils/format-document-structure.test.mjs +5 -5
  87. package/tests/agents/utils/load-sources.test.mjs +4 -4
  88. package/tests/agents/utils/save-docs.test.mjs +1 -1
  89. package/tests/utils/conflict-detector.test.mjs +1 -1
  90. package/tests/utils/docs-finder-utils.test.mjs +8 -8
  91. package/types/document-structure-schema.mjs +9 -9
  92. package/utils/conflict-detector.mjs +1 -1
  93. package/utils/constants/index.mjs +4 -4
  94. package/utils/docs-finder-utils.mjs +11 -11
  95. package/utils/markdown-checker.mjs +1 -1
@@ -1,84 +1,138 @@
1
- # 更新と改良
1
+ # 更新とリファイン
2
2
 
3
- 進化するコードベースとドキュメントを同期させることは、重要なタスクです。AIGNE DocSmithは、コードの変更に基づく自動更新や、フィードバックに基づいた正確な改良を通じて、コンテンツを最新の状態に保つための直接的で柔軟な方法を提供します。
3
+ 進化するコードベースとドキュメントを同期させることは、体系的なプロセスです。AIGNE DocSmithは、コードの変更に基づく自動更新、またはフィードバックに基づいた正確なリファインによって、コンテンツを最新の状態に保つための直接的で柔軟なコマンドを提供します。
4
4
 
5
- このガイドでは、以下の方法について説明します:
5
+ このガイドでは、以下の手順について説明します。
6
6
 
7
7
  - ソースコードが変更されたときにドキュメントを自動的に更新する。
8
- - 特定のフィードバックを使用して特定のドキュメントを再生成する。
8
+ - 対象を絞ったフィードバックを使用して特定のドキュメントを再生成する。
9
9
  - ドキュメント全体の構造を調整する。
10
10
 
11
- ### ドキュメント更新のワークフロー
11
+ ### ドキュメント更新ワークフロー
12
12
 
13
- 以下の図は、ドキュメントを更新するために利用できるさまざまなパスを示しています:
13
+ 以下の図は、ドキュメントを更新するために利用できるさまざまなワークフローを示しています。
14
14
 
15
- ```d2 更新ワークフロー
15
+ ```d2 ドキュメント更新ワークフロー
16
16
  direction: down
17
17
 
18
- Start: {
19
- shape: circle
20
- label: "開始"
18
+ developer: {
19
+ shape: c4-person
20
+ label: "開発者"
21
21
  }
22
22
 
23
- Code-Change: {
24
- label: "ソースコードまたは\n設定の変更"
25
- shape: rectangle
23
+ codebase: {
24
+ shape: cylinder
25
+ label: "ソースコード"
26
26
  }
27
27
 
28
- Content-Tweak: {
29
- label: "コンテンツの\n改善が必要か?"
30
- shape: rectangle
28
+ updated-documentation: {
29
+ shape: cylinder
30
+ label: "更新された\nドキュメント"
31
31
  }
32
32
 
33
- Structure-Tweak: {
34
- label: "構造の\n改善が必要か?"
33
+ workflows: {
34
+ label: "ドキュメント更新ワークフロー"
35
35
  shape: rectangle
36
- }
37
-
38
- Start -> Code-Change
39
- Start -> Content-Tweak
40
- Start -> Structure-Tweak
41
-
42
- Code-Change -> Generate-Command: "aigne doc generate"
43
-
44
- Generate-Command -> Change-Detection: {
45
- label: "変更検出"
46
- shape: diamond
47
- }
48
- Change-Detection -> Auto-Regen: "影響を受ける\nドキュメントを再生成"
49
-
50
- Content-Tweak -> Update-Command: "aigne doc update\n--feedback"
51
- Update-Command -> Manual-Regen: "特定の\nドキュメントを再生成"
52
-
53
- Structure-Tweak -> Generate-Feedback-Command: "aigne doc generate\n--feedback"
54
- Generate-Feedback-Command -> Replan: "ドキュメント構造を\n再計画"
55
36
 
56
- End: {
57
- shape: circle
58
- label: "ドキュメント更新済み"
37
+ automatic-updates: {
38
+ label: "自動更新 (コード駆動)"
39
+ shape: rectangle
40
+
41
+ cmd-generate: {
42
+ label: "aigne doc generate"
43
+ }
44
+
45
+ decision-force: {
46
+ label: "--forceRegenerate?"
47
+ shape: diamond
48
+ }
49
+
50
+ detect-changes: {
51
+ label: "変更を検出"
52
+ }
53
+
54
+ regen-affected: {
55
+ label: "影響を受ける\nドキュメントを再生成"
56
+ }
57
+
58
+ regen-all: {
59
+ label: "すべての\nドキュメントを再生成"
60
+ }
61
+ }
62
+
63
+ manual-refinements: {
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
+ }
59
95
  }
60
96
 
61
- Auto-Regen -> End
62
- Manual-Regen -> End
63
- Replan -> End
97
+ # --- 接続 ---
98
+
99
+ # パス1: 自動更新
100
+ developer -> codebase: "1. 変更を加える"
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再生成"
64
118
  ```
65
119
 
66
120
  ---
67
121
 
68
122
  ## 変更検出による自動更新
69
123
 
70
- `aigne doc generate` コマンドを実行すると、DocSmithはコードベースを分析し、前回の実行からの変更を検出し、影響を受けるドキュメントのみを再生成します。このプロセスにより、時間を節約し、不要なAPI呼び出しを削減できます。
124
+ `aigne doc generate`コマンドを実行すると、DocSmithはまずコードベースを分析して、前回の生成以降の変更を検出します。その後、これらの変更によって影響を受けるドキュメントのみを再生成します。このデフォルトの動作により、時間が節約され、APIの使用量が削減されます。
71
125
 
72
126
  ```shell icon=lucide:terminal
73
- # DocSmithが変更を検出し、必要なものだけを更新します
127
+ # DocSmithは変更を検出し、必要なものだけを更新します
74
128
  aigne doc generate
75
129
  ```
76
130
 
77
131
  ![DocSmithが変更を検出し、必要なドキュメントのみを再生成します。](https://docsmith.aigne.io/image-bin/uploads/21a76b2f65d14d16a49c13d800f1e2c1.png)
78
132
 
79
- ### 完全な再生成を強制する
133
+ ### 完全な再生成の強制
80
134
 
81
- キャッシュや以前の状態を無視して、すべてのドキュメントを最初から再生成する必要がある場合は、`--forceRegenerate` フラグを使用します。これは、大幅な設定変更後や、完全に新しいビルドを確実にしたい場合に便利です。
135
+ キャッシュと変更検出をバイパスして、すべてのドキュメントをゼロから再生成するには、`--forceRegenerate`フラグを使用します。これは、大幅な設定変更を行った場合や、一貫性を確保するために完全な再構築が必要な場合に必要です。
82
136
 
83
137
  ```shell icon=lucide:terminal
84
138
  # すべてのドキュメントをゼロから再生成します
@@ -87,18 +141,18 @@ aigne doc generate --forceRegenerate
87
141
 
88
142
  ---
89
143
 
90
- ## 個々のドキュメントの改良
144
+ ## 個別ドキュメントのリファイン
91
145
 
92
- 対応するコードの変更なしに特定のドキュメントを改善するために、`aigne doc update` コマンドを使用すると、コンテンツの改良に関する的を絞った指示を提供できます。
146
+ 対応するコードの変更なしに特定のドキュメントのコンテンツを改善するには、`aigne doc update`コマンドを使用します。このコマンドを使用すると、リファインのための具体的な指示を提供できます。
93
147
 
94
- このコマンドは、対話形式またはコマンドライン引数を介して直接、2つの方法で使用できます。
148
+ これは、対話形式またはコマンドライン引数を使用して非対話形式で行うことができます。
95
149
 
96
150
  ### 対話モード
97
151
 
98
- ガイド付きの体験をしたい場合は、引数なしでコマンドを実行します。DocSmithは、更新したいドキュメントを選択するためのメニューを表示します。選択後、フィードバックを入力するよう求められます。
152
+ ガイド付きのプロセスを行うには、引数なしでコマンドを実行します。DocSmithは、更新したいドキュメントを選択するためのメニューを表示します。選択後、フィードバックを入力するよう求められます。
99
153
 
100
154
  ```shell icon=lucide:terminal
101
- # 対話式の更新プロセスを開始します
155
+ # 対話的な更新プロセスを開始します
102
156
  aigne doc update
103
157
  ```
104
158
 
@@ -106,33 +160,33 @@ aigne doc update
106
160
 
107
161
  ### 直接的なコマンドライン更新
108
162
 
109
- より高速なワークフローやスクリプト作成のために、フラグを使用してドキュメントとフィードバックを直接指定できます。これにより、正確で非対話的な更新が可能になります。
163
+ スクリプト化された、またはより高速なワークフローのために、フラグを使用してドキュメントとフィードバックを直接指定できます。これにより、正確な非対話形式の更新が可能になります。
110
164
 
111
165
  ```shell icon=lucide:terminal
112
- # 特定のドキュメントにフィードバックを付けて更新します
113
- aigne doc update --docs overview.md --feedback "Add a more detailed FAQ section at the end."
166
+ # フィードバック付きで特定のドキュメントを更新します
167
+ aigne doc update --docs overview.md --feedback "最後に詳細なFAQセクションを追加してください。"
114
168
  ```
115
169
 
116
- `update` コマンドの主要なパラメータ:
170
+ `update`コマンドの主要なパラメータは以下の通りです。
117
171
 
118
- | パラメータ | 説明 |
119
- | ---------- | ------------------------------------------------------------------------------------------------ |
120
- | `--docs` | 更新したいドキュメントへのパス。バッチ更新のためにこのフラグを複数回使用できます。 |
121
- | `--feedback` | コンテンツを再生成する際に使用する具体的な指示。 |
172
+ | パラメータ | 説明 |
173
+ | --- | --- |
174
+ | `--docs` | 更新するドキュメントへのパス。このフラグはバッチ更新のために複数回使用できます。 |
175
+ | `--feedback` | コンテンツを再生成する際に使用される具体的な指示。 |
122
176
 
123
177
  ---
124
178
 
125
179
  ## 全体構造の最適化
126
180
 
127
- 個々のドキュメントのコンテンツを改良するだけでなく、ドキュメント全体の構造も調整できます。セクションが欠けている場合や、既存の構成を改善できる場合は、`generate` コマンドにフィードバックを提供できます。
181
+ 個々のドキュメントのコンテンツをリファインすることに加えて、ドキュメント全体の構造を調整することもできます。既存の構成が最適でない場合やセクションが欠落している場合は、`generate`コマンドにフィードバックを提供できます。
128
182
 
129
- このコマンドは、DocSmithに新しい入力に基づいてドキュメントプラン全体を再評価するよう指示します。
183
+ これにより、DocSmithは入力に基づいてドキュメント計画全体を再評価するように指示されます。
130
184
 
131
185
  ```shell icon=lucide:terminal
132
- # 特定のフィードバックを付けてドキュメント構造を再生成します
133
- aigne doc generate --feedback "Remove the 'About' section and add a detailed 'API Reference'."
186
+ # 特定のフィードバックでドキュメント構造を再生成します
187
+ aigne doc generate --feedback "'概要'セクションを削除し、詳細な'APIリファレンス'を追加してください。"
134
188
  ```
135
189
 
136
- このアプローチは、行単位のコンテンツ編集ではなく、ドキュメントの目次に対する高レベルの変更に最適です。
190
+ このアプローチは、ドキュメントの目次に対する高レベルの変更を目的としており、軽微なコンテンツの編集を目的としたものではありません。
137
191
 
138
- これらのツールを使用すると、プロジェクトと共に進化する正確なドキュメントを維持できます。コンテンツが改良されたら、世界中のオーディエンスに公開できます。その方法については、[ドキュメントの翻訳](./features-translate-documentation.md)ガイドで学んでください。
192
+ コンテンツがリファインされたら、次のステップはグローバルなオーディエンス向けに準備することです。手順については、[ドキュメントの翻訳](./features-translate-documentation.md)ガイドを参照してください。
@@ -1,73 +1,127 @@
1
1
  # Update and Refine
2
2
 
3
- Keeping documentation synchronized with an evolving codebase is a critical task. AIGNE DocSmith provides direct and flexible methods to keep your content current, whether through automatic updates based on code changes or precise, feedback-driven refinements.
3
+ Keeping documentation synchronized with an evolving codebase is a methodical process. AIGNE DocSmith provides direct and flexible commands to keep your content current, either through automatic updates based on code changes or through precise, feedback-driven refinements.
4
4
 
5
- This guide covers how to:
5
+ This guide covers the procedures to:
6
6
 
7
- - Automatically update documents when your source code changes.
7
+ - Automatically update documents when source code is modified.
8
8
  - Regenerate specific documents using targeted feedback.
9
9
  - Adjust the overall documentation structure.
10
10
 
11
11
  ### Document Update Workflows
12
12
 
13
- The following diagram illustrates the different paths you can take to update your documentation:
13
+ The following diagram illustrates the different workflows available for updating your documentation:
14
14
 
15
- ```d2 Update Workflows
15
+ ```d2 Document Update Workflows
16
16
  direction: down
17
17
 
18
- Start: {
19
- shape: circle
20
- label: "Start"
18
+ developer: {
19
+ shape: c4-person
20
+ label: "Developer"
21
21
  }
22
22
 
23
- Code-Change: {
24
- label: "Source Code or\nConfig Changes"
25
- shape: rectangle
23
+ codebase: {
24
+ shape: cylinder
25
+ label: "Source Code"
26
26
  }
27
27
 
28
- Content-Tweak: {
29
- label: "Need Content\nImprovement?"
30
- shape: rectangle
28
+ updated-documentation: {
29
+ shape: cylinder
30
+ label: "Updated\nDocumentation"
31
31
  }
32
32
 
33
- Structure-Tweak: {
34
- label: "Need Structure\nImprovement?"
33
+ workflows: {
34
+ label: "Document Update Workflows"
35
35
  shape: rectangle
36
- }
37
-
38
- Start -> Code-Change
39
- Start -> Content-Tweak
40
- Start -> Structure-Tweak
41
-
42
- Code-Change -> Generate-Command: "aigne doc generate"
43
-
44
- Generate-Command -> Change-Detection: {
45
- label: "Change Detection"
46
- shape: diamond
47
- }
48
- Change-Detection -> Auto-Regen: "Regenerates\nAffected Docs"
49
-
50
- Content-Tweak -> Update-Command: "aigne doc update\n--feedback"
51
- Update-Command -> Manual-Regen: "Regenerates\nSpecific Doc"
52
-
53
- Structure-Tweak -> Generate-Feedback-Command: "aigne doc generate\n--feedback"
54
- Generate-Feedback-Command -> Replan: "Re-plans Document\nStructure"
55
36
 
56
- End: {
57
- shape: circle
58
- label: "Docs Updated"
37
+ automatic-updates: {
38
+ label: "Automatic Updates (Code-Driven)"
39
+ shape: rectangle
40
+
41
+ cmd-generate: {
42
+ label: "aigne doc generate"
43
+ }
44
+
45
+ decision-force: {
46
+ label: "--forceRegenerate?"
47
+ shape: diamond
48
+ }
49
+
50
+ detect-changes: {
51
+ label: "Detect Changes"
52
+ }
53
+
54
+ regen-affected: {
55
+ label: "Regenerate\nAffected Docs"
56
+ }
57
+
58
+ regen-all: {
59
+ label: "Regenerate\nAll Docs"
60
+ }
61
+ }
62
+
63
+ manual-refinements: {
64
+ label: "Manual Refinements (Feedback-Driven)"
65
+ shape: rectangle
66
+ grid-columns: 2
67
+ grid-gap: 100
68
+
69
+ refine-individual: {
70
+ label: "Refine Individual Docs"
71
+ shape: rectangle
72
+
73
+ cmd-update: {
74
+ label: "aigne doc update\n--feedback"
75
+ }
76
+
77
+ regen-specific: {
78
+ label: "Regenerate\nSpecific Doc"
79
+ }
80
+ }
81
+
82
+ optimize-structure: {
83
+ label: "Optimize Overall Structure"
84
+ shape: rectangle
85
+
86
+ cmd-generate-feedback: {
87
+ label: "aigne doc generate\n--feedback"
88
+ }
89
+
90
+ re-evaluate-plan: {
91
+ label: "Re-evaluate\nDocument Plan"
92
+ }
93
+ }
94
+ }
59
95
  }
60
96
 
61
- Auto-Regen -> End
62
- Manual-Regen -> End
63
- Replan -> End
97
+ # --- Connections ---
98
+
99
+ # Path 1: Automatic Updates
100
+ developer -> codebase: "1. Makes changes"
101
+ codebase -> workflows.automatic-updates.cmd-generate: "2. Runs command"
102
+ workflows.automatic-updates.cmd-generate -> workflows.automatic-updates.decision-force
103
+ workflows.automatic-updates.decision-force -> workflows.automatic-updates.detect-changes: "No"
104
+ workflows.automatic-updates.detect-changes -> workflows.automatic-updates.regen-affected
105
+ workflows.automatic-updates.decision-force -> workflows.automatic-updates.regen-all: "Yes"
106
+ workflows.automatic-updates.regen-affected -> updated-documentation
107
+ workflows.automatic-updates.regen-all -> updated-documentation
108
+
109
+ # Path 2: Individual Refinement
110
+ developer -> workflows.manual-refinements.refine-individual.cmd-update: "3. Provides\ncontent feedback"
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
+ # Path 3: Structural Refinement
115
+ developer -> workflows.manual-refinements.optimize-structure.cmd-generate-feedback: "4. Provides\nstructural feedback"
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: "Regenerate with\nNew Structure"
64
118
  ```
65
119
 
66
120
  ---
67
121
 
68
122
  ## Automatic Updates with Change Detection
69
123
 
70
- When you run the `aigne doc generate` command, DocSmith analyzes your codebase, detects any changes since the last run, and regenerates only the documents that are affected. This process saves time and reduces unnecessary API calls.
124
+ When you execute the `aigne doc generate` command, DocSmith first analyzes your codebase to detect changes since the last generation. It then regenerates only the documents affected by these changes. This default behavior conserves time and reduces API usage.
71
125
 
72
126
  ```shell icon=lucide:terminal
73
127
  # DocSmith will detect changes and update only what's necessary
@@ -78,7 +132,7 @@ aigne doc generate
78
132
 
79
133
  ### Forcing a Full Regeneration
80
134
 
81
- If you need to regenerate all documentation from scratch, ignoring any cached or previous state, use the `--forceRegenerate` flag. This is useful after significant configuration changes or when you want to ensure a completely fresh build.
135
+ To regenerate all documentation from scratch, bypassing the cache and change detection, use the `--forceRegenerate` flag. This is necessary when you have made significant configuration changes or require a complete rebuild to ensure consistency.
82
136
 
83
137
  ```shell icon=lucide:terminal
84
138
  # Regenerate all documentation from the ground up
@@ -89,13 +143,13 @@ aigne doc generate --forceRegenerate
89
143
 
90
144
  ## Refining Individual Documents
91
145
 
92
- To improve a specific document without any corresponding code changes, the `aigne doc update` command allows you to provide targeted instructions for content refinement.
146
+ To improve a specific document's content without corresponding code changes, use the `aigne doc update` command. This command allows you to provide targeted instructions for refinement.
93
147
 
94
- You can use this command in two ways: interactively or directly via command-line arguments.
148
+ This can be done interactively or non-interactively via command-line arguments.
95
149
 
96
150
  ### Interactive Mode
97
151
 
98
- For a guided experience, run the command without any arguments. DocSmith will present a menu to select which document you want to update. After you choose, you'll be prompted to enter your feedback.
152
+ For a guided process, run the command without arguments. DocSmith will present a menu to select the document you wish to update. After selection, you will be prompted to enter your feedback.
99
153
 
100
154
  ```shell icon=lucide:terminal
101
155
  # Start the interactive update process
@@ -106,33 +160,33 @@ aigne doc update
106
160
 
107
161
  ### Direct Command-Line Updates
108
162
 
109
- For faster workflows or scripting, you can specify the document and feedback directly using flags. This allows for precise, non-interactive updates.
163
+ For scripted or faster workflows, you can specify the document and feedback directly using flags. This enables precise, non-interactive updates.
110
164
 
111
165
  ```shell icon=lucide:terminal
112
166
  # Update a specific document with feedback
113
167
  aigne doc update --docs overview.md --feedback "Add a more detailed FAQ section at the end."
114
168
  ```
115
169
 
116
- Key parameters for the `update` command:
170
+ Key parameters for the `update` command are as follows:
117
171
 
118
- | Parameter | Description |
119
- | ---------- | ------------------------------------------------------------------------------------------------ |
120
- | `--docs` | The path to the document you want to update. You can use this flag multiple times for batch updates. |
121
- | `--feedback` | The specific instructions to use when regenerating the content. |
172
+ | Parameter | Description |
173
+ | --- | --- |
174
+ | `--docs` | The path to the document to be updated. This flag can be used multiple times for batch updates. |
175
+ | `--feedback` | The specific instructions to be used when regenerating the content. |
122
176
 
123
177
  ---
124
178
 
125
179
  ## Optimizing the Overall Structure
126
180
 
127
- Beyond refining the content of individual documents, you can also adjust the overall documentation structure. If a section is missing or the existing organization could be improved, you can provide feedback to the `generate` command.
181
+ In addition to refining individual document content, you can adjust the overall documentation structure. If the existing organization is suboptimal or a section is missing, you can provide feedback to the `generate` command.
128
182
 
129
- This command instructs DocSmith to re-evaluate the entire document plan based on your new input.
183
+ This instructs DocSmith to re-evaluate the entire document plan based on your input.
130
184
 
131
185
  ```shell icon=lucide:terminal
132
186
  # Regenerate the documentation structure with specific feedback
133
187
  aigne doc generate --feedback "Remove the 'About' section and add a detailed 'API Reference'."
134
188
  ```
135
189
 
136
- This approach is best for high-level changes to the document's table of contents, rather than line-by-line content edits.
190
+ This approach is intended for high-level changes to the document's table of contents, not for minor content edits.
137
191
 
138
- With these tools, you can maintain accurate documentation that evolves alongside your project. Once your content is refined, you can make it available to a global audience. Learn how in the [Translate Documentation](./features-translate-documentation.md) guide.
192
+ Once your content is refined, the next step is to prepare it for a global audience. For instructions, see the [Translate Documentation](./features-translate-documentation.md) guide.