@aigne/doc-smith 0.8.12-beta.8 → 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.
Files changed (264) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/agents/publish/index.yaml +4 -0
  3. package/agents/publish/publish-docs.mjs +77 -5
  4. package/agents/publish/translate-meta.mjs +103 -0
  5. package/agents/update/generate-document.yaml +30 -28
  6. package/agents/update/update-document-detail.yaml +3 -1
  7. package/agents/utils/update-branding.mjs +69 -0
  8. package/package.json +16 -2
  9. package/prompts/common/document/role-and-personality.md +3 -1
  10. package/prompts/detail/d2-diagram/guide.md +7 -1
  11. package/prompts/detail/d2-diagram/user-prompt.md +3 -0
  12. package/prompts/detail/generate/system-prompt.md +6 -7
  13. package/prompts/detail/generate/user-prompt.md +12 -3
  14. package/prompts/detail/update/user-prompt.md +0 -2
  15. package/prompts/structure/update/user-prompt.md +0 -4
  16. package/utils/file-utils.mjs +69 -24
  17. package/utils/markdown-checker.mjs +0 -20
  18. package/utils/request.mjs +7 -0
  19. package/utils/upload-files.mjs +231 -0
  20. package/utils/utils.mjs +11 -1
  21. package/.aigne/doc-smith/config.yaml +0 -77
  22. package/.aigne/doc-smith/history.yaml +0 -37
  23. package/.aigne/doc-smith/media-description.yaml +0 -91
  24. package/.aigne/doc-smith/output/structure-plan.json +0 -162
  25. package/.aigne/doc-smith/preferences.yml +0 -97
  26. package/.aigne/doc-smith/upload-cache.yaml +0 -1830
  27. package/.github/PULL_REQUEST_TEMPLATE.md +0 -28
  28. package/.github/workflows/ci.yml +0 -54
  29. package/.github/workflows/create-release-pr.yaml +0 -21
  30. package/.github/workflows/publish-docs.yml +0 -65
  31. package/.github/workflows/release.yml +0 -49
  32. package/.github/workflows/reviewer.yml +0 -54
  33. package/.release-please-manifest.json +0 -3
  34. package/RELEASE.md +0 -9
  35. package/assets/screenshots/doc-complete-setup.png +0 -0
  36. package/assets/screenshots/doc-generate-docs.png +0 -0
  37. package/assets/screenshots/doc-generate.png +0 -0
  38. package/assets/screenshots/doc-generated-successfully.png +0 -0
  39. package/assets/screenshots/doc-publish.png +0 -0
  40. package/assets/screenshots/doc-regenerate.png +0 -0
  41. package/assets/screenshots/doc-translate-langs.png +0 -0
  42. package/assets/screenshots/doc-translate.png +0 -0
  43. package/assets/screenshots/doc-update.png +0 -0
  44. package/biome.json +0 -73
  45. package/codecov.yml +0 -15
  46. package/docs/_sidebar.md +0 -15
  47. package/docs/configuration-initial-setup.ja.md +0 -179
  48. package/docs/configuration-initial-setup.md +0 -198
  49. package/docs/configuration-initial-setup.zh-TW.md +0 -179
  50. package/docs/configuration-initial-setup.zh.md +0 -179
  51. package/docs/configuration-managing-preferences.ja.md +0 -100
  52. package/docs/configuration-managing-preferences.md +0 -100
  53. package/docs/configuration-managing-preferences.zh-TW.md +0 -100
  54. package/docs/configuration-managing-preferences.zh.md +0 -100
  55. package/docs/configuration.ja.md +0 -69
  56. package/docs/configuration.md +0 -69
  57. package/docs/configuration.zh-TW.md +0 -69
  58. package/docs/configuration.zh.md +0 -69
  59. package/docs/getting-started.ja.md +0 -107
  60. package/docs/getting-started.md +0 -107
  61. package/docs/getting-started.zh-TW.md +0 -107
  62. package/docs/getting-started.zh.md +0 -107
  63. package/docs/guides-cleaning-up.ja.md +0 -51
  64. package/docs/guides-cleaning-up.md +0 -52
  65. package/docs/guides-cleaning-up.zh-TW.md +0 -51
  66. package/docs/guides-cleaning-up.zh.md +0 -51
  67. package/docs/guides-evaluating-documents.ja.md +0 -66
  68. package/docs/guides-evaluating-documents.md +0 -107
  69. package/docs/guides-evaluating-documents.zh-TW.md +0 -66
  70. package/docs/guides-evaluating-documents.zh.md +0 -66
  71. package/docs/guides-generating-documentation.ja.md +0 -151
  72. package/docs/guides-generating-documentation.md +0 -89
  73. package/docs/guides-generating-documentation.zh-TW.md +0 -151
  74. package/docs/guides-generating-documentation.zh.md +0 -151
  75. package/docs/guides-interactive-chat.ja.md +0 -85
  76. package/docs/guides-interactive-chat.md +0 -93
  77. package/docs/guides-interactive-chat.zh-TW.md +0 -85
  78. package/docs/guides-interactive-chat.zh.md +0 -85
  79. package/docs/guides-managing-history.ja.md +0 -48
  80. package/docs/guides-managing-history.md +0 -53
  81. package/docs/guides-managing-history.zh-TW.md +0 -48
  82. package/docs/guides-managing-history.zh.md +0 -48
  83. package/docs/guides-publishing-your-docs.ja.md +0 -78
  84. package/docs/guides-publishing-your-docs.md +0 -83
  85. package/docs/guides-publishing-your-docs.zh-TW.md +0 -78
  86. package/docs/guides-publishing-your-docs.zh.md +0 -78
  87. package/docs/guides-translating-documentation.ja.md +0 -95
  88. package/docs/guides-translating-documentation.md +0 -100
  89. package/docs/guides-translating-documentation.zh-TW.md +0 -95
  90. package/docs/guides-translating-documentation.zh.md +0 -95
  91. package/docs/guides-updating-documentation.ja.md +0 -77
  92. package/docs/guides-updating-documentation.md +0 -79
  93. package/docs/guides-updating-documentation.zh-TW.md +0 -77
  94. package/docs/guides-updating-documentation.zh.md +0 -77
  95. package/docs/guides.ja.md +0 -32
  96. package/docs/guides.md +0 -32
  97. package/docs/guides.zh-TW.md +0 -32
  98. package/docs/guides.zh.md +0 -32
  99. package/docs/overview.ja.md +0 -61
  100. package/docs/overview.md +0 -61
  101. package/docs/overview.zh-TW.md +0 -61
  102. package/docs/overview.zh.md +0 -61
  103. package/docs/release-notes.ja.md +0 -255
  104. package/docs/release-notes.md +0 -288
  105. package/docs/release-notes.zh-TW.md +0 -255
  106. package/docs/release-notes.zh.md +0 -255
  107. package/prompts/common/afs/afs-tools-usage.md +0 -5
  108. package/prompts/common/afs/use-afs-instruction.md +0 -1
  109. package/release-please-config.json +0 -14
  110. package/tests/agents/chat/chat.test.mjs +0 -46
  111. package/tests/agents/clear/choose-contents.test.mjs +0 -284
  112. package/tests/agents/clear/clear-auth-tokens.test.mjs +0 -268
  113. package/tests/agents/clear/clear-document-config.test.mjs +0 -167
  114. package/tests/agents/clear/clear-document-structure.test.mjs +0 -380
  115. package/tests/agents/clear/clear-generated-docs.test.mjs +0 -222
  116. package/tests/agents/evaluate/code-snippet.test.mjs +0 -163
  117. package/tests/agents/evaluate/fixtures/api-services.md +0 -87
  118. package/tests/agents/evaluate/fixtures/js-sdk.md +0 -94
  119. package/tests/agents/evaluate/generate-report.test.mjs +0 -312
  120. package/tests/agents/generate/check-document-structure.test.mjs +0 -45
  121. package/tests/agents/generate/check-need-generate-structure.test.mjs +0 -279
  122. package/tests/agents/generate/document-structure-tools/add-document.test.mjs +0 -449
  123. package/tests/agents/generate/document-structure-tools/delete-document.test.mjs +0 -410
  124. package/tests/agents/generate/document-structure-tools/generate-sub-structure.test.mjs +0 -277
  125. package/tests/agents/generate/document-structure-tools/move-document.test.mjs +0 -476
  126. package/tests/agents/generate/document-structure-tools/update-document.test.mjs +0 -548
  127. package/tests/agents/generate/generate-structure.test.mjs +0 -45
  128. package/tests/agents/generate/user-review-document-structure.test.mjs +0 -319
  129. package/tests/agents/history/view.test.mjs +0 -97
  130. package/tests/agents/init/init.test.mjs +0 -1657
  131. package/tests/agents/prefs/prefs.test.mjs +0 -431
  132. package/tests/agents/publish/publish-docs.test.mjs +0 -787
  133. package/tests/agents/translate/choose-language.test.mjs +0 -311
  134. package/tests/agents/translate/translate-document.test.mjs +0 -51
  135. package/tests/agents/update/check-document.test.mjs +0 -463
  136. package/tests/agents/update/check-update-is-single.test.mjs +0 -300
  137. package/tests/agents/update/document-tools/update-document-content.test.mjs +0 -329
  138. package/tests/agents/update/generate-document.test.mjs +0 -51
  139. package/tests/agents/update/save-and-translate-document.test.mjs +0 -369
  140. package/tests/agents/update/user-review-document.test.mjs +0 -582
  141. package/tests/agents/utils/action-success.test.mjs +0 -54
  142. package/tests/agents/utils/check-detail-result.test.mjs +0 -743
  143. package/tests/agents/utils/check-feedback-refiner.test.mjs +0 -478
  144. package/tests/agents/utils/choose-docs.test.mjs +0 -406
  145. package/tests/agents/utils/exit.test.mjs +0 -70
  146. package/tests/agents/utils/feedback-refiner.test.mjs +0 -51
  147. package/tests/agents/utils/find-item-by-path.test.mjs +0 -517
  148. package/tests/agents/utils/find-user-preferences-by-path.test.mjs +0 -382
  149. package/tests/agents/utils/format-document-structure.test.mjs +0 -364
  150. package/tests/agents/utils/fs.test.mjs +0 -267
  151. package/tests/agents/utils/load-sources.test.mjs +0 -1470
  152. package/tests/agents/utils/save-docs.test.mjs +0 -109
  153. package/tests/agents/utils/save-output.test.mjs +0 -315
  154. package/tests/agents/utils/save-single-doc.test.mjs +0 -364
  155. package/tests/agents/utils/transform-detail-datasources.test.mjs +0 -320
  156. package/tests/utils/auth-utils.test.mjs +0 -596
  157. package/tests/utils/blocklet.test.mjs +0 -336
  158. package/tests/utils/conflict-detector.test.mjs +0 -355
  159. package/tests/utils/constants.test.mjs +0 -295
  160. package/tests/utils/d2-utils.test.mjs +0 -437
  161. package/tests/utils/deploy.test.mjs +0 -399
  162. package/tests/utils/docs-finder-utils.test.mjs +0 -650
  163. package/tests/utils/file-utils.test.mjs +0 -521
  164. package/tests/utils/history-utils.test.mjs +0 -206
  165. package/tests/utils/kroki-utils.test.mjs +0 -646
  166. package/tests/utils/linter/fixtures/css/keyword-error.css +0 -1
  167. package/tests/utils/linter/fixtures/css/missing-semicolon.css +0 -1
  168. package/tests/utils/linter/fixtures/css/syntax-error.css +0 -1
  169. package/tests/utils/linter/fixtures/css/undeclare-variable.css +0 -1
  170. package/tests/utils/linter/fixtures/css/unused-variable.css +0 -2
  171. package/tests/utils/linter/fixtures/css/valid-code.css +0 -1
  172. package/tests/utils/linter/fixtures/dockerfile/keyword-error.dockerfile +0 -1
  173. package/tests/utils/linter/fixtures/dockerfile/missing-semicolon.dockerfile +0 -2
  174. package/tests/utils/linter/fixtures/dockerfile/syntax-error.dockerfile +0 -2
  175. package/tests/utils/linter/fixtures/dockerfile/undeclare-variable.dockerfile +0 -1
  176. package/tests/utils/linter/fixtures/dockerfile/unused-variable.dockerfile +0 -1
  177. package/tests/utils/linter/fixtures/dockerfile/valid-code.dockerfile +0 -2
  178. package/tests/utils/linter/fixtures/go/keyword-error.go +0 -5
  179. package/tests/utils/linter/fixtures/go/missing-semicolon.go +0 -5
  180. package/tests/utils/linter/fixtures/go/syntax-error.go +0 -6
  181. package/tests/utils/linter/fixtures/go/undeclare-variable.go +0 -5
  182. package/tests/utils/linter/fixtures/go/unused-variable.go +0 -5
  183. package/tests/utils/linter/fixtures/go/valid-code.go +0 -7
  184. package/tests/utils/linter/fixtures/js/keyword-error.js +0 -3
  185. package/tests/utils/linter/fixtures/js/missing-semicolon.js +0 -6
  186. package/tests/utils/linter/fixtures/js/syntax-error.js +0 -4
  187. package/tests/utils/linter/fixtures/js/undeclare-variable.js +0 -3
  188. package/tests/utils/linter/fixtures/js/unused-variable.js +0 -7
  189. package/tests/utils/linter/fixtures/js/valid-code.js +0 -15
  190. package/tests/utils/linter/fixtures/json/keyword-error.json +0 -1
  191. package/tests/utils/linter/fixtures/json/missing-semicolon.json +0 -1
  192. package/tests/utils/linter/fixtures/json/syntax-error.json +0 -1
  193. package/tests/utils/linter/fixtures/json/undeclare-variable.json +0 -1
  194. package/tests/utils/linter/fixtures/json/unused-variable.json +0 -1
  195. package/tests/utils/linter/fixtures/json/valid-code.json +0 -1
  196. package/tests/utils/linter/fixtures/jsx/keyword-error.jsx +0 -5
  197. package/tests/utils/linter/fixtures/jsx/missing-semicolon.jsx +0 -5
  198. package/tests/utils/linter/fixtures/jsx/syntax-error.jsx +0 -5
  199. package/tests/utils/linter/fixtures/jsx/undeclare-variable.jsx +0 -5
  200. package/tests/utils/linter/fixtures/jsx/unused-variable.jsx +0 -4
  201. package/tests/utils/linter/fixtures/jsx/valid-code.jsx +0 -5
  202. package/tests/utils/linter/fixtures/python/keyword-error.py +0 -3
  203. package/tests/utils/linter/fixtures/python/missing-semicolon.py +0 -2
  204. package/tests/utils/linter/fixtures/python/syntax-error.py +0 -3
  205. package/tests/utils/linter/fixtures/python/undeclare-variable.py +0 -3
  206. package/tests/utils/linter/fixtures/python/unused-variable.py +0 -6
  207. package/tests/utils/linter/fixtures/python/valid-code.py +0 -12
  208. package/tests/utils/linter/fixtures/ruby/keyword-error.rb +0 -2
  209. package/tests/utils/linter/fixtures/ruby/missing-semicolon.rb +0 -1
  210. package/tests/utils/linter/fixtures/ruby/syntax-error.rb +0 -2
  211. package/tests/utils/linter/fixtures/ruby/undeclare-variable.rb +0 -1
  212. package/tests/utils/linter/fixtures/ruby/unused-variable.rb +0 -2
  213. package/tests/utils/linter/fixtures/ruby/valid-code.rb +0 -1
  214. package/tests/utils/linter/fixtures/sass/keyword-error.sass +0 -2
  215. package/tests/utils/linter/fixtures/sass/missing-semicolon.sass +0 -3
  216. package/tests/utils/linter/fixtures/sass/syntax-error.sass +0 -3
  217. package/tests/utils/linter/fixtures/sass/undeclare-variable.sass +0 -2
  218. package/tests/utils/linter/fixtures/sass/unused-variable.sass +0 -4
  219. package/tests/utils/linter/fixtures/sass/valid-code.sass +0 -2
  220. package/tests/utils/linter/fixtures/scss/keyword-error.scss +0 -1
  221. package/tests/utils/linter/fixtures/scss/missing-semicolon.scss +0 -1
  222. package/tests/utils/linter/fixtures/scss/syntax-error.scss +0 -1
  223. package/tests/utils/linter/fixtures/scss/undeclare-variable.scss +0 -1
  224. package/tests/utils/linter/fixtures/scss/unused-variable.scss +0 -2
  225. package/tests/utils/linter/fixtures/scss/valid-code.scss +0 -1
  226. package/tests/utils/linter/fixtures/shell/keyword-error.sh +0 -5
  227. package/tests/utils/linter/fixtures/shell/missing-semicolon.sh +0 -3
  228. package/tests/utils/linter/fixtures/shell/syntax-error.sh +0 -4
  229. package/tests/utils/linter/fixtures/shell/undeclare-variable.sh +0 -3
  230. package/tests/utils/linter/fixtures/shell/unused-variable.sh +0 -4
  231. package/tests/utils/linter/fixtures/shell/valid-code.sh +0 -3
  232. package/tests/utils/linter/fixtures/ts/keyword-error.ts +0 -1
  233. package/tests/utils/linter/fixtures/ts/missing-semicolon.ts +0 -1
  234. package/tests/utils/linter/fixtures/ts/syntax-error.ts +0 -1
  235. package/tests/utils/linter/fixtures/ts/undeclare-variable.ts +0 -1
  236. package/tests/utils/linter/fixtures/ts/unused-variable.ts +0 -3
  237. package/tests/utils/linter/fixtures/ts/valid-code.ts +0 -3
  238. package/tests/utils/linter/fixtures/tsx/keyword-error.tsx +0 -5
  239. package/tests/utils/linter/fixtures/tsx/missing-semicolon.tsx +0 -5
  240. package/tests/utils/linter/fixtures/tsx/syntax-error.tsx +0 -5
  241. package/tests/utils/linter/fixtures/tsx/undeclare-variable.tsx +0 -6
  242. package/tests/utils/linter/fixtures/tsx/unused-variable.tsx +0 -6
  243. package/tests/utils/linter/fixtures/tsx/valid-code.tsx +0 -5
  244. package/tests/utils/linter/fixtures/vue/keyword-error.vue +0 -6
  245. package/tests/utils/linter/fixtures/vue/missing-semicolon.vue +0 -6
  246. package/tests/utils/linter/fixtures/vue/syntax-error.vue +0 -6
  247. package/tests/utils/linter/fixtures/vue/undeclare-variable.vue +0 -6
  248. package/tests/utils/linter/fixtures/vue/unused-variable.vue +0 -7
  249. package/tests/utils/linter/fixtures/vue/valid-code.vue +0 -6
  250. package/tests/utils/linter/fixtures/yaml/keyword-error.yml +0 -1
  251. package/tests/utils/linter/fixtures/yaml/missing-semicolon.yml +0 -2
  252. package/tests/utils/linter/fixtures/yaml/syntax-error.yml +0 -1
  253. package/tests/utils/linter/fixtures/yaml/undeclare-variable.yml +0 -1
  254. package/tests/utils/linter/fixtures/yaml/unused-variable.yml +0 -2
  255. package/tests/utils/linter/fixtures/yaml/valid-code.yml +0 -3
  256. package/tests/utils/linter/index.test.mjs +0 -440
  257. package/tests/utils/linter/scan-results.mjs +0 -42
  258. package/tests/utils/load-config.test.mjs +0 -141
  259. package/tests/utils/markdown/index.test.mjs +0 -478
  260. package/tests/utils/mermaid-validator.test.mjs +0 -541
  261. package/tests/utils/mock-chat-model.mjs +0 -12
  262. package/tests/utils/preferences-utils.test.mjs +0 -465
  263. package/tests/utils/save-value-to-config.test.mjs +0 -483
  264. package/tests/utils/utils.test.mjs +0 -941
@@ -1,107 +0,0 @@
1
- # はじめに
2
-
3
- このガイドでは、AIGNE DocSmithをインストールし、最初のドキュメント一式を生成するための手順をステップバイステップで説明します。このプロセスは分かりやすいように設計されており、数分で完了できます。
4
-
5
- ## 前提条件
6
-
7
- インストールを進める前に、お使いのシステムが以下の要件を満たしていることを確認してください。
8
-
9
- * **Node.js**: バージョン20以降が必要です。DocSmithはNode Package Manager (npm) を使用してインストールされ、これはNode.jsのインストールに含まれています。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)の一部として配布されます。インストールプロセスは、2つの簡単なステップで構成されています。
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
- このコマンドはnpmレジストリからパッケージをダウンロードしてインストールし、ターミナルのどのディレクトリからでも`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は一度限りの対話式セットアッププロセスを開始します。一連の質問を通じて、ドキュメントの主な目的、対象読者、言語などの設定を行います。
60
-
61
- ![対話式セットアッププロセスのスクリーンショット](../assets/screenshots/doc-complete-setup.png)
62
-
63
- 回答は`.aigne/doc-smith`ディレクトリにある`config.yaml`ファイルに保存されます。このファイルは、必要に応じて後で手動で編集できます。
64
-
65
- ### ステップ4:生成を待つ
66
-
67
- セットアップが完了すると、DocSmithは自動的に以下のアクションを実行します。
68
-
69
- 1. **コードベースの分析**: ソースファイルをスキャンして、プロジェクトの構造、機能、ロジックを理解します。
70
- 2. **構造の計画**: セクションやトピックを概説し、ドキュメントの論理的な計画を作成します。
71
- 3. **コンテンツの生成**: 分析と設定に基づいてドキュメントのコンテンツを作成します。
72
-
73
- 完了すると確認メッセージが表示され、生成されたファイルはセットアップ時に指定された出力ディレクトリ(デフォルトでは`.aigne/doc-smith/docs`)に配置されます。
74
-
75
- ![生成成功メッセージのスクリーンショット](../assets/screenshots/doc-generated-successfully.png)
76
-
77
- ## 全コマンドの確認
78
-
79
- DocSmithは、ドキュメントのライフサイクル全体を管理するための一連のコマンドを提供します。以下の表は、利用可能なすべてのコマンドとその機能の一覧です。
80
-
81
- | コマンド | 説明 |
82
- | :---------- | :------------------------------------------------------------------------------------------------------------ |
83
- | `generate` | コードベースを分析し、設定に基づいてドキュメント一式を生成します。 |
84
- | `update` | 既存のドキュメントの特定の部分を対話形式で選択し、多くの場合新しいフィードバックを加えて再生成します。 |
85
- | `translate` | 既存のドキュメントを、`zh`や`ja`など、サポートされている12言語のいずれかに翻訳します。 |
86
- | `publish` | 生成されたドキュメントをライブプラットフォームに公開し、URL経由でアクセスできるようにします。 |
87
- | `init` | 対話式のセットアップウィザードを開始して、`config.yaml`設定ファイルを作成または上書きします。 |
88
- | `prefs` | `config.yaml`ファイルから現在の設定を表示します。 |
89
-
90
- ## 次のステップ
91
-
92
- 最初のドキュメント一式の生成が成功しました。ドキュメントを管理し、強化するための一般的な次のステップは以下の通りです。
93
-
94
- <x-cards data-columns="2">
95
- <x-card data-title="ドキュメントの更新" data-icon="lucide:refresh-cw" data-href="/guides/updating-documentation">
96
- コードの変更や新しい要件に基づいて、ドキュメントの特定のセクションを修正または再生成します。
97
- </x-card>
98
- <x-card data-title="ドキュメントの翻訳" data-icon="lucide:languages" data-href="/guides/translating-documentation">
99
- ドキュメントを中国語、スペイン語、ドイツ語など、サポートされている12言語のいずれかに翻訳します。
100
- </x-card>
101
- <x-card data-title="ドキュメントの公開" data-icon="lucide:rocket" data-href="/guides/publishing-your-docs">
102
- ドキュメントをオンラインで利用可能にし、チームや一般の人がアクセスできるようにします。
103
- </x-card>
104
- <x-card data-title="設定の確認" data-icon="lucide:settings" data-href="/configuration/initial-setup">
105
- 初期設定時に作成されたconfig.yamlファイルを確認・修正して、設定を調整します。
106
- </x-card>
107
- </x-cards>
@@ -1,107 +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 in a few minutes.
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). The installation process consists of two simple steps.
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 from the npm registry, making the `aigne` command available from any directory in your terminal.
26
-
27
- ### Step 2: Verify the Installation
28
-
29
- After the installation is complete, you can 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 their options, which confirms 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 from analysis to content generation.
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 guided through a series of questions to configure your documentation preferences, such as its primary purpose, target audience, and language.
60
-
61
- ![Screenshot of the interactive setup process](../assets/screenshots/doc-complete-setup.png)
62
-
63
- Your answers are saved to a `config.yaml` file located in the `.aigne/doc-smith` directory. This file can be manually edited later if needed.
64
-
65
- ### Step 4: Await Generation
66
-
67
- Once the setup is complete, DocSmith will perform the following actions automatically:
68
-
69
- 1. **Analyze Codebase**: It scans your source files to understand the project's structure, functions, and logic.
70
- 2. **Plan Structure**: It creates a logical plan for the documentation, outlining sections and topics.
71
- 3. **Generate Content**: It writes the documentation content based on the analysis and your configuration.
72
-
73
- Upon completion, a confirmation message will appear, and the generated files will be located in the output directory specified during setup (by default, `.aigne/doc-smith/docs`).
74
-
75
- ![Screenshot of the success message after generation](../assets/screenshots/doc-generated-successfully.png)
76
-
77
- ## Exploring All Commands
78
-
79
- DocSmith provides a set of commands to manage the full lifecycle of your documentation. The table below lists all available commands and their functions.
80
-
81
- | Command | Description |
82
- | :---------- | :------------------------------------------------------------------------------------------------------------ |
83
- | `generate` | Analyzes the codebase and generates a complete set of documentation based on the configuration. |
84
- | `update` | Interactively selects and regenerates specific parts of existing documentation, often with new feedback. |
85
- | `translate` | Translates existing documentation into one or more of the 12 supported languages, such as `zh` or `ja`. |
86
- | `publish` | Publishes the generated documentation to a live platform, making it accessible via a URL. |
87
- | `init` | Starts the interactive setup wizard to create or overwrite the `config.yaml` configuration file. |
88
- | `prefs` | Displays the current configuration settings from the `config.yaml` file. |
89
-
90
- ## What's Next?
91
-
92
- You have successfully generated your first set of documents. Here are the common next steps to manage and enhance your documentation:
93
-
94
- <x-cards data-columns="2">
95
- <x-card data-title="Update Documentation" data-icon="lucide:refresh-cw" data-href="/guides/updating-documentation">
96
- Modify or regenerate specific sections of your documentation based on code changes or new requirements.
97
- </x-card>
98
- <x-card data-title="Translate Documentation" data-icon="lucide:languages" data-href="/guides/translating-documentation">
99
- Translate your documents into any of the 12 supported languages, such as Chinese, Spanish, or German.
100
- </x-card>
101
- <x-card data-title="Publish Your Docs" data-icon="lucide:rocket" data-href="/guides/publishing-your-docs">
102
- Make your documentation available online for your team or the public.
103
- </x-card>
104
- <x-card data-title="Review Configuration" data-icon="lucide:settings" data-href="/configuration/initial-setup">
105
- Review and modify the config.yaml file that was created during the initial setup to adjust your preferences.
106
- </x-card>
107
- </x-cards>
@@ -1,107 +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
- 此指令會從 npm 登錄檔下載並安裝套件,讓 `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 將啟動一次性的互動式設定流程。系統將引導您回答一系列問題,以設定您的文件偏好,例如其主要目的、目標受眾和語言。
60
-
61
- ![互動式設定過程的螢幕截圖](../assets/screenshots/doc-complete-setup.png)
62
-
63
- 您的回答會儲存到位於 `.aigne/doc-smith` 目錄中的 `config.yaml` 檔案。如果需要,之後可以手動編輯此檔案。
64
-
65
- ### 步驟 4:等待產生
66
-
67
- 設定完成後,DocSmith 將自動執行以下操作:
68
-
69
- 1. **分析程式碼庫**:掃描您的原始碼檔案,以了解專案的結構、功能和邏輯。
70
- 2. **規劃結構**:為文件建立一個邏輯計畫,概述章節和主題。
71
- 3. **產生內容**:根據分析和您的設定撰寫文件內容。
72
-
73
- 完成後,將會出現一則確認訊息,且產生的檔案將位於設定時指定的輸出目錄中(預設為 `.aigne/doc-smith/docs`)。
74
-
75
- ![產生成功後顯示的成功訊息螢幕截圖](../assets/screenshots/doc-generated-successfully.png)
76
-
77
- ## 探索所有指令
78
-
79
- DocSmith 提供了一組指令來管理您文件的完整生命週期。下表列出了所有可用的指令及其功能。
80
-
81
- | Command | Description |
82
- | :---------- | :------------------------------------------------------------------------------------------------------------ |
83
- | `generate` | 分析程式碼庫並根據設定產生一套完整的文件。 |
84
- | `update` | 以互動方式選取並重新產生現有文件的特定部分,通常會附上新的回饋。 |
85
- | `translate` | 將現有文件翻譯成 12 種支援語言中的一種或多種,例如 `zh` 或 `ja`。 |
86
- | `publish` | 將產生的文件發布到一個線上平台,使其可透過 URL 存取。 |
87
- | `init` | 啟動互動式設定精靈,以建立或覆寫 `config.yaml` 設定檔。 |
88
- | `prefs` | 顯示 `config.yaml` 檔案中的目前設定。 |
89
-
90
- ## 下一步是什麼?
91
-
92
- 您已成功產生第一份文件。以下是管理和增強文件的常見後續步驟:
93
-
94
- <x-cards data-columns="2">
95
- <x-card data-title="更新文件" data-icon="lucide:refresh-cw" data-href="/guides/updating-documentation">
96
- 根據程式碼變更或新需求,修改或重新產生文件的特定部分。
97
- </x-card>
98
- <x-card data-title="翻譯文件" data-icon="lucide:languages" data-href="/guides/translating-documentation">
99
- 將您的文件翻譯成 12 種支援的語言中的任何一種,例如中文、西班牙文或德文。
100
- </x-card>
101
- <x-card data-title="發布您的文件" data-icon="lucide:rocket" data-href="/guides/publishing-your-docs">
102
- 讓您的團隊或大眾可以在線上存取您的文件。
103
- </x-card>
104
- <x-card data-title="檢視設定" data-icon="lucide:settings" data-href="/configuration/initial-setup">
105
- 檢視並修改在初始設定期間建立的 config.yaml 檔案,以調整您的偏好。
106
- </x-card>
107
- </x-cards>
@@ -1,107 +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
- 此命令会从 npm 注册表下载并安装该软件包,使 `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 将启动一次性的交互式设置过程。系统将引导您完成一系列问题,以配置您的文档偏好,例如其主要目的、目标受众和语言。
60
-
61
- ![交互式设置过程的屏幕截图](../assets/screenshots/doc-complete-setup.png)
62
-
63
- 您的回答将保存到位于 `.aigne/doc-smith` 目录中的 `config.yaml` 文件。如果需要,稍后可以手动编辑此文件。
64
-
65
- ### 第 4 步:等待生成
66
-
67
- 设置完成后,DocSmith 将自动执行以下操作:
68
-
69
- 1. **分析代码库**:扫描您的源文件以了解项目的结构、功能和逻辑。
70
- 2. **规划结构**:为文档创建一个逻辑规划,概述各个部分和主题。
71
- 3. **生成内容**:根据分析和您的配置编写文档内容。
72
-
73
- 完成后,将出现一条确认消息,生成的文件将位于设置期间指定的输出目录中(默认为 `.aigne/doc-smith/docs`)。
74
-
75
- ![生成成功后显示成功消息的屏幕截图](../assets/screenshots/doc-generated-successfully.png)
76
-
77
- ## 探索所有命令
78
-
79
- DocSmith 提供了一组命令来管理文档的整个生命周期。下表列出了所有可用命令及其功能。
80
-
81
- | 命令 | 描述 |
82
- | :---------- | :------------------------------------------------------------------------------------------------------------ |
83
- | `generate` | 分析代码库并根据配置生成一整套文档。 |
84
- | `update` | 交互式地选择并重新生成现有文档的特定部分,通常会附带新的反馈。 |
85
- | `translate` | 将现有文档翻译成 12 种支持的语言中的一种或多种,例如 `zh` 或 `ja`。 |
86
- | `publish` | 将生成的文档发布到实时平台,使其可通过 URL 访问。 |
87
- | `init` | 启动交互式设置向导以创建或覆盖 `config.yaml` 配置文件。 |
88
- | `prefs` | 显示 `config.yaml` 文件中的当前配置设置。 |
89
-
90
- ## 后续步骤
91
-
92
- 您已成功生成第一套文档。以下是管理和增强文档的常见后续步骤:
93
-
94
- <x-cards data-columns="2">
95
- <x-card data-title="更新文档" data-icon="lucide:refresh-cw" data-href="/guides/updating-documentation">
96
- 根据代码更改或新要求,修改或重新生成文档的特定部分。
97
- </x-card>
98
- <x-card data-title="翻译文档" data-icon="lucide:languages" data-href="/guides/translating-documentation">
99
- 将您的文档翻译成 12 种支持的语言中的任何一种,例如中文、西班牙语或德语。
100
- </x-card>
101
- <x-card data-title="发布您的文档" data-icon="lucide:rocket" data-href="/guides/publishing-your-docs">
102
- 将您的文档在线提供给您的团队或公众。
103
- </x-card>
104
- <x-card data-title="审阅配置" data-icon="lucide:settings" data-href="/configuration/initial-setup">
105
- 审阅和修改在初始设置期间创建的 config.yaml 文件以调整您的偏好。
106
- </x-card>
107
- </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,52 +0,0 @@
1
- # Cleaning Up
2
-
3
- The `aigne doc clear` command provides a systematic method for removing generated files, cached data, and configuration settings from your project. This is a practical step when you need to reset the documentation workspace, start from a clean state, or resolve issues that may be caused by outdated files.
4
-
5
- ## Interactive Cleaning
6
-
7
- For controlled and precise cleanup, running the command without any arguments is the recommended procedure.
8
-
9
- ```bash
10
- aigne doc clear
11
- ```
12
-
13
- This action initiates an interactive prompt, which lists all available cleanup options. Each option is presented with a clear description of what it does, allowing you to select the exact items for removal. This interactive method prevents the accidental deletion of important data.
14
-
15
- ## Cleanup Options
16
-
17
- The `clear` command can remove several distinct types of data. The following table provides a detailed breakdown of each available option, its function, and the specific files or directories it affects.
18
-
19
- | Option | Description | Files and Directories Affected |
20
- | :--- | :--- | :--- |
21
- | `generatedDocs` | Deletes all generated documents located in the output directory. The documentation structure plan is preserved. | The directory specified by `docsDir` in your configuration. |
22
- | `documentStructure` | Deletes all generated documents and the documentation structure plan. This action resets all documentation content. | The `.aigne/doc-smith/output/structure-plan.json` file and the `docsDir` directory. |
23
- | `documentConfig` | Deletes the project's configuration file. After this action, `aigne doc init` must be run to create a new configuration. | The `.aigne/doc-smith/config.yaml` file. |
24
- | `authTokens` | Removes saved authorization tokens for publishing sites. You will be prompted to select which site authorizations to clear. | The `~/.aigne/doc-smith-connected.yaml` file located in your home directory. |
25
- | `deploymentConfig` | Removes only the `appUrl` setting from your configuration file, leaving other settings intact. | The `.aigne/doc-smith/config.yaml` file. |
26
- | `mediaDescription` | Deletes the cached, AI-generated descriptions for your media files. These will be regenerated during the next documentation build. | The `.aigne/doc-smith/cache/media-description.json` file. |
27
-
28
- ## Non-Interactive Cleaning
29
-
30
- For use in automated scripts or for users who prefer direct command-line operations, you can specify one or more cleanup targets using the `--targets` flag. This bypasses the interactive prompt and executes the cleanup immediately.
31
-
32
- ### Clear a Single Option
33
-
34
- To remove only the generated documents, execute the following command:
35
-
36
- ```bash
37
- aigne doc clear --targets generatedDocs
38
- ```
39
-
40
- ### Clear Multiple Options
41
-
42
- You can provide a space-separated list of target names to remove several items at once. For instance, to delete both the document configuration and the documentation structure, run the command below:
43
-
44
- ```bash
45
- aigne doc clear --targets documentConfig documentStructure
46
- ```
47
-
48
- After clearing the configuration, you can begin a new setup process.
49
-
50
- ---
51
-
52
- For detailed instructions on creating a new configuration, please 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) 指南。