@aigne/doc-smith 0.8.12-beta.7 → 0.8.12-beta.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (284) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/agents/clear/choose-contents.mjs +14 -1
  3. package/agents/clear/clear-media-description.mjs +129 -0
  4. package/agents/clear/index.yaml +3 -1
  5. package/agents/evaluate/code-snippet.mjs +28 -24
  6. package/agents/evaluate/document-structure.yaml +0 -4
  7. package/agents/evaluate/document.yaml +1 -5
  8. package/agents/generate/index.yaml +1 -0
  9. package/agents/init/index.mjs +10 -0
  10. package/agents/media/batch-generate-media-description.yaml +44 -0
  11. package/agents/media/generate-media-description.yaml +47 -0
  12. package/agents/media/load-media-description.mjs +238 -0
  13. package/agents/publish/index.yaml +4 -0
  14. package/agents/publish/publish-docs.mjs +77 -5
  15. package/agents/publish/translate-meta.mjs +103 -0
  16. package/agents/update/generate-document.yaml +30 -28
  17. package/agents/update/index.yaml +1 -0
  18. package/agents/update/update-document-detail.yaml +3 -1
  19. package/agents/utils/load-sources.mjs +103 -53
  20. package/agents/utils/update-branding.mjs +69 -0
  21. package/aigne.yaml +6 -0
  22. package/assets/report-template/report.html +34 -34
  23. package/package.json +17 -2
  24. package/prompts/common/document/role-and-personality.md +3 -1
  25. package/prompts/detail/d2-diagram/guide.md +7 -1
  26. package/prompts/detail/d2-diagram/user-prompt.md +3 -0
  27. package/prompts/detail/generate/system-prompt.md +6 -7
  28. package/prompts/detail/generate/user-prompt.md +12 -3
  29. package/prompts/detail/update/user-prompt.md +0 -2
  30. package/prompts/evaluate/document-structure.md +6 -7
  31. package/prompts/evaluate/document.md +16 -25
  32. package/prompts/media/media-description/system-prompt.md +35 -0
  33. package/prompts/media/media-description/user-prompt.md +8 -0
  34. package/prompts/structure/update/user-prompt.md +0 -4
  35. package/utils/constants/index.mjs +0 -107
  36. package/utils/file-utils.mjs +86 -0
  37. package/utils/markdown-checker.mjs +0 -20
  38. package/utils/request.mjs +7 -0
  39. package/utils/upload-files.mjs +231 -0
  40. package/utils/utils.mjs +11 -1
  41. package/.aigne/doc-smith/config.yaml +0 -77
  42. package/.aigne/doc-smith/history.yaml +0 -37
  43. package/.aigne/doc-smith/output/structure-plan.json +0 -162
  44. package/.aigne/doc-smith/preferences.yml +0 -97
  45. package/.aigne/doc-smith/upload-cache.yaml +0 -1893
  46. package/.github/PULL_REQUEST_TEMPLATE.md +0 -28
  47. package/.github/workflows/ci.yml +0 -54
  48. package/.github/workflows/create-release-pr.yaml +0 -21
  49. package/.github/workflows/publish-docs.yml +0 -65
  50. package/.github/workflows/release.yml +0 -49
  51. package/.github/workflows/reviewer.yml +0 -54
  52. package/.release-please-manifest.json +0 -3
  53. package/RELEASE.md +0 -9
  54. package/assets/screenshots/doc-complete-setup.png +0 -0
  55. package/assets/screenshots/doc-generate-docs.png +0 -0
  56. package/assets/screenshots/doc-generate.png +0 -0
  57. package/assets/screenshots/doc-generated-successfully.png +0 -0
  58. package/assets/screenshots/doc-publish.png +0 -0
  59. package/assets/screenshots/doc-regenerate.png +0 -0
  60. package/assets/screenshots/doc-translate-langs.png +0 -0
  61. package/assets/screenshots/doc-translate.png +0 -0
  62. package/assets/screenshots/doc-update.png +0 -0
  63. package/biome.json +0 -73
  64. package/codecov.yml +0 -15
  65. package/docs/_sidebar.md +0 -15
  66. package/docs/configuration-initial-setup.ja.md +0 -179
  67. package/docs/configuration-initial-setup.md +0 -179
  68. package/docs/configuration-initial-setup.zh-TW.md +0 -179
  69. package/docs/configuration-initial-setup.zh.md +0 -179
  70. package/docs/configuration-managing-preferences.ja.md +0 -100
  71. package/docs/configuration-managing-preferences.md +0 -100
  72. package/docs/configuration-managing-preferences.zh-TW.md +0 -100
  73. package/docs/configuration-managing-preferences.zh.md +0 -100
  74. package/docs/configuration.ja.md +0 -96
  75. package/docs/configuration.md +0 -96
  76. package/docs/configuration.zh-TW.md +0 -96
  77. package/docs/configuration.zh.md +0 -96
  78. package/docs/getting-started.ja.md +0 -88
  79. package/docs/getting-started.md +0 -88
  80. package/docs/getting-started.zh-TW.md +0 -88
  81. package/docs/getting-started.zh.md +0 -88
  82. package/docs/guides-cleaning-up.ja.md +0 -51
  83. package/docs/guides-cleaning-up.md +0 -51
  84. package/docs/guides-cleaning-up.zh-TW.md +0 -51
  85. package/docs/guides-cleaning-up.zh.md +0 -51
  86. package/docs/guides-evaluating-documents.ja.md +0 -66
  87. package/docs/guides-evaluating-documents.md +0 -66
  88. package/docs/guides-evaluating-documents.zh-TW.md +0 -66
  89. package/docs/guides-evaluating-documents.zh.md +0 -66
  90. package/docs/guides-generating-documentation.ja.md +0 -151
  91. package/docs/guides-generating-documentation.md +0 -151
  92. package/docs/guides-generating-documentation.zh-TW.md +0 -151
  93. package/docs/guides-generating-documentation.zh.md +0 -151
  94. package/docs/guides-interactive-chat.ja.md +0 -85
  95. package/docs/guides-interactive-chat.md +0 -85
  96. package/docs/guides-interactive-chat.zh-TW.md +0 -85
  97. package/docs/guides-interactive-chat.zh.md +0 -85
  98. package/docs/guides-managing-history.ja.md +0 -48
  99. package/docs/guides-managing-history.md +0 -48
  100. package/docs/guides-managing-history.zh-TW.md +0 -48
  101. package/docs/guides-managing-history.zh.md +0 -48
  102. package/docs/guides-publishing-your-docs.ja.md +0 -78
  103. package/docs/guides-publishing-your-docs.md +0 -78
  104. package/docs/guides-publishing-your-docs.zh-TW.md +0 -78
  105. package/docs/guides-publishing-your-docs.zh.md +0 -78
  106. package/docs/guides-translating-documentation.ja.md +0 -95
  107. package/docs/guides-translating-documentation.md +0 -95
  108. package/docs/guides-translating-documentation.zh-TW.md +0 -95
  109. package/docs/guides-translating-documentation.zh.md +0 -95
  110. package/docs/guides-updating-documentation.ja.md +0 -77
  111. package/docs/guides-updating-documentation.md +0 -77
  112. package/docs/guides-updating-documentation.zh-TW.md +0 -77
  113. package/docs/guides-updating-documentation.zh.md +0 -77
  114. package/docs/guides.ja.md +0 -32
  115. package/docs/guides.md +0 -32
  116. package/docs/guides.zh-TW.md +0 -32
  117. package/docs/guides.zh.md +0 -32
  118. package/docs/overview.ja.md +0 -61
  119. package/docs/overview.md +0 -61
  120. package/docs/overview.zh-TW.md +0 -61
  121. package/docs/overview.zh.md +0 -61
  122. package/docs/release-notes.ja.md +0 -255
  123. package/docs/release-notes.md +0 -255
  124. package/docs/release-notes.zh-TW.md +0 -255
  125. package/docs/release-notes.zh.md +0 -255
  126. package/media.md +0 -19
  127. package/prompts/common/afs/afs-tools-usage.md +0 -5
  128. package/prompts/common/afs/use-afs-instruction.md +0 -1
  129. package/release-please-config.json +0 -14
  130. package/tests/agents/chat/chat.test.mjs +0 -46
  131. package/tests/agents/clear/choose-contents.test.mjs +0 -284
  132. package/tests/agents/clear/clear-auth-tokens.test.mjs +0 -268
  133. package/tests/agents/clear/clear-document-config.test.mjs +0 -167
  134. package/tests/agents/clear/clear-document-structure.test.mjs +0 -380
  135. package/tests/agents/clear/clear-generated-docs.test.mjs +0 -222
  136. package/tests/agents/evaluate/code-snippet.test.mjs +0 -163
  137. package/tests/agents/evaluate/fixtures/api-services.md +0 -87
  138. package/tests/agents/evaluate/fixtures/js-sdk.md +0 -94
  139. package/tests/agents/evaluate/generate-report.test.mjs +0 -312
  140. package/tests/agents/generate/check-document-structure.test.mjs +0 -45
  141. package/tests/agents/generate/check-need-generate-structure.test.mjs +0 -279
  142. package/tests/agents/generate/document-structure-tools/add-document.test.mjs +0 -449
  143. package/tests/agents/generate/document-structure-tools/delete-document.test.mjs +0 -410
  144. package/tests/agents/generate/document-structure-tools/generate-sub-structure.test.mjs +0 -277
  145. package/tests/agents/generate/document-structure-tools/move-document.test.mjs +0 -476
  146. package/tests/agents/generate/document-structure-tools/update-document.test.mjs +0 -548
  147. package/tests/agents/generate/generate-structure.test.mjs +0 -45
  148. package/tests/agents/generate/user-review-document-structure.test.mjs +0 -319
  149. package/tests/agents/history/view.test.mjs +0 -97
  150. package/tests/agents/init/init.test.mjs +0 -1657
  151. package/tests/agents/prefs/prefs.test.mjs +0 -431
  152. package/tests/agents/publish/publish-docs.test.mjs +0 -787
  153. package/tests/agents/translate/choose-language.test.mjs +0 -311
  154. package/tests/agents/translate/translate-document.test.mjs +0 -51
  155. package/tests/agents/update/check-document.test.mjs +0 -463
  156. package/tests/agents/update/check-update-is-single.test.mjs +0 -300
  157. package/tests/agents/update/document-tools/update-document-content.test.mjs +0 -329
  158. package/tests/agents/update/generate-document.test.mjs +0 -51
  159. package/tests/agents/update/save-and-translate-document.test.mjs +0 -369
  160. package/tests/agents/update/user-review-document.test.mjs +0 -582
  161. package/tests/agents/utils/action-success.test.mjs +0 -54
  162. package/tests/agents/utils/check-detail-result.test.mjs +0 -743
  163. package/tests/agents/utils/check-feedback-refiner.test.mjs +0 -478
  164. package/tests/agents/utils/choose-docs.test.mjs +0 -406
  165. package/tests/agents/utils/exit.test.mjs +0 -70
  166. package/tests/agents/utils/feedback-refiner.test.mjs +0 -51
  167. package/tests/agents/utils/find-item-by-path.test.mjs +0 -517
  168. package/tests/agents/utils/find-user-preferences-by-path.test.mjs +0 -382
  169. package/tests/agents/utils/format-document-structure.test.mjs +0 -364
  170. package/tests/agents/utils/fs.test.mjs +0 -267
  171. package/tests/agents/utils/load-sources.test.mjs +0 -1470
  172. package/tests/agents/utils/save-docs.test.mjs +0 -109
  173. package/tests/agents/utils/save-output.test.mjs +0 -315
  174. package/tests/agents/utils/save-single-doc.test.mjs +0 -364
  175. package/tests/agents/utils/transform-detail-datasources.test.mjs +0 -320
  176. package/tests/utils/auth-utils.test.mjs +0 -596
  177. package/tests/utils/blocklet.test.mjs +0 -336
  178. package/tests/utils/conflict-detector.test.mjs +0 -355
  179. package/tests/utils/constants.test.mjs +0 -295
  180. package/tests/utils/d2-utils.test.mjs +0 -437
  181. package/tests/utils/deploy.test.mjs +0 -399
  182. package/tests/utils/docs-finder-utils.test.mjs +0 -650
  183. package/tests/utils/file-utils.test.mjs +0 -521
  184. package/tests/utils/history-utils.test.mjs +0 -206
  185. package/tests/utils/kroki-utils.test.mjs +0 -646
  186. package/tests/utils/linter/fixtures/css/keyword-error.css +0 -1
  187. package/tests/utils/linter/fixtures/css/missing-semicolon.css +0 -1
  188. package/tests/utils/linter/fixtures/css/syntax-error.css +0 -1
  189. package/tests/utils/linter/fixtures/css/undeclare-variable.css +0 -1
  190. package/tests/utils/linter/fixtures/css/unused-variable.css +0 -2
  191. package/tests/utils/linter/fixtures/css/valid-code.css +0 -1
  192. package/tests/utils/linter/fixtures/dockerfile/keyword-error.dockerfile +0 -1
  193. package/tests/utils/linter/fixtures/dockerfile/missing-semicolon.dockerfile +0 -2
  194. package/tests/utils/linter/fixtures/dockerfile/syntax-error.dockerfile +0 -2
  195. package/tests/utils/linter/fixtures/dockerfile/undeclare-variable.dockerfile +0 -1
  196. package/tests/utils/linter/fixtures/dockerfile/unused-variable.dockerfile +0 -1
  197. package/tests/utils/linter/fixtures/dockerfile/valid-code.dockerfile +0 -2
  198. package/tests/utils/linter/fixtures/go/keyword-error.go +0 -5
  199. package/tests/utils/linter/fixtures/go/missing-semicolon.go +0 -5
  200. package/tests/utils/linter/fixtures/go/syntax-error.go +0 -6
  201. package/tests/utils/linter/fixtures/go/undeclare-variable.go +0 -5
  202. package/tests/utils/linter/fixtures/go/unused-variable.go +0 -5
  203. package/tests/utils/linter/fixtures/go/valid-code.go +0 -7
  204. package/tests/utils/linter/fixtures/js/keyword-error.js +0 -3
  205. package/tests/utils/linter/fixtures/js/missing-semicolon.js +0 -6
  206. package/tests/utils/linter/fixtures/js/syntax-error.js +0 -4
  207. package/tests/utils/linter/fixtures/js/undeclare-variable.js +0 -3
  208. package/tests/utils/linter/fixtures/js/unused-variable.js +0 -7
  209. package/tests/utils/linter/fixtures/js/valid-code.js +0 -15
  210. package/tests/utils/linter/fixtures/json/keyword-error.json +0 -1
  211. package/tests/utils/linter/fixtures/json/missing-semicolon.json +0 -1
  212. package/tests/utils/linter/fixtures/json/syntax-error.json +0 -1
  213. package/tests/utils/linter/fixtures/json/undeclare-variable.json +0 -1
  214. package/tests/utils/linter/fixtures/json/unused-variable.json +0 -1
  215. package/tests/utils/linter/fixtures/json/valid-code.json +0 -1
  216. package/tests/utils/linter/fixtures/jsx/keyword-error.jsx +0 -5
  217. package/tests/utils/linter/fixtures/jsx/missing-semicolon.jsx +0 -5
  218. package/tests/utils/linter/fixtures/jsx/syntax-error.jsx +0 -5
  219. package/tests/utils/linter/fixtures/jsx/undeclare-variable.jsx +0 -5
  220. package/tests/utils/linter/fixtures/jsx/unused-variable.jsx +0 -4
  221. package/tests/utils/linter/fixtures/jsx/valid-code.jsx +0 -5
  222. package/tests/utils/linter/fixtures/python/keyword-error.py +0 -3
  223. package/tests/utils/linter/fixtures/python/missing-semicolon.py +0 -2
  224. package/tests/utils/linter/fixtures/python/syntax-error.py +0 -3
  225. package/tests/utils/linter/fixtures/python/undeclare-variable.py +0 -3
  226. package/tests/utils/linter/fixtures/python/unused-variable.py +0 -6
  227. package/tests/utils/linter/fixtures/python/valid-code.py +0 -12
  228. package/tests/utils/linter/fixtures/ruby/keyword-error.rb +0 -2
  229. package/tests/utils/linter/fixtures/ruby/missing-semicolon.rb +0 -1
  230. package/tests/utils/linter/fixtures/ruby/syntax-error.rb +0 -2
  231. package/tests/utils/linter/fixtures/ruby/undeclare-variable.rb +0 -1
  232. package/tests/utils/linter/fixtures/ruby/unused-variable.rb +0 -2
  233. package/tests/utils/linter/fixtures/ruby/valid-code.rb +0 -1
  234. package/tests/utils/linter/fixtures/sass/keyword-error.sass +0 -2
  235. package/tests/utils/linter/fixtures/sass/missing-semicolon.sass +0 -3
  236. package/tests/utils/linter/fixtures/sass/syntax-error.sass +0 -3
  237. package/tests/utils/linter/fixtures/sass/undeclare-variable.sass +0 -2
  238. package/tests/utils/linter/fixtures/sass/unused-variable.sass +0 -4
  239. package/tests/utils/linter/fixtures/sass/valid-code.sass +0 -2
  240. package/tests/utils/linter/fixtures/scss/keyword-error.scss +0 -1
  241. package/tests/utils/linter/fixtures/scss/missing-semicolon.scss +0 -1
  242. package/tests/utils/linter/fixtures/scss/syntax-error.scss +0 -1
  243. package/tests/utils/linter/fixtures/scss/undeclare-variable.scss +0 -1
  244. package/tests/utils/linter/fixtures/scss/unused-variable.scss +0 -2
  245. package/tests/utils/linter/fixtures/scss/valid-code.scss +0 -1
  246. package/tests/utils/linter/fixtures/shell/keyword-error.sh +0 -5
  247. package/tests/utils/linter/fixtures/shell/missing-semicolon.sh +0 -3
  248. package/tests/utils/linter/fixtures/shell/syntax-error.sh +0 -4
  249. package/tests/utils/linter/fixtures/shell/undeclare-variable.sh +0 -3
  250. package/tests/utils/linter/fixtures/shell/unused-variable.sh +0 -4
  251. package/tests/utils/linter/fixtures/shell/valid-code.sh +0 -3
  252. package/tests/utils/linter/fixtures/ts/keyword-error.ts +0 -1
  253. package/tests/utils/linter/fixtures/ts/missing-semicolon.ts +0 -1
  254. package/tests/utils/linter/fixtures/ts/syntax-error.ts +0 -1
  255. package/tests/utils/linter/fixtures/ts/undeclare-variable.ts +0 -1
  256. package/tests/utils/linter/fixtures/ts/unused-variable.ts +0 -3
  257. package/tests/utils/linter/fixtures/ts/valid-code.ts +0 -3
  258. package/tests/utils/linter/fixtures/tsx/keyword-error.tsx +0 -5
  259. package/tests/utils/linter/fixtures/tsx/missing-semicolon.tsx +0 -5
  260. package/tests/utils/linter/fixtures/tsx/syntax-error.tsx +0 -5
  261. package/tests/utils/linter/fixtures/tsx/undeclare-variable.tsx +0 -6
  262. package/tests/utils/linter/fixtures/tsx/unused-variable.tsx +0 -6
  263. package/tests/utils/linter/fixtures/tsx/valid-code.tsx +0 -5
  264. package/tests/utils/linter/fixtures/vue/keyword-error.vue +0 -6
  265. package/tests/utils/linter/fixtures/vue/missing-semicolon.vue +0 -6
  266. package/tests/utils/linter/fixtures/vue/syntax-error.vue +0 -6
  267. package/tests/utils/linter/fixtures/vue/undeclare-variable.vue +0 -6
  268. package/tests/utils/linter/fixtures/vue/unused-variable.vue +0 -7
  269. package/tests/utils/linter/fixtures/vue/valid-code.vue +0 -6
  270. package/tests/utils/linter/fixtures/yaml/keyword-error.yml +0 -1
  271. package/tests/utils/linter/fixtures/yaml/missing-semicolon.yml +0 -2
  272. package/tests/utils/linter/fixtures/yaml/syntax-error.yml +0 -1
  273. package/tests/utils/linter/fixtures/yaml/undeclare-variable.yml +0 -1
  274. package/tests/utils/linter/fixtures/yaml/unused-variable.yml +0 -2
  275. package/tests/utils/linter/fixtures/yaml/valid-code.yml +0 -3
  276. package/tests/utils/linter/index.test.mjs +0 -440
  277. package/tests/utils/linter/scan-results.mjs +0 -42
  278. package/tests/utils/load-config.test.mjs +0 -141
  279. package/tests/utils/markdown/index.test.mjs +0 -478
  280. package/tests/utils/mermaid-validator.test.mjs +0 -541
  281. package/tests/utils/mock-chat-model.mjs +0 -12
  282. package/tests/utils/preferences-utils.test.mjs +0 -465
  283. package/tests/utils/save-value-to-config.test.mjs +0 -483
  284. package/tests/utils/utils.test.mjs +0 -941
@@ -1,100 +0,0 @@
1
- # Managing Preferences
2
-
3
- When you generate or update documentation, you can provide feedback using the `--feedback` flag. This feedback is saved as a "preference" to be reused in future sessions, ensuring the AI maintains consistency with your previous instructions. The `aigne doc prefs` command provides a direct way to manage these saved preferences.
4
-
5
- This guide details how to list, remove, and toggle the active status of your saved preferences.
6
-
7
- ## Viewing Saved Preferences
8
-
9
- To review all saved preferences, use the `--list` flag. This command displays each preference with its status, scope, unique ID, and content.
10
-
11
- ```bash
12
- aigne doc prefs --list
13
- ```
14
-
15
- ### Understanding the Output
16
-
17
- The list is formatted to provide clear information about each preference rule:
18
-
19
- * **Status**: Indicates if a preference is active or inactive.
20
- * `🟢`: Active. The rule will be applied during documentation generation.
21
- * `⚪`: Inactive. The rule is saved but will be ignored.
22
- * **Scope**: The context in which the preference applies (e.g., `global`, `document`).
23
- * **ID**: A unique identifier for the preference, used for removing or toggling.
24
- * **Paths**: If the preference applies only to specific files, their paths are listed here.
25
- * **Rule Content**: The text of the preference rule itself.
26
-
27
- **Example Output:**
28
-
29
- ```
30
- # User Preferences
31
-
32
- **Format explanation:**
33
- - 🟢 = Active preference, ⚪ = Inactive preference
34
- - [scope] = Preference scope (global, structure, document, translation)
35
- - ID = Unique preference identifier
36
- - Paths = Specific file paths (if applicable)
37
-
38
- 🟢 [document] 2af5c | Paths: /guides/generating-documentation.md
39
- Focus on concrete, verifiable facts and information. Avoid using vague or empty words that don't provide measurable or specific d...
40
-
41
- ⚪ [global] 8b1e2
42
- Use a formal and academic tone throughout the documentation.
43
-
44
- ```
45
-
46
- ## Removing Preferences
47
-
48
- When a preference is no longer needed, you can permanently delete it using the `--remove` flag. You can remove preferences either by specifying their IDs or through an interactive menu.
49
-
50
- ### Interactive Mode
51
-
52
- To select preferences from a list, run the command without any IDs. This will open an interactive prompt where you can check the items you wish to delete.
53
-
54
- ```bash
55
- aigne doc prefs --remove
56
- ```
57
-
58
- A checklist will appear, allowing you to select one or more preferences. This is the recommended method for ensuring you remove the correct items.
59
-
60
- ### Direct Mode
61
-
62
- If you already know the unique IDs of the preferences you want to remove, you can specify them using the `--id` flag. This is faster if you are certain about which items to delete.
63
-
64
- ```bash
65
- # Remove a single preference
66
- aigne doc prefs --remove --id 2af5c
67
-
68
- # Remove multiple preferences
69
- aigne doc prefs --remove --id 2af5c --id 8b1e2
70
- ```
71
-
72
- ## Toggling Preferences
73
-
74
- Instead of permanently deleting a preference, you can temporarily enable or disable it. This is useful when you want to suspend a rule for a specific task without losing it. Use the `--toggle` flag to change a preference's active status.
75
-
76
- ### Interactive Mode
77
-
78
- Running the command without IDs will launch an interactive checklist, similar to the remove command.
79
-
80
- ```bash
81
- aigne doc prefs --toggle
82
- ```
83
-
84
- You can select the preferences you wish to activate or deactivate. The status icon (`🟢`/`⚪`) will update to reflect the new state.
85
-
86
- ### Direct Mode
87
-
88
- To toggle specific preferences directly, use the `--id` flag.
89
-
90
- ```bash
91
- # Toggle a single preference
92
- aigne doc prefs --toggle --id 2af5c
93
-
94
- # Toggle multiple preferences
95
- aigne doc prefs --toggle --id 2af5c --id 8b1e2
96
- ```
97
-
98
- ---
99
-
100
- By managing your preferences, you can maintain fine-grained control over the documentation generation process, ensuring that the output consistently aligns with your project's specific requirements and style.
@@ -1,100 +0,0 @@
1
- # 管理偏好設定
2
-
3
- 當您生成或更新文件時,可以使用 `--feedback` 旗標提供回饋。此回饋會儲存為「偏好設定」,以便在未來的會話中重複使用,確保 AI 與您先前的指示保持一致。`aigne doc prefs` 指令提供了一種直接管理這些已儲存偏好設定的方法。
4
-
5
- 本指南詳細說明如何列出、移除以及切換您已儲存偏好設定的啟用狀態。
6
-
7
- ## 檢視已儲存的偏好設定
8
-
9
- 若要檢視所有已儲存的偏好設定,請使用 `--list` 旗標。此指令會顯示每個偏好設定的狀態、範圍、唯一 ID 和內容。
10
-
11
- ```bash
12
- aigne doc prefs --list
13
- ```
14
-
15
- ### 理解輸出內容
16
-
17
- 列表經過格式化,以提供關於每個偏好設定規則的清晰資訊:
18
-
19
- * **Status**:指示偏好設定為啟用或停用。
20
- * `🟢`:啟用。此規則將在文件生成期間應用。
21
- * `⚪`:停用。此規則已儲存但將被忽略。
22
- * **Scope**:偏好設定應用的情境(例如:`global`、`document`)。
23
- * **ID**:偏好設定的唯一識別碼,用於移除或切換狀態。
24
- * **Paths**:如果偏好設定僅適用於特定檔案,其路徑會在此列出。
25
- * **Rule Content**:偏好設定規則本身的文字。
26
-
27
- **輸出範例:**
28
-
29
- ```
30
- # 使用者偏好設定
31
-
32
- **格式說明:**
33
- - 🟢 = 啟用中的偏好設定,⚪ = 停用中的偏好設定
34
- - [scope] = 偏好設定範圍 (global, structure, document, translation)
35
- - ID = 唯一的偏好設定識別碼
36
- - Paths = 特定檔案路徑(如果適用)
37
-
38
- 🟢 [document] 2af5c | Paths: /guides/generating-documentation.md
39
- Focus on concrete, verifiable facts and information. Avoid using vague or empty words that don't provide measurable or specific d...
40
-
41
- ⚪ [global] 8b1e2
42
- Use a formal and academic tone throughout the documentation.
43
-
44
- ```
45
-
46
- ## 移除偏好設定
47
-
48
- 當不再需要某個偏好設定時,您可以使用 `--remove` 旗標將其永久刪除。您可以透過指定其 ID 或透過互動式選單來移除偏好設定。
49
-
50
- ### 互動模式
51
-
52
- 若要從列表中選擇偏好設定,請執行不含任何 ID 的指令。這將開啟一個互動式提示,您可以在其中勾選您希望刪除的項目。
53
-
54
- ```bash
55
- aigne doc prefs --remove
56
- ```
57
-
58
- 會出現一個清單,讓您選擇一個或多個偏好設定。這是確保您移除正確項目的建議方法。
59
-
60
- ### 直接模式
61
-
62
- 如果您已經知道要移除的偏好設定的唯一 ID,您可以使用 `--id` 旗標來指定它們。如果您確定要刪除哪些項目,這種方式會更快。
63
-
64
- ```bash
65
- # 移除單一偏好設定
66
- aigne doc prefs --remove --id 2af5c
67
-
68
- # 移除多個偏好設定
69
- aigne doc prefs --remove --id 2af5c --id 8b1e2
70
- ```
71
-
72
- ## 切換偏好設定
73
-
74
- 您可以暫時啟用或停用偏好設定,而不是永久刪除它。當您想為特定任務暫停某個規則而不想失去它時,這非常有用。使用 `--toggle` 旗標來變更偏好設定的啟用狀態。
75
-
76
- ### 互動模式
77
-
78
- 執行不含 ID 的指令將會啟動一個互動式清單,類似於移除指令。
79
-
80
- ```bash
81
- aigne doc prefs --toggle
82
- ```
83
-
84
- 您可以選擇您希望啟用或停用的偏好設定。狀態圖示 (`🟢`/`⚪`) 將會更新以反映新的狀態。
85
-
86
- ### 直接模式
87
-
88
- 若要直接切換特定偏好設定,請使用 `--id` 旗標。
89
-
90
- ```bash
91
- # 切換單一偏好設定
92
- aigne doc prefs --toggle --id 2af5c
93
-
94
- # 切換多個偏好設定
95
- aigne doc prefs --toggle --id 2af5c --id 8b1e2
96
- ```
97
-
98
- ---
99
-
100
- 透過管理您的偏好設定,您可以對文件生成過程進行細緻的控制,確保輸出結果能持續符合您專案的特定要求和風格。
@@ -1,100 +0,0 @@
1
- # 管理偏好设置
2
-
3
- 在生成或更新文档时,您可以使用 `--feedback` 标志提供反馈。此反馈将作为“偏好设置”保存,以便在未来的会话中重复使用,确保 AI 与您之前的指令保持一致。`aigne doc prefs` 命令提供了一种直接管理这些已保存偏好设置的方法。
4
-
5
- 本指南详细介绍了如何列出、删除和切换已保存偏好设置的活动状态。
6
-
7
- ## 查看已保存的偏好设置
8
-
9
- 要查看所有已保存的偏好设置,请使用 `--list` 标志。此命令会显示每个偏好设置的状态、范围、唯一 ID 和内容。
10
-
11
- ```bash
12
- aigne doc prefs --list
13
- ```
14
-
15
- ### 理解输出
16
-
17
- 列表经过格式化,以提供关于每个偏好规则的清晰信息:
18
-
19
- * **状态**:指示偏好设置是活动还是非活动状态。
20
- * `🟢`:活动。该规则将在文档生成期间应用。
21
- * `⚪`:非活动。该规则已保存但将被忽略。
22
- * **范围**:偏好设置适用的上下文(例如,`global`、`document`)。
23
- * **ID**:偏好设置的唯一标识符,用于删除或切换状态。
24
- * **路径**:如果偏好设置仅适用于特定文件,其路径会在此处列出。
25
- * **规则内容**:偏好规则本身的文本。
26
-
27
- **输出示例:**
28
-
29
- ```
30
- # 用户偏好设置
31
-
32
- **格式说明:**
33
- - 🟢 = 活动偏好,⚪ = 非活动偏好
34
- - [scope] = 偏好范围 (global, structure, document, translation)
35
- - ID = 唯一偏好标识符
36
- - Paths = 特定文件路径(如适用)
37
-
38
- 🟢 [document] 2af5c | Paths: /guides/generating-documentation.md
39
- Focus on concrete, verifiable facts and information. Avoid using vague or empty words that don't provide measurable or specific d...
40
-
41
- ⚪ [global] 8b1e2
42
- Use a formal and academic tone throughout the documentation.
43
-
44
- ```
45
-
46
- ## 删除偏好设置
47
-
48
- 当不再需要某个偏好设置时,您可以使用 `--remove` 标志将其永久删除。您可以通过指定其 ID 或通过交互式菜单来删除偏好设置。
49
-
50
- ### 交互模式
51
-
52
- 要从列表中选择偏好设置,请在不带任何 ID 的情况下运行该命令。这将打开一个交互式提示,您可以在其中勾选要删除的项目。
53
-
54
- ```bash
55
- aigne doc prefs --remove
56
- ```
57
-
58
- 将出现一个清单,允许您选择一个或多个偏好设置。这是确保您删除正确项目的推荐方法。
59
-
60
- ### 直接模式
61
-
62
- 如果您已经知道要删除的偏好设置的唯一 ID,可以使用 `--id` 标志来指定它们。如果您确定要删除哪些项目,这种方式会更快。
63
-
64
- ```bash
65
- # 删除单个偏好设置
66
- aigne doc prefs --remove --id 2af5c
67
-
68
- # 删除多个偏好设置
69
- aigne doc prefs --remove --id 2af5c --id 8b1e2
70
- ```
71
-
72
- ## 切换偏好设置
73
-
74
- 除了永久删除偏好设置,您还可以临时启用或禁用它。当您想为特定任务暂停某条规则但又不想丢失它时,这非常有用。使用 `--toggle` 标志来更改偏好设置的活动状态。
75
-
76
- ### 交互模式
77
-
78
- 在不带 ID 的情况下运行该命令将启动一个交互式清单,类似于删除命令。
79
-
80
- ```bash
81
- aigne doc prefs --toggle
82
- ```
83
-
84
- 您可以选择希望激活或停用的偏好设置。状态图标(`🟢`/`⚪`)将更新以反映新状态。
85
-
86
- ### 直接模式
87
-
88
- 要直接切换特定偏好设置,请使用 `--id` 标志。
89
-
90
- ```bash
91
- # 切换单个偏好设置
92
- aigne doc prefs --toggle --id 2af5c
93
-
94
- # 切换多个偏好设置
95
- aigne doc prefs --toggle --id 2af5c --id 8b1e2
96
- ```
97
-
98
- ---
99
-
100
- 通过管理您的偏好设置,您可以对文档生成过程进行精细控制,确保输出始终符合您项目的特定要求和风格。
@@ -1,96 +0,0 @@
1
- # 設定
2
-
3
- 適切な設定は、プロジェクト固有のニーズに合わせてドキュメント生成プロセスを調整するために不可欠です。AIGNE DocSmithは、主要な設定ファイルとコマンドラインインターフェースを使用して設定を管理します。このセットアップにより、生成されるドキュメントがプロジェクトの目標、対象読者、構造的要件を正確に反映することが保証されます。
4
-
5
- このセクションでは、ツールの設定方法の概要を説明します。ステップバイステップの手順については、以下の詳細なガイドを参照してください。
6
-
7
- <x-cards>
8
- <x-card data-title="初期設定" data-icon="lucide:settings-2" data-href="/configuration/initial-setup">対話式セットアップを実行して `config.yaml` ファイルを作成する方法を学びます。これは、新しいプロジェクトで推奨される最初のステップです。</x-card>
9
- <x-card data-title="設定の管理" data-icon="lucide:list-checks" data-href="/configuration/managing-preferences">保存された設定を表示、有効化、無効化、または削除する方法を理解し、時間とともにドキュメント生成プロセスを洗練させます。</x-card>
10
- </x-cards>
11
-
12
- ## `config.yaml` ファイル
13
-
14
- すべてのプロジェクトレベルの設定は、プロジェクト内の `.aigne/doc-smith/` ディレクトリにある `config.yaml` という名前のファイルに保存されます。`aigne doc init` コマンドは、対話的なプロセスを通じてこのファイルを作成します。また、いつでもテキストエディタでこのファイルを手動で変更して設定を調整することもできます。
15
-
16
- 以下は `config.yaml` ファイルの例で、各セクションを説明するコメントが付いています。
17
-
18
- ```yaml Example config.yaml icon=logos:yaml
19
- # ドキュメント公開のためのプロジェクト情報
20
- projectName: AIGNE DocSmith
21
- projectDesc: AIGNE DocSmithは、AIGNEフレームワーク上に構築された強力なAI駆動のドキュメント生成ツールです。ソースコードから直接、詳細で構造化された多言語のドキュメント作成を自動化します。
22
- projectLogo: https://docsmith.aigne.io/image-bin/uploads/9645caf64b4232699982c4d940b03b90.svg
23
-
24
- # =============================================================================
25
- # ドキュメント設定
26
- # =============================================================================
27
-
28
- # 目的: 読者に達成してもらいたい主な成果は何ですか?
29
- # 利用可能なオプション(必要に応じてコメントを解除し、変更してください):
30
- # getStarted - 迅速な開始:新規ユーザーが30分未満でゼロから作業を開始できるように支援します
31
- # completeTasks - 特定のタスクの完了:一般的なワークフローとユースケースを通じてユーザーをガイドします
32
- # findAnswers - 迅速な回答の検索:すべての機能とAPIに対して検索可能なリファレンスを提供します
33
- # understandSystem - システムの理解:システムの仕組み、設計上の決定理由を説明します
34
- # solveProblems - 問題の解決:ユーザーのトラブルシューティングと問題修正を支援します
35
- # mixedPurpose - 上記の混合:複数のニーズをカバーする包括的なドキュメント
36
- documentPurpose:
37
- - getStarted
38
- - completeTasks
39
-
40
- # 対象読者: 主に誰がこれを読みますか?
41
- # 利用可能なオプション(必要に応じてコメントを解除し、変更してください):
42
- # endUsers - エンドユーザー(非技術者):製品を使用するがコーディングはしない人々
43
- # developers - 統合開発者:これを自分のプロジェクトに追加するエンジニア
44
- # devops - DevOps/インフラストラクチャ:システムをデプロイ、監視、維持するチーム
45
- # decisionMakers - 技術的な意思決定者:実装を評価または計画するアーキテクト、リーダー
46
- # supportTeams - サポートチーム:他者が製品を使用するのを助ける人々
47
- # mixedTechnical - 混合技術者層:開発者、DevOps、および技術ユーザー
48
- targetAudienceTypes:
49
- - endUsers
50
-
51
- # 読者の知識レベル: 読者が訪れたときに通常何を知っていますか?
52
- # 利用可能なオプション(必要に応じてコメントを解除し、変更してください):
53
- # completeBeginners - 完全な初心者:この分野/技術に全く新しい人々
54
- # domainFamiliar - 分野に精通、ツールは初めて:問題領域は知っているが、この特定のソリューションは初めて
55
- # experiencedUsers - 経験豊富なユーザー:リファレンス/高度なトピックを必要とする通常のユーザー
56
- # emergencyTroubleshooting - 緊急/トラブルシューティング:何かが壊れており、迅速に修正する必要がある
57
- # exploringEvaluating - 探索/評価:これが自分のニーズに合うかどうかを理解しようとしている
58
- readerKnowledgeLevel: completeBeginners
59
-
60
- # ドキュメントの深さ: ドキュメントはどの程度包括的であるべきですか?
61
- # 利用可能なオプション(必要に応じてコメントを解除し、変更してください):
62
- # essentialOnly - 必須事項のみ:80%のユースケースをカバーし、簡潔に保つ
63
- # balancedCoverage - バランスの取れたカバレッジ:実践的な例を伴う適切な深さ [推奨]
64
- # comprehensive - 包括的:すべての機能、エッジケース、および高度なシナリオをカバーする
65
- # aiDecide - AIに決定させる:コードの複雑さを分析し、適切な深さを提案する
66
- documentationDepth: comprehensive
67
-
68
- # カスタムルール: 特定のドキュメント生成ルールと要件を定義します
69
- rules: |
70
- 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
73
-
74
- # 対象読者: 特定の対象読者とその特徴を記述します
75
- targetAudience: |
76
-
77
- locale: en
78
- translateLanguages:
79
- - zh
80
- - zh-TW
81
- - ja
82
- docsDir: ./docs # 生成されたドキュメントを保存するディレクトリ
83
- sourcesPath: # 分析するソースコードのパス
84
- - ./README.md
85
- - ./CHANGELOG.md
86
- - ./aigne.yaml
87
- - ./agents
88
- - ./media.md
89
- - ./.aigne/doc-smith/config.yaml
90
- ```
91
-
92
- ## まとめ
93
-
94
- 設定が完了すると、ツールはプロジェクト、対象読者、ドキュメントの目標を明確に理解し、より正確で関連性の高いコンテンツが生成されます。
95
-
96
- プロジェクトの設定を開始するには、[初期設定](./configuration-initial-setup.md) ガイドに進んでください。
@@ -1,96 +0,0 @@
1
- # Configuration
2
-
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
-
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
-
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>
10
- </x-cards>
11
-
12
- ## The `config.yaml` File
13
-
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.
15
-
16
- Below is an example of a `config.yaml` file, with comments explaining each section.
17
-
18
- ```yaml Example config.yaml icon=logos:yaml
19
- # Project information for documentation publishing
20
- projectName: AIGNE DocSmith
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
23
-
24
- # =============================================================================
25
- # Documentation Configuration
26
- # =============================================================================
27
-
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
36
- documentPurpose:
37
- - getStarted
38
- - completeTasks
39
-
40
- # Target Audience: Who will be reading this most often?
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
48
- targetAudienceTypes:
49
- - endUsers
50
-
51
- # Reader Knowledge Level: What do readers typically know when they arrive?
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
59
-
60
- # Documentation Depth: How comprehensive should the documentation be?
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
67
-
68
- # Custom Rules: Define specific documentation generation rules and requirements
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
73
-
74
- # Target Audience: Describe your specific target audience and their characteristics
75
- targetAudience: |
76
-
77
- locale: en
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
90
- ```
91
-
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.
95
-
96
- To begin setting up your project, proceed to the [Initial Setup](./configuration-initial-setup.md) guide.
@@ -1,96 +0,0 @@
1
- # 設定
2
-
3
- 正確的設定對於根據專案的特定需求客製化文件產生過程至關重要。AIGNE DocSmith 使用一個主要設定檔和一個命令列介面來管理您的設定。這種設定方式確保產生的文件能準確反映您的專案目標、目標受眾和結構需求。
4
-
5
- 本節概述了如何設定此工具。有關逐步說明,請參閱以下詳細指南:
6
-
7
- <x-cards>
8
- <x-card data-title="初始設定" data-icon="lucide:settings-2" data-href="/configuration/initial-setup">了解如何執行互動式設定來建立您的 config.yaml 檔案。這是任何新專案的建議第一步。</x-card>
9
- <x-card data-title="管理偏好設定" data-icon="lucide:list-checks" data-href="/configuration/managing-preferences">了解如何檢視、啟用、停用或刪除已儲存的偏好設定,以隨著時間的推移來完善文件產生過程。</x-card>
10
- </x-cards>
11
-
12
- ## `config.yaml` 檔案
13
-
14
- 所有專案層級的設定都儲存在名為 `config.yaml` 的檔案中,該檔案位於您專案內的 `.aigne/doc-smith/` 目錄中。`aigne doc init` 指令會透過一個互動式過程為您建立此檔案。您也可以隨時使用文字編輯器手動修改此檔案以調整設定。
15
-
16
- 以下是一個 `config.yaml` 檔案的範例,其中包含解釋每個區塊的註解。
17
-
18
- ```yaml Example config.yaml icon=logos:yaml
19
- # 用於文件發布的專案資訊
20
- projectName: AIGNE DocSmith
21
- projectDesc: AIGNE DocSmith 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
23
-
24
- # =============================================================================
25
- # 文件設定
26
- # =============================================================================
27
-
28
- # 目的:您希望讀者達成的最主要成果是什麼?
29
- # 可用選項(取消註解並根據需要修改):
30
- # getStarted - 快速入門:幫助新使用者在 30 分鐘內從零到上手
31
- # completeTasks - 完成特定任務:引導使用者完成常見的工作流程和使用案例
32
- # findAnswers - 快速尋找答案:為所有功能和 API 提供可搜尋的參考資料
33
- # understandSystem - 了解系統:解釋其運作方式及設計決策的原因
34
- # solveProblems - 解決問題:幫助使用者進行故障排除並修復問題
35
- # mixedPurpose - 綜合目的:涵蓋多種需求的綜合性文件
36
- documentPurpose:
37
- - getStarted
38
- - completeTasks
39
-
40
- # 目標受眾:誰會最常閱讀這份文件?
41
- # 可用選項(取消註解並根據需要修改):
42
- # endUsers - 終端使用者(非技術人員):使用產品但不寫程式的人
43
- # developers - 整合開發者:將此產品加入其專案的工程師
44
- # devops - DevOps/基礎設施:部署、監控、維護系統的團隊
45
- # decisionMakers - 技術決策者:評估或規劃實施的架構師、領導者
46
- # supportTeams - 支援團隊:幫助他人使用產品的人員
47
- # mixedTechnical - 混合技術受眾:開發者、DevOps 和技術使用者
48
- targetAudienceTypes:
49
- - endUsers
50
-
51
- # 讀者知識水平:讀者在閱讀文件時通常具備哪些知識?
52
- # 可用選項(取消註解並根據需要修改):
53
- # completeBeginners - 完全初學者:對此領域/技術完全陌生
54
- # domainFamiliar - 熟悉領域,工具新手:了解問題領域,但對此特定解決方案不熟
55
- # experiencedUsers - 有經驗的使用者:需要參考資料/進階主題的常規使用者
56
- # emergencyTroubleshooting - 緊急/故障排除:出現問題,需要快速修復
57
- # exploringEvaluating - 探索/評估:試圖了解這是否符合他們的需求
58
- readerKnowledgeLevel: completeBeginners
59
-
60
- # 文件深度:文件應該要多詳盡?
61
- # 可用選項(取消註解並根據需要修改):
62
- # essentialOnly - 僅涵蓋必要內容:涵蓋 80% 的使用案例,保持簡潔
63
- # balancedCoverage - 平衡的涵蓋範圍:具有足夠深度和實用範例 [建議]
64
- # comprehensive - 全面詳盡:涵蓋所有功能、邊界案例和進階情境
65
- # aiDecide - 讓 AI 決定:分析程式碼複雜度並建議適當的深度
66
- documentationDepth: comprehensive
67
-
68
- # 自訂規則:定義特定的文件產生規則與要求
69
- rules: |
70
- 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
73
-
74
- # 目標受眾:描述您的特定目標受眾及其特徵
75
- targetAudience: |
76
-
77
- locale: en
78
- translateLanguages:
79
- - zh
80
- - zh-TW
81
- - ja
82
- docsDir: ./docs # 儲存產生文件的目錄
83
- sourcesPath: # 要分析的原始碼路徑
84
- - ./README.md
85
- - ./CHANGELOG.md
86
- - ./aigne.yaml
87
- - ./agents
88
- - ./media.md
89
- - ./.aigne/doc-smith/config.yaml
90
- ```
91
-
92
- ## 總結
93
-
94
- 完成設定後,此工具將清楚了解您的專案、受眾和文件目標,從而產生更準確、更相關的內容。
95
-
96
- 若要開始設定您的專案,請前往 [初始設定](./configuration-initial-setup.md) 指南。