@aigne/doc-smith 0.8.12-beta.2 → 0.8.12-beta.4

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 (170) hide show
  1. package/.aigne/doc-smith/config.yaml +9 -6
  2. package/.aigne/doc-smith/output/structure-plan.json +123 -109
  3. package/.aigne/doc-smith/upload-cache.yaml +48 -0
  4. package/.github/workflows/publish-docs.yml +4 -7
  5. package/.release-please-manifest.json +1 -1
  6. package/CHANGELOG.md +20 -0
  7. package/agents/clear/choose-contents.mjs +22 -5
  8. package/agents/clear/clear-auth-tokens.mjs +2 -4
  9. package/agents/clear/clear-deployment-config.mjs +49 -0
  10. package/agents/clear/clear-document-config.mjs +2 -5
  11. package/agents/clear/clear-document-structure.mjs +2 -6
  12. package/agents/clear/clear-generated-docs.mjs +0 -1
  13. package/agents/generate/check-need-generate-structure.mjs +15 -60
  14. package/agents/generate/document-structure-tools/generate-sub-structure.mjs +131 -0
  15. package/agents/generate/generate-structure-without-tools.yaml +65 -0
  16. package/agents/generate/generate-structure.yaml +7 -1
  17. package/agents/generate/index.yaml +0 -3
  18. package/agents/generate/update-document-structure.yaml +3 -0
  19. package/agents/generate/user-review-document-structure.mjs +7 -5
  20. package/agents/init/index.mjs +15 -15
  21. package/agents/publish/publish-docs.mjs +132 -113
  22. package/agents/translate/index.yaml +1 -1
  23. package/agents/update/batch-generate-document.yaml +1 -1
  24. package/agents/update/batch-update-document.yaml +1 -1
  25. package/agents/update/check-document.mjs +3 -19
  26. package/agents/update/user-review-document.mjs +4 -3
  27. package/agents/utils/load-sources.mjs +54 -151
  28. package/agents/utils/transform-detail-datasources.mjs +14 -18
  29. package/aigne.yaml +2 -0
  30. package/biome.json +1 -1
  31. package/docs/_sidebar.md +13 -15
  32. package/docs/configuration-initial-setup.ja.md +179 -0
  33. package/docs/configuration-initial-setup.md +179 -0
  34. package/docs/configuration-initial-setup.zh-TW.md +179 -0
  35. package/docs/configuration-initial-setup.zh.md +179 -0
  36. package/docs/configuration-managing-preferences.ja.md +100 -0
  37. package/docs/configuration-managing-preferences.md +100 -0
  38. package/docs/configuration-managing-preferences.zh-TW.md +100 -0
  39. package/docs/configuration-managing-preferences.zh.md +100 -0
  40. package/docs/configuration.ja.md +68 -184
  41. package/docs/configuration.md +62 -178
  42. package/docs/configuration.zh-TW.md +70 -186
  43. package/docs/configuration.zh.md +67 -183
  44. package/docs/getting-started.ja.md +46 -78
  45. package/docs/getting-started.md +46 -78
  46. package/docs/getting-started.zh-TW.md +47 -79
  47. package/docs/getting-started.zh.md +47 -79
  48. package/docs/guides-cleaning-up.ja.md +50 -0
  49. package/docs/guides-cleaning-up.md +50 -0
  50. package/docs/guides-cleaning-up.zh-TW.md +50 -0
  51. package/docs/guides-cleaning-up.zh.md +50 -0
  52. package/docs/guides-evaluating-documents.ja.md +66 -0
  53. package/docs/guides-evaluating-documents.md +66 -0
  54. package/docs/guides-evaluating-documents.zh-TW.md +66 -0
  55. package/docs/guides-evaluating-documents.zh.md +66 -0
  56. package/docs/guides-generating-documentation.ja.md +149 -0
  57. package/docs/guides-generating-documentation.md +149 -0
  58. package/docs/guides-generating-documentation.zh-TW.md +149 -0
  59. package/docs/guides-generating-documentation.zh.md +149 -0
  60. package/docs/guides-interactive-chat.ja.md +85 -0
  61. package/docs/guides-interactive-chat.md +85 -0
  62. package/docs/guides-interactive-chat.zh-TW.md +85 -0
  63. package/docs/guides-interactive-chat.zh.md +85 -0
  64. package/docs/guides-managing-history.ja.md +51 -0
  65. package/docs/guides-managing-history.md +51 -0
  66. package/docs/guides-managing-history.zh-TW.md +51 -0
  67. package/docs/guides-managing-history.zh.md +51 -0
  68. package/docs/guides-publishing-your-docs.ja.md +78 -0
  69. package/docs/guides-publishing-your-docs.md +78 -0
  70. package/docs/guides-publishing-your-docs.zh-TW.md +78 -0
  71. package/docs/guides-publishing-your-docs.zh.md +78 -0
  72. package/docs/guides-translating-documentation.ja.md +95 -0
  73. package/docs/guides-translating-documentation.md +95 -0
  74. package/docs/guides-translating-documentation.zh-TW.md +95 -0
  75. package/docs/guides-translating-documentation.zh.md +95 -0
  76. package/docs/guides-updating-documentation.ja.md +77 -0
  77. package/docs/guides-updating-documentation.md +77 -0
  78. package/docs/guides-updating-documentation.zh-TW.md +77 -0
  79. package/docs/guides-updating-documentation.zh.md +77 -0
  80. package/docs/guides.ja.md +32 -0
  81. package/docs/guides.md +32 -0
  82. package/docs/guides.zh-TW.md +32 -0
  83. package/docs/guides.zh.md +32 -0
  84. package/docs/overview.ja.md +39 -60
  85. package/docs/overview.md +39 -60
  86. package/docs/overview.zh-TW.md +39 -60
  87. package/docs/overview.zh.md +39 -60
  88. package/docs/release-notes.ja.md +255 -0
  89. package/docs/release-notes.md +255 -0
  90. package/docs/release-notes.zh-TW.md +255 -0
  91. package/docs/release-notes.zh.md +255 -0
  92. package/package.json +4 -2
  93. package/prompts/common/document/content-rules-core.md +1 -0
  94. package/prompts/common/document-structure/document-structure-rules.md +8 -9
  95. package/prompts/common/document-structure/output-constraints.md +1 -1
  96. package/prompts/structure/document-rules.md +8 -2
  97. package/prompts/structure/generate/system-prompt.md +27 -2
  98. package/prompts/structure/generate/user-prompt.md +18 -0
  99. package/prompts/structure/update/system-prompt.md +12 -0
  100. package/prompts/structure/update/user-prompt.md +3 -0
  101. package/tests/agents/clear/choose-contents.test.mjs +8 -4
  102. package/tests/agents/generate/check-need-generate-structure.test.mjs +53 -63
  103. package/tests/agents/generate/document-structure-tools/generate-sub-structure.test.mjs +277 -0
  104. package/tests/agents/init/init.test.mjs +18 -18
  105. package/tests/agents/publish/publish-docs.test.mjs +79 -0
  106. package/tests/agents/update/check-document.test.mjs +7 -67
  107. package/tests/agents/utils/load-sources.test.mjs +90 -90
  108. package/tests/agents/utils/transform-detail-datasources.test.mjs +153 -196
  109. package/tests/utils/file-utils.test.mjs +309 -1
  110. package/utils/auth-utils.mjs +12 -5
  111. package/utils/constants/index.mjs +5 -2
  112. package/utils/deploy.mjs +2 -2
  113. package/utils/file-utils.mjs +315 -0
  114. package/utils/utils.mjs +89 -50
  115. package/docs/advanced-how-it-works.ja.md +0 -101
  116. package/docs/advanced-how-it-works.md +0 -101
  117. package/docs/advanced-how-it-works.zh-TW.md +0 -101
  118. package/docs/advanced-how-it-works.zh.md +0 -101
  119. package/docs/advanced-quality-assurance.ja.md +0 -92
  120. package/docs/advanced-quality-assurance.md +0 -92
  121. package/docs/advanced-quality-assurance.zh-TW.md +0 -92
  122. package/docs/advanced-quality-assurance.zh.md +0 -92
  123. package/docs/advanced.ja.md +0 -20
  124. package/docs/advanced.md +0 -20
  125. package/docs/advanced.zh-TW.md +0 -20
  126. package/docs/advanced.zh.md +0 -20
  127. package/docs/changelog.ja.md +0 -486
  128. package/docs/changelog.md +0 -486
  129. package/docs/changelog.zh-TW.md +0 -486
  130. package/docs/changelog.zh.md +0 -486
  131. package/docs/cli-reference.ja.md +0 -311
  132. package/docs/cli-reference.md +0 -311
  133. package/docs/cli-reference.zh-TW.md +0 -311
  134. package/docs/cli-reference.zh.md +0 -311
  135. package/docs/configuration-interactive-setup.ja.md +0 -138
  136. package/docs/configuration-interactive-setup.md +0 -138
  137. package/docs/configuration-interactive-setup.zh-TW.md +0 -138
  138. package/docs/configuration-interactive-setup.zh.md +0 -138
  139. package/docs/configuration-language-support.ja.md +0 -64
  140. package/docs/configuration-language-support.md +0 -64
  141. package/docs/configuration-language-support.zh-TW.md +0 -64
  142. package/docs/configuration-language-support.zh.md +0 -64
  143. package/docs/configuration-llm-setup.ja.md +0 -56
  144. package/docs/configuration-llm-setup.md +0 -56
  145. package/docs/configuration-llm-setup.zh-TW.md +0 -56
  146. package/docs/configuration-llm-setup.zh.md +0 -56
  147. package/docs/configuration-preferences.ja.md +0 -144
  148. package/docs/configuration-preferences.md +0 -144
  149. package/docs/configuration-preferences.zh-TW.md +0 -144
  150. package/docs/configuration-preferences.zh.md +0 -144
  151. package/docs/features-generate-documentation.ja.md +0 -95
  152. package/docs/features-generate-documentation.md +0 -95
  153. package/docs/features-generate-documentation.zh-TW.md +0 -95
  154. package/docs/features-generate-documentation.zh.md +0 -95
  155. package/docs/features-publish-your-docs.ja.md +0 -130
  156. package/docs/features-publish-your-docs.md +0 -130
  157. package/docs/features-publish-your-docs.zh-TW.md +0 -130
  158. package/docs/features-publish-your-docs.zh.md +0 -130
  159. package/docs/features-translate-documentation.ja.md +0 -90
  160. package/docs/features-translate-documentation.md +0 -90
  161. package/docs/features-translate-documentation.zh-TW.md +0 -90
  162. package/docs/features-translate-documentation.zh.md +0 -90
  163. package/docs/features-update-and-refine.ja.md +0 -142
  164. package/docs/features-update-and-refine.md +0 -142
  165. package/docs/features-update-and-refine.zh-TW.md +0 -143
  166. package/docs/features-update-and-refine.zh.md +0 -142
  167. package/docs/features.ja.md +0 -62
  168. package/docs/features.md +0 -62
  169. package/docs/features.zh-TW.md +0 -62
  170. package/docs/features.zh.md +0 -62
@@ -1,212 +1,96 @@
1
- # 設定ガイド
1
+ # 設定
2
2
 
3
- AIGNE DocSmith の動作は、中央設定ファイル `.aigne/doc-smith/config.yaml` によって制御されます。このファイルを使用して、ドキュメントのスタイル、対象読者、言語、構造を特定のニーズに合わせてカスタマイズできます。
3
+ 適切な設定は、プロジェクト固有のニーズに合わせてドキュメント生成プロセスを調整するために不可欠です。AIGNE DocSmithは、主要な設定ファイルとコマンドラインインターフェースを使用して設定を管理します。このセットアップにより、生成されるドキュメントがプロジェクトの目標、対象読者、構造的要件を正確に反映することが保証されます。
4
4
 
5
- `aigne doc init` を実行して、対話式のセットアップウィザードを使用してこのファイルを作成および管理できます。手順ごとのウォークスルーについては、[対話式セットアップ](./configuration-interactive-setup.md)ガイドを参照してください。または、ファイルを直接編集して、より詳細な制御を行うこともできます。
5
+ このセクションでは、ツールの設定方法の概要を説明します。ステップバイステップの手順については、以下の詳細なガイドを参照してください。
6
6
 
7
- 以下の図は、設定のワークフローを示しています。
8
-
9
- ```d2 設定ワークフロー
10
- direction: down
11
-
12
- User: {
13
- shape: person
14
- }
15
-
16
- CLI: {
17
- label: "コマンド実行\n'aigne doc init'"
18
- shape: rectangle
19
- }
20
-
21
- Setup-Wizard: {
22
- label: "対話式セットアップウィザード"
23
- shape: rectangle
24
- }
25
-
26
- Config-File: {
27
- label: ".aigne/doc-smith/config.yaml"
28
- shape: rectangle
29
- }
30
-
31
- AIGNE-DocSmith-Engine: {
32
- label: "AIGNE DocSmith エンジン"
33
- }
34
-
35
- # パス1: 対話式セットアップ (推奨)
36
- User -> CLI: "推奨パス"
37
- CLI -> Setup-Wizard: "起動"
38
- Setup-Wizard -> Config-File: "作成 / 変更"
39
-
40
- # パス2: 手動編集
41
- User -> Config-File: "代替パス:\n直接編集"
42
-
43
- # 最終ステップ
44
- Config-File -> AIGNE-DocSmith-Engine: "設定"
45
- ```
46
-
47
- ## 主要な設定領域
48
-
49
- ドキュメントは、いくつかの主要な設定領域によって形成されます。これらのガイドを参照して、生成プロセスの各側面を微調整する方法を理解してください。
50
-
51
- <x-cards data-columns="2">
52
- <x-card data-title="対話式セットアップ" data-icon="lucide:wand-2" data-href="/configuration/interactive-setup">
53
- 推奨設定や競合検出を含む、ドキュメントプロジェクトの設定を支援するガイド付きウィザードについて学びます。
54
- </x-card>
55
- <x-card data-title="LLM セットアップ" data-icon="lucide:brain-circuit" data-href="/configuration/llm-setup">
56
- APIキーが不要な組み込みのAIGNEハブの使用を含む、さまざまなAIモデルの接続方法を発見します。
57
- </x-card>
58
- <x-card data-title="言語サポート" data-icon="lucide:languages" data-href="/configuration/language-support">
59
- サポートされている言語の全リストを確認し、主要言語の設定方法や自動翻訳の有効化方法を学びます。
60
- </x-card>
61
- <x-card data-title="設定の管理" data-icon="lucide:sliders-horizontal" data-href="/configuration/preferences">
62
- DocSmithがフィードバックを使用して永続的なルールを作成する方法と、CLIを介してそれらを管理する方法を理解します。
63
- </x-card>
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>
64
10
  </x-cards>
65
11
 
66
- ## パラメータリファレンス
67
-
68
- `config.yaml` ファイルには、ドキュメントの出力を制御するいくつかのキーと値のペアが含まれています。以下は、各パラメータの詳細なリファレンスです。
69
-
70
- ### プロジェクト情報
71
-
72
- これらの設定は、プロジェクトに関する基本的なコンテキストを提供し、ドキュメントを公開する際に使用されます。
73
-
74
- | パラメータ | 説明 |
75
- |---|---|
76
- | `projectName` | プロジェクトの名前。`package.json` があればそこから検出されます。 |
77
- | `projectDesc` | プロジェクトの短い説明。`package.json` から検出されます。 |
78
- | `projectLogo` | プロジェクトのロゴ画像へのパスまたは URL。 |
79
-
80
- ### ドキュメンテーション戦略
81
-
82
- これらのパラメータは、生成されるコンテンツのトーン、スタイル、深さを定義します。
83
-
84
- #### `documentPurpose`
85
- 読者に達成してもらいたい主な成果を定義します。この設定は、ドキュメントの全体的な構造と焦点に影響を与えます。
86
-
87
- | オプション | 名前 | 説明 |
88
- |---|---|---|
89
- | `getStarted` | 迅速な開始 | 新規ユーザーが30分未満でゼロから作業を開始できるように支援します。 |
90
- | `completeTasks` | 特定のタスクを完了する | 一般的なワークフローとユースケースを通じてユーザーをガイドします。 |
91
- | `findAnswers` | 迅速に答えを見つける | すべての機能とAPIの検索可能なリファレンスを提供します。 |
92
- | `understandSystem`| システムを理解する | それがどのように機能し、なぜ設計上の決定がなされたかを説明します。 |
93
- | `solveProblems` | 一般的な問題のトラブルシューティング | ユーザーが問題をトラブルシューティングし、修正するのを助けます。 |
94
- | `mixedPurpose` | 複数の目的を果たす | 複数のニーズをカバーするドキュメント。 |
12
+ ## `config.yaml` ファイル
95
13
 
96
- #### `targetAudienceTypes`
97
- このドキュメントを最も頻繁に読むであろう人物を定義します。この選択は、ライティングスタイルと例に影響を与えます。
14
+ すべてのプロジェクトレベルの設定は、プロジェクト内の `.aigne/doc-smith/` ディレクトリにある `config.yaml` という名前のファイルに保存されます。`aigne doc init` コマンドは、対話的なプロセスを通じてこのファイルを作成します。また、いつでもテキストエディタでこのファイルを手動で変更して設定を調整することもできます。
98
15
 
99
- | オプション | 名前 | 説明 |
100
- |---|---|---|
101
- | `endUsers` | エンドユーザー(非技術者) | 製品を使用するがコーディングはしない人々。 |
102
- | `developers` | 製品/APIを統合する開発者 | これを自分のプロジェクトに追加するエンジニア。 |
103
- | `devops` | DevOps / SRE / インフラストラクチャチーム | システムの展開、監視、保守を行うチーム。 |
104
- | `decisionMakers`| 技術的な意思決定者 | 実装を評価または計画するアーキテクトやリード。 |
105
- | `supportTeams` | サポートチーム | 他の人が製品を使用するのを助ける人々。 |
106
- | `mixedTechnical`| 混合技術オーディエンス | 開発者、DevOps、その他の技術ユーザー。 |
16
+ 以下は `config.yaml` ファイルの例で、各セクションを説明するコメントが付いています。
107
17
 
108
- #### `readerKnowledgeLevel`
109
- 読者が通常、到着時に何を知っているかを定義します。これにより、どれだけの基礎知識が前提とされるかが調整されます。
110
-
111
- | オプション | 名前 | 説明 |
112
- |---|---|---|
113
- | `completeBeginners` | 完全な初心者で、ゼロから始める | このドメイン/テクノロジーに全く新しい。 |
114
- | `domainFamiliar` | 以前に類似のツールを使用したことがある | 問題領域は知っているが、この特定の解決策には新しい。 |
115
- | `experiencedUsers` | 特定のことをしようとしている専門家 | リファレンスや高度なトピックを必要とする通常のユーザー。 |
116
- | `emergencyTroubleshooting`| 緊急/トラブルシューティング | 何かが壊れており、迅速に修正する必要がある。 |
117
- | `exploringEvaluating` | このツールを他と比較評価している | これが自分のニーズに合うかどうかを理解しようとしている。 |
118
-
119
- #### `documentationDepth`
120
- ドキュメントがどれだけ包括的であるべきかを定義します。
121
-
122
- | オプション | 名前 | 説明 |
123
- |---|---|---|
124
- | `essentialOnly` | 不可欠なもののみ | 80%のユースケースをカバーし、簡潔に保ちます。 |
125
- | `balancedCoverage`| バランスの取れたカバレッジ | 実用的な例を含む適切な深さ [推奨]。 |
126
- | `comprehensive` | 包括的 | すべての機能、エッジケース、高度なシナリオをカバーします。 |
127
- | `aiDecide` | AIに決定させる | コードの複雑さを分析し、適切な深さを提案します。 |
128
-
129
- ### カスタムディレクティブ
130
-
131
- より詳細な制御のために、自由形式の指示を提供できます。
132
-
133
- | パラメータ | 説明 |
134
- |---|---|
135
- | `rules` | 特定のドキュメント生成ルール(例:「常にパフォーマンスベンチマークを含める」)を定義できる複数行の文字列。 |
136
- | `targetAudience`| プリセットで許容されるよりも詳細に特定のターゲットオーディエンスを記述するための複数行の文字列。 |
137
-
138
- ### 言語とパスの設定
139
-
140
- これらの設定は、ローカライゼーションとファイルの場所を制御します。
141
-
142
- | パラメータ | 説明 |
143
- |---|---|
144
- | `locale` | ドキュメントの主要言語(例:`en`、`zh`)。 |
145
- | `translateLanguages` | ドキュメントを翻訳する言語コードのリスト(例:`[ja, fr, es]`)。 |
146
- | `docsDir` | 生成されたドキュメントファイルが保存されるディレクトリ。 |
147
- | `sourcesPath` | DocSmithが分析するソースコードのパスまたはグロブパターンのリスト(例:`['./src', './lib/**/*.js']`)。 |
148
- | `glossary` | 一貫した翻訳を保証するために、プロジェクト固有の用語を含むマークダウンファイル(`@glossary.md`)へのパス。 |
149
-
150
- ## config.yaml の例
151
-
152
- 以下は、完全な設定ファイルの例です。このファイルを直接編集して、いつでも設定を変更できます。
153
-
154
- ```yaml config.yaml の例 icon=logos:yaml
18
+ ```yaml Example config.yaml icon=logos:yaml
155
19
  # ドキュメント公開のためのプロジェクト情報
156
20
  projectName: AIGNE DocSmith
157
- projectDesc: AI駆動のドキュメント生成ツール。
158
- projectLogo: https://docsmith.aigne.io/image-bin/uploads/def424c20bbdb3c77483894fe0e22819.png
21
+ projectDesc: AIGNE DocSmithは、AIGNEフレームワーク上に構築された強力なAI駆動のドキュメント生成ツールです。ソースコードから直接、詳細で構造化された多言語のドキュメント作成を自動化します。
22
+ projectLogo: https://docsmith.aigne.io/image-bin/uploads/9645caf64b4232699982c4d940b03b90.svg
159
23
 
160
24
  # =============================================================================
161
25
  # ドキュメント設定
162
26
  # =============================================================================
163
27
 
164
- # 目的: 読者に達成してもらいたい主な成果は何か?
165
- # オプション: getStarted, completeTasks, findAnswers, understandSystem, solveProblems, mixedPurpose
28
+ # 目的: 読者に達成してもらいたい主な成果は何ですか?
29
+ # 利用可能なオプション(必要に応じてコメントを解除し、変更してください):
30
+ # getStarted - 迅速な開始:新規ユーザーが30分未満でゼロから作業を開始できるように支援します
31
+ # completeTasks - 特定のタスクの完了:一般的なワークフローとユースケースを通じてユーザーをガイドします
32
+ # findAnswers - 迅速な回答の検索:すべての機能とAPIに対して検索可能なリファレンスを提供します
33
+ # understandSystem - システムの理解:システムの仕組み、設計上の決定理由を説明します
34
+ # solveProblems - 問題の解決:ユーザーのトラブルシューティングと問題修正を支援します
35
+ # mixedPurpose - 上記の混合:複数のニーズをカバーする包括的なドキュメント
166
36
  documentPurpose:
37
+ - getStarted
167
38
  - completeTasks
168
- - findAnswers
169
39
 
170
- # 対象読者: これを最も頻繁に読むのは誰か?
171
- # オプション: endUsers, developers, devops, decisionMakers, supportTeams, mixedTechnical
40
+ # 対象読者: 主に誰がこれを読みますか?
41
+ # 利用可能なオプション(必要に応じてコメントを解除し、変更してください):
42
+ # endUsers - エンドユーザー(非技術者):製品を使用するがコーディングはしない人々
43
+ # developers - 統合開発者:これを自分のプロジェクトに追加するエンジニア
44
+ # devops - DevOps/インフラストラクチャ:システムをデプロイ、監視、維持するチーム
45
+ # decisionMakers - 技術的な意思決定者:実装を評価または計画するアーキテクト、リーダー
46
+ # supportTeams - サポートチーム:他者が製品を使用するのを助ける人々
47
+ # mixedTechnical - 混合技術者層:開発者、DevOps、および技術ユーザー
172
48
  targetAudienceTypes:
173
- - developers
174
-
175
- # 読者の知識レベル: 読者は通常、到着時に何を知っているか?
176
- # オプション: completeBeginners, domainFamiliar, experiencedUsers, emergencyTroubleshooting, exploringEvaluating
177
- readerKnowledgeLevel: domainFamiliar
178
-
179
- # ドキュメントの深さ: ドキュメントはどれだけ包括的であるべきか?
180
- # オプション: essentialOnly, balancedCoverage, comprehensive, aiDecide
181
- documentationDepth: balancedCoverage
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
182
67
 
183
68
  # カスタムルール: 特定のドキュメント生成ルールと要件を定義します
184
- rules: |+
185
-
69
+ rules: |
70
+ Avoid using vague or empty words that don't provide measurable or specific details, such as 'intelligently', 'seamlessly', 'comprehensive', or 'high-quality'. Focus on concrete, verifiable facts and information.
71
+ Focus on concrete, verifiable facts and information.
72
+ Must cover all subcommands of DocSmith
186
73
 
187
74
  # 対象読者: 特定の対象読者とその特徴を記述します
188
- targetAudience: |+
189
-
190
-
191
- # 用語集: プロジェクト固有の用語と定義を含むマークダウンファイルへのパス
192
- # glossary: "@glossary.md"
75
+ targetAudience: |
193
76
 
194
- # ドキュメントの主要言語
195
77
  locale: en
196
-
197
- # ドキュメントを翻訳する言語のリスト
198
- # translateLanguages:
199
- # - zh
200
- # - fr
201
-
202
- # 生成されたドキュメントを保存するディレクトリ
203
- docsDir: .aigne/doc-smith/docs
204
-
205
- # 分析するソースコードのパス
206
- sourcesPath:
207
- - ./
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
208
90
  ```
209
91
 
210
- 設定が完了したら、プロジェクトのニーズに合ったドキュメントを作成する準備ができました。次のステップは、生成コマンドを実行することです。
92
+ ## まとめ
93
+
94
+ 設定が完了すると、ツールはプロジェクト、対象読者、ドキュメントの目標を明確に理解し、より正確で関連性の高いコンテンツが生成されます。
211
95
 
212
- ➡️ **次へ:** [ドキュメントの生成](./features-generate-documentation.md)
96
+ プロジェクトの設定を開始するには、[初期設定](./configuration-initial-setup.md) ガイドに進んでください。
@@ -1,212 +1,96 @@
1
- # Configuration Guide
1
+ # Configuration
2
2
 
3
- AIGNE DocSmith's behavior is controlled by a central configuration file, `.aigne/doc-smith/config.yaml`. This file allows you to customize the style, target audience, languages, and structure of your documentation to meet your specific needs.
3
+ Proper configuration is essential for tailoring the documentation generation process to your project's specific needs. AIGNE DocSmith uses a primary configuration file and a command-line interface to manage your settings. This setup ensures that the generated documentation accurately reflects your project's goals, target audience, and structural requirements.
4
4
 
5
- You can create and manage this file using the interactive setup wizard by running `aigne doc init`. For a step-by-step walkthrough, please refer to the [Interactive Setup](./configuration-interactive-setup.md) guide. Alternatively, you can edit the file directly for more granular control.
5
+ This section provides an overview of how to configure the tool. For step-by-step instructions, please refer to the following detailed guides:
6
6
 
7
- The following diagram illustrates the configuration workflow:
8
-
9
- ```d2 Configuration Workflow
10
- direction: down
11
-
12
- User: {
13
- shape: person
14
- }
15
-
16
- CLI: {
17
- label: "Run Command\n'aigne doc init'"
18
- shape: rectangle
19
- }
20
-
21
- Setup-Wizard: {
22
- label: "Interactive Setup Wizard"
23
- shape: rectangle
24
- }
25
-
26
- Config-File: {
27
- label: ".aigne/doc-smith/config.yaml"
28
- shape: rectangle
29
- }
30
-
31
- AIGNE-DocSmith-Engine: {
32
- label: "AIGNE DocSmith Engine"
33
- }
34
-
35
- # Path 1: Interactive Setup (Recommended)
36
- User -> CLI: "Recommended Path"
37
- CLI -> Setup-Wizard: "Launches"
38
- Setup-Wizard -> Config-File: "Creates / Modifies"
39
-
40
- # Path 2: Manual Editing
41
- User -> Config-File: "Alternative Path:\nDirectly Edits"
42
-
43
- # Final Step
44
- Config-File -> AIGNE-DocSmith-Engine: "Configures"
45
- ```
46
-
47
- ## Core Configuration Areas
48
-
49
- Your documentation is shaped by several key areas of configuration. Explore these guides to understand how to fine-tune each aspect of the generation process.
50
-
51
- <x-cards data-columns="2">
52
- <x-card data-title="Interactive Setup" data-icon="lucide:wand-2" data-href="/configuration/interactive-setup">
53
- Learn about the guided wizard that helps you configure your documentation project, including setting recommendations and conflict detection.
54
- </x-card>
55
- <x-card data-title="LLM Setup" data-icon="lucide:brain-circuit" data-href="/configuration/llm-setup">
56
- Discover how to connect different AI models, including using the built-in AIGNE Hub which requires no API keys.
57
- </x-card>
58
- <x-card data-title="Language Support" data-icon="lucide:languages" data-href="/configuration/language-support">
59
- See the full list of supported languages and learn how to set a primary language and enable automatic translations.
60
- </x-card>
61
- <x-card data-title="Managing Preferences" data-icon="lucide:sliders-horizontal" data-href="/configuration/preferences">
62
- Understand how DocSmith uses your feedback to create persistent rules and how to manage them via the CLI.
63
- </x-card>
7
+ <x-cards>
8
+ <x-card data-title="Initial Setup" data-icon="lucide:settings-2" data-href="/configuration/initial-setup">Learn how to run the interactive setup to create your config.yaml file. This is the recommended first step for any new project.</x-card>
9
+ <x-card data-title="Managing Preferences" data-icon="lucide:list-checks" data-href="/configuration/managing-preferences">Understand how to view, enable, disable, or delete saved preferences to refine the documentation generation process over time.</x-card>
64
10
  </x-cards>
65
11
 
66
- ## Parameter Reference
67
-
68
- The `config.yaml` file contains several key-value pairs that control the documentation output. Below is a detailed reference for each parameter.
69
-
70
- ### Project Information
71
-
72
- These settings provide basic context about your project, which is used when publishing the documentation.
73
-
74
- | Parameter | Description |
75
- |---|---|
76
- | `projectName` | The name of your project. Detected from `package.json` if available. |
77
- | `projectDesc` | A short description of your project. Detected from `package.json`. |
78
- | `projectLogo` | A path or URL to your project's logo image. |
79
-
80
- ### Documentation Strategy
81
-
82
- These parameters define the tone, style, and depth of the generated content.
83
-
84
- #### `documentPurpose`
85
- Defines the main outcome you want readers to achieve. This setting influences the overall structure and focus of the documentation.
12
+ ## The `config.yaml` File
86
13
 
87
- | Option | Name | Description |
88
- |---|---|---|
89
- | `getStarted` | Get started quickly | Help new users go from zero to working in <30 minutes. |
90
- | `completeTasks` | Complete specific tasks | Guide users through common workflows and use cases. |
91
- | `findAnswers` | Find answers fast | Provide searchable reference for all features and APIs. |
92
- | `understandSystem`| Understand the system | Explain how it works and why design decisions were made. |
93
- | `solveProblems` | Troubleshoot common issues | Help users troubleshoot and fix issues. |
94
- | `mixedPurpose` | Serve multiple purposes | Documentation covering multiple needs. |
14
+ All project-level settings are stored in a file named `config.yaml`, located in the `.aigne/doc-smith/` directory within your project. The `aigne doc init` command creates this file for you through an interactive process. You can also modify this file manually with a text editor to adjust settings at any time.
95
15
 
96
- #### `targetAudienceTypes`
97
- Defines who will be reading this documentation most often. This choice affects the writing style and examples.
98
-
99
- | Option | Name | Description |
100
- |---|---|---|
101
- | `endUsers` | End users (non-technical) | People who use the product but don't code. |
102
- | `developers` | Developers integrating your product/API | Engineers adding this to their projects. |
103
- | `devops` | DevOps / SRE / Infrastructure teams | Teams deploying, monitoring, and maintaining systems. |
104
- | `decisionMakers`| Technical decision makers | Architects or leads evaluating or planning implementation. |
105
- | `supportTeams` | Support teams | People helping others use the product. |
106
- | `mixedTechnical`| Mixed technical audience | Developers, DevOps, and other technical users. |
107
-
108
- #### `readerKnowledgeLevel`
109
- Defines what readers typically know when they arrive. This adjusts how much foundational knowledge is assumed.
110
-
111
- | Option | Name | Description |
112
- |---|---|---|
113
- | `completeBeginners` | Is a total beginner, starting from scratch | New to this domain/technology entirely. |
114
- | `domainFamiliar` | Has used similar tools before | Knows the problem space, but new to this specific solution. |
115
- | `experiencedUsers` | Is an expert trying to do something specific | Regular users needing reference or advanced topics. |
116
- | `emergencyTroubleshooting`| Emergency/troubleshooting | Something is broken and needs to be fixed quickly. |
117
- | `exploringEvaluating` | Is evaluating this tool against others | Trying to understand if this fits their needs. |
118
-
119
- #### `documentationDepth`
120
- Defines how comprehensive the documentation should be.
121
-
122
- | Option | Name | Description |
123
- |---|---|---|
124
- | `essentialOnly` | Essential only | Cover the 80% use cases, keeping it concise. |
125
- | `balancedCoverage`| Balanced coverage | Good depth with practical examples [RECOMMENDED]. |
126
- | `comprehensive` | Comprehensive | Cover all features, edge cases, and advanced scenarios. |
127
- | `aiDecide` | Let AI decide | Analyze code complexity and suggest appropriate depth. |
128
-
129
- ### Custom Directives
130
-
131
- For more granular control, you can provide free-text instructions.
132
-
133
- | Parameter | Description |
134
- |---|---|
135
- | `rules` | A multi-line string where you can define specific documentation generation rules (e.g., "Always include performance benchmarks"). |
136
- | `targetAudience`| A multi-line string to describe your specific target audience in more detail than the presets allow. |
137
-
138
- ### Language and Path Configuration
139
-
140
- These settings control localization and file locations.
141
-
142
- | Parameter | Description |
143
- |---|---|
144
- | `locale` | The primary language for the documentation (e.g., `en`, `zh`). |
145
- | `translateLanguages` | A list of language codes to translate the documentation into (e.g., `[ja, fr, es]`). |
146
- | `docsDir` | The directory where generated documentation files will be saved. |
147
- | `sourcesPath` | A list of source code paths or glob patterns for DocSmith to analyze (e.g., `['./src', './lib/**/*.js']`). |
148
- | `glossary` | Path to a markdown file (`@glossary.md`) containing project-specific terms to ensure consistent translations. |
149
-
150
- ## Example `config.yaml`
151
-
152
- Here is an example of a complete configuration file. You can edit this file directly to change settings at any time.
16
+ Below is an example of a `config.yaml` file, with comments explaining each section.
153
17
 
154
18
  ```yaml Example config.yaml icon=logos:yaml
155
19
  # Project information for documentation publishing
156
20
  projectName: AIGNE DocSmith
157
- projectDesc: An AI-driven documentation generation tool.
158
- projectLogo: https://docsmith.aigne.io/image-bin/uploads/def424c20bbdb3c77483894fe0e22819.png
21
+ projectDesc: AIGNE DocSmith is a powerful, AI-driven documentation generation tool built on the AIGNE Framework. It automates the creation of detailed, structured, and multi-language documentation directly from your source code.
22
+ projectLogo: https://docsmith.aigne.io/image-bin/uploads/9645caf64b4232699982c4d940b03b90.svg
159
23
 
160
24
  # =============================================================================
161
25
  # Documentation Configuration
162
26
  # =============================================================================
163
27
 
164
- # Purpose: What is the main outcome you want readers to achieve?
165
- # Options: getStarted, completeTasks, findAnswers, understandSystem, solveProblems, mixedPurpose
28
+ # Purpose: What's the main outcome you want readers to achieve?
29
+ # Available options (uncomment and modify as needed):
30
+ # getStarted - Get started quickly: Help new users go from zero to working in <30 minutes
31
+ # completeTasks - Complete specific tasks: Guide users through common workflows and use cases
32
+ # findAnswers - Find answers fast: Provide searchable reference for all features and APIs
33
+ # understandSystem - Understand the system: Explain how it works, why design decisions were made
34
+ # solveProblems - Solve problems: Help users troubleshoot and fix issues
35
+ # mixedPurpose - Mix of above: Comprehensive documentation covering multiple needs
166
36
  documentPurpose:
37
+ - getStarted
167
38
  - completeTasks
168
- - findAnswers
169
39
 
170
40
  # Target Audience: Who will be reading this most often?
171
- # Options: endUsers, developers, devops, decisionMakers, supportTeams, mixedTechnical
41
+ # Available options (uncomment and modify as needed):
42
+ # endUsers - End users (non-technical): People who use the product but don't code
43
+ # developers - Developers integrating: Engineers adding this to their projects
44
+ # devops - DevOps/Infrastructure: Teams deploying, monitoring, maintaining systems
45
+ # decisionMakers - Technical decision makers: Architects, leads evaluating or planning implementation
46
+ # supportTeams - Support teams: People helping others use the product
47
+ # mixedTechnical - Mixed technical audience: Developers, DevOps, and technical users
172
48
  targetAudienceTypes:
173
- - developers
49
+ - endUsers
174
50
 
175
51
  # Reader Knowledge Level: What do readers typically know when they arrive?
176
- # Options: completeBeginners, domainFamiliar, experiencedUsers, emergencyTroubleshooting, exploringEvaluating
177
- readerKnowledgeLevel: domainFamiliar
52
+ # Available options (uncomment and modify as needed):
53
+ # completeBeginners - Complete beginners: New to this domain/technology entirely
54
+ # domainFamiliar - Domain-familiar, tool-new: Know the problem space, new to this specific solution
55
+ # experiencedUsers - Experienced users: Regular users needing reference/advanced topics
56
+ # emergencyTroubleshooting - Emergency/troubleshooting: Something's broken, need to fix it quickly
57
+ # exploringEvaluating - Exploring/evaluating: Trying to understand if this fits their needs
58
+ readerKnowledgeLevel: completeBeginners
178
59
 
179
60
  # Documentation Depth: How comprehensive should the documentation be?
180
- # Options: essentialOnly, balancedCoverage, comprehensive, aiDecide
181
- documentationDepth: balancedCoverage
61
+ # Available options (uncomment and modify as needed):
62
+ # essentialOnly - Essential only: Cover the 80% use cases, keep it concise
63
+ # balancedCoverage - Balanced coverage: Good depth with practical examples [RECOMMENDED]
64
+ # comprehensive - Comprehensive: Cover all features, edge cases, and advanced scenarios
65
+ # aiDecide - Let AI decide: Analyze code complexity and suggest appropriate depth
66
+ documentationDepth: comprehensive
182
67
 
183
68
  # Custom Rules: Define specific documentation generation rules and requirements
184
- rules: |+
185
-
69
+ rules: |
70
+ Avoid using vague or empty words that don't provide measurable or specific details, such as 'intelligently', 'seamlessly', 'comprehensive', or 'high-quality'. Focus on concrete, verifiable facts and information.
71
+ Focus on concrete, verifiable facts and information.
72
+ Must cover all subcommands of DocSmith
186
73
 
187
74
  # Target Audience: Describe your specific target audience and their characteristics
188
- targetAudience: |+
189
-
190
-
191
- # Glossary: Path to markdown file containing project-specific terms and definitions
192
- # glossary: "@glossary.md"
75
+ targetAudience: |
193
76
 
194
- # Primary language for the documentation
195
77
  locale: en
196
-
197
- # List of languages to translate the documentation into
198
- # translateLanguages:
199
- # - zh
200
- # - fr
201
-
202
- # Directory to save generated documentation
203
- docsDir: .aigne/doc-smith/docs
204
-
205
- # Source code paths to analyze
206
- sourcesPath:
207
- - ./
78
+ translateLanguages:
79
+ - zh
80
+ - zh-TW
81
+ - ja
82
+ docsDir: ./docs # Directory to save generated documentation
83
+ sourcesPath: # Source code paths to analyze
84
+ - ./README.md
85
+ - ./CHANGELOG.md
86
+ - ./aigne.yaml
87
+ - ./agents
88
+ - ./media.md
89
+ - ./.aigne/doc-smith/config.yaml
208
90
  ```
209
91
 
210
- With your configuration set, you are ready to create documentation that matches your project's needs. The next step is to run the generation command.
92
+ ## Summary
93
+
94
+ With your configuration in place, the tool will have a clear understanding of your project, audience, and documentation goals, resulting in more accurate and relevant content.
211
95
 
212
- ➡️ **Next:** [Generate Documentation](./features-generate-documentation.md)
96
+ To begin setting up your project, proceed to the [Initial Setup](./configuration-initial-setup.md) guide.