@aigne/doc-smith 0.8.12-beta.8 → 0.8.12

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 +15 -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,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,69 +0,0 @@
1
- # 設定
2
-
3
- 適切な設定は、AIGNE DocSmith ツールがプロジェクト固有のニーズに合ったドキュメントを生成するための基本です。このプロセスでは、中央の設定ファイルでプロジェクトレベルの設定を定義し、個人の設定を管理して生成プロセスを微調整します。
4
-
5
- このセクションでは、ツールの設定方法の概要を説明します。詳細な手順については、以下の各ガイドを参照してください。
6
-
7
- <x-cards data-columns="2">
8
- <x-card data-title="初期設定" data-icon="lucide:settings-2" data-href="/configuration/initial-setup">
9
- 対話式のセットアップガイドに従って、主要な `config.yaml` ファイルを作成します。これは、新しいドキュメントプロジェクトに不可欠な最初のステップです。
10
- </x-card>
11
- <x-card data-title="設定の管理" data-icon="lucide:user-cog" data-href="/configuration/managing-preferences">
12
- 個人の設定を表示、有効化、無効化、または削除する方法を学びます。これにより、主要なプロジェクト設定を補完する特定のルールを適用できます。
13
- </x-card>
14
- </x-cards>
15
-
16
- ## `config.yaml` ファイルについて
17
-
18
- `config.yaml` ファイルは、ドキュメントプロジェクトにおける信頼できる唯一の情報源(source of truth)として機能します。このファイルは初期設定プロセスで生成され、AI がソースコードを分析してコンテンツを生成するために使用するすべてのコアディレクティブを含んでいます。正しく設定されたファイルにより、意図した読者、目的、スタイルに合わせた出力が保証されます。
19
-
20
- 以下に、`config.yaml` ファイルに含まれる主要なパラメータの内訳を示します。
21
-
22
- ### コア設定パラメータ
23
-
24
- <x-field-group>
25
- <x-field data-name="projectName" data-type="string" data-required="true">
26
- <x-field-desc markdown>プロジェクトの正式名称。ドキュメント全体のタイトルやその他のメタデータで使用されます。</x-field-desc>
27
- </x-field>
28
- <x-field data-name="projectDesc" data-type="string" data-required="true">
29
- <x-field-desc markdown>プロジェクトの目的と機能を簡潔に一句で説明します。</x-field-desc>
30
- </x-field>
31
- <x-field data-name="projectLogo" data-type="string" data-required="false">
32
- <x-field-desc markdown>プロジェクトのロゴ画像を指す URL。公開されるドキュメントサイトのブランディングに使用されます。</x-field-desc>
33
- </x-field>
34
- <x-field data-name="documentPurpose" data-type="array" data-required="true">
35
- <x-field-desc markdown>ドキュメントの主要な目標を定義します。例として、オンボーディングガイドのための `getStarted` や、手順を説明するための `completeTasks` があります。</x-field-desc>
36
- </x-field>
37
- <x-field data-name="targetAudienceTypes" data-type="array" data-required="true">
38
- <x-field-desc markdown>対象読者を指定します。例として、技術者ではない一般ユーザー向けの `endUsers` や、エンジニア向けの `developers` があります。</x-field-desc>
39
- </x-field>
40
- <x-field data-name="readerKnowledgeLevel" data-type="string" data-required="true">
41
- <x-field-desc markdown>対象読者に想定される技術知識と背景を記述します。例:`completeBeginners`。</x-field-desc>
42
- </x-field>
43
- <x-field data-name="documentationDepth" data-type="string" data-required="true">
44
- <x-field-desc markdown>生成されるコンテンツの詳細度を制御します。オプションは `essentialOnly` から `comprehensive` まであります。</x-field-desc>
45
- </x-field>
46
- <x-field data-name="rules" data-type="string" data-required="false">
47
- <x-field-desc markdown>コンテンツ生成プロセス中に AI が従うべきカスタム指示、ガイドライン、または制約のセットです。</x-field-desc>
48
- </x-field>
49
- <x-field data-name="locale" data-type="string" data-required="true">
50
- <x-field-desc markdown>ドキュメントの主要な言語コード。例:英語の場合は `en`。</x-field-desc>
51
- </x-field>
52
- <x-field data-name="translateLanguages" data-type="array" data-required="false">
53
- <x-field-desc markdown>主要なドキュメントを翻訳する先の言語コードのリスト。例:`zh`(中国語)や `ja`(日本語)。</x-field-desc>
54
- </x-field>
55
- <x-field data-name="docsDir" data-type="string" data-required="true">
56
- <x-field-desc markdown>生成されたドキュメントファイルが保存されるローカルディレクトリのパス。</x-field-desc>
57
- </x-field>
58
- <x-field data-name="sourcesPath" data-type="array" data-required="true">
59
- <x-field-desc markdown>ツールがドキュメントを生成するために分析するソースファイル、ディレクトリ、または glob パターンのリスト。</x-field-desc>
60
- </x-field>
61
- </x-field-group>
62
-
63
- ## まとめ
64
-
65
- 明確に定義された設定は、正確で、関連性が高く、効果的なドキュメントを作成するために不可欠です。初期設定を完了し、`config.yaml` ファイルを理解することで、すべてのドキュメント作成タスクの強固な基盤を築くことができます。
66
-
67
- プロジェクトの設定を進めるには、以下のガイドを参照してください:
68
- * **[初期設定](./configuration-initial-setup.md)**:プロジェクトの `config.yaml` ファイルを作成します。
69
- * **[設定の管理](./configuration-managing-preferences.md)**:個人のルールでツールの動作をカスタマイズします。
@@ -1,69 +0,0 @@
1
- # Configuration
2
-
3
- Proper configuration is fundamental to guiding the AIGNE DocSmith tool in generating documentation that aligns with your project's specific needs. This process involves defining project-level settings through a central configuration file and managing personal preferences for fine-tuning the generation process.
4
-
5
- This section provides an overview of how to configure the tool. For detailed, step-by-step instructions, please refer to the specific guides linked below.
6
-
7
- <x-cards data-columns="2">
8
- <x-card data-title="Initial Setup" data-icon="lucide:settings-2" data-href="/configuration/initial-setup">
9
- Follow the interactive setup guide to create the main `config.yaml` file. This is the essential first step for any new documentation project.
10
- </x-card>
11
- <x-card data-title="Managing Preferences" data-icon="lucide:user-cog" data-href="/configuration/managing-preferences">
12
- Learn how to view, enable, disable, or delete personal preferences. These allow you to apply specific rules that can supplement the main project configuration.
13
- </x-card>
14
- </x-cards>
15
-
16
- ## Understanding the `config.yaml` File
17
-
18
- The `config.yaml` file serves as the primary source of truth for your documentation project. It is generated during the initial setup process and contains all the core directives that the AI uses to analyze your source code and generate content. A correctly configured file ensures that the output is tailored to your intended audience, purpose, and style.
19
-
20
- Below is a breakdown of the key parameters you will find in the `config.yaml` file.
21
-
22
- ### Core Configuration Parameters
23
-
24
- <x-field-group>
25
- <x-field data-name="projectName" data-type="string" data-required="true">
26
- <x-field-desc markdown>The official name of your project. This will be used in titles and other metadata throughout the documentation.</x-field-desc>
27
- </x-field>
28
- <x-field data-name="projectDesc" data-type="string" data-required="true">
29
- <x-field-desc markdown>A concise, one-sentence description of your project's purpose and functionality.</x-field-desc>
30
- </x-field>
31
- <x-field data-name="projectLogo" data-type="string" data-required="false">
32
- <x-field-desc markdown>A URL pointing to your project's logo image. This will be used for branding the published documentation site.</x-field-desc>
33
- </x-field>
34
- <x-field data-name="documentPurpose" data-type="array" data-required="true">
35
- <x-field-desc markdown>Defines the primary goals of the documentation. Examples include `getStarted` for onboarding guides or `completeTasks` for procedural instructions.</x-field-desc>
36
- </x-field>
37
- <x-field data-name="targetAudienceTypes" data-type="array" data-required="true">
38
- <x-field-desc markdown>Specifies the intended readers. Examples include `endUsers` for non-technical individuals or `developers` for engineers.</x-field-desc>
39
- </x-field>
40
- <x-field data-name="readerKnowledgeLevel" data-type="string" data-required="true">
41
- <x-field-desc markdown>Describes the assumed technical knowledge and background of the target audience, such as `completeBeginners`.</x-field-desc>
42
- </x-field>
43
- <x-field data-name="documentationDepth" data-type="string" data-required="true">
44
- <x-field-desc markdown>Controls the level of detail in the generated content. Options range from `essentialOnly` to `comprehensive`.</x-field-desc>
45
- </x-field>
46
- <x-field data-name="rules" data-type="string" data-required="false">
47
- <x-field-desc markdown>A set of custom instructions, guidelines, or constraints for the AI to follow during the content generation process.</x-field-desc>
48
- </x-field>
49
- <x-field data-name="locale" data-type="string" data-required="true">
50
- <x-field-desc markdown>The primary language code for the documentation, such as `en` for English.</x-field-desc>
51
- </x-field>
52
- <x-field data-name="translateLanguages" data-type="array" data-required="false">
53
- <x-field-desc markdown>A list of language codes into which the primary documentation should be translated, for example, `zh` (Chinese) or `ja` (Japanese).</x-field-desc>
54
- </x-field>
55
- <x-field data-name="docsDir" data-type="string" data-required="true">
56
- <x-field-desc markdown>The local directory path where the generated documentation files will be saved.</x-field-desc>
57
- </x-field>
58
- <x-field data-name="sourcesPath" data-type="array" data-required="true">
59
- <x-field-desc markdown>A list of source files, directories, or glob patterns that the tool should analyze to generate documentation.</x-field-desc>
60
- </x-field>
61
- </x-field-group>
62
-
63
- ## Summary
64
-
65
- A well-defined configuration is essential for producing accurate, relevant, and effective documentation. By completing the initial setup and understanding the `config.yaml` file, you establish a solid foundation for all documentation tasks.
66
-
67
- To proceed with configuring your project, please refer to the following guides:
68
- * **[Initial Setup](./configuration-initial-setup.md)**: Create your project's `config.yaml` file.
69
- * **[Managing Preferences](./configuration-managing-preferences.md)**: Customize the tool's behavior with personal rules.
@@ -1,69 +0,0 @@
1
- # 設定
2
-
3
- 正確的設定是引導 AIGNE DocSmith 工具產生符合您專案特定需求文件的基礎。此過程涉及透過一個中央設定檔來定義專案層級的設定,並管理個人偏好設定以微調產生過程。
4
-
5
- 本節將概覽如何設定此工具。有關詳細的逐步說明,請參考下方連結的具體指南。
6
-
7
- <x-cards data-columns="2">
8
- <x-card data-title="初始設定" data-icon="lucide:settings-2" data-href="/configuration/initial-setup">
9
- 遵循互動式設定指南來建立主要的 `config.yaml` 檔案。這是任何新文件專案的必要第一步。
10
- </x-card>
11
- <x-card data-title="管理偏好設定" data-icon="lucide:user-cog" data-href="/configuration/managing-preferences">
12
- 了解如何檢視、啟用、停用或刪除個人偏好設定。這些設定可讓您應用特定規則來補充主要的專案設定。
13
- </x-card>
14
- </x-cards>
15
-
16
- ## 了解 `config.yaml` 檔案
17
-
18
- `config.yaml` 檔案是您文件專案的唯一可信來源。它在初始設定過程中產生,並包含 AI 用於分析您的原始碼及產生內容的所有核心指令。一個設定正確的檔案可確保輸出內容是為您預期的受眾、目的和風格量身打造。
19
-
20
- 以下是您會在 `config.yaml` 檔案中找到的關鍵參數的詳細說明。
21
-
22
- ### 核心設定參數
23
-
24
- <x-field-group>
25
- <x-field data-name="projectName" data-type="string" data-required="true">
26
- <x-field-desc markdown>您專案的正式名稱。此名稱將用於整份文件的標題和其他元資料中。</x-field-desc>
27
- </x-field>
28
- <x-field data-name="projectDesc" data-type="string" data-required="true">
29
- <x-field-desc markdown>用一句話簡潔描述您專案的目的和功能。</x-field-desc>
30
- </x-field>
31
- <x-field data-name="projectLogo" data-type="string" data-required="false">
32
- <x-field-desc markdown>指向您專案標誌圖片的 URL。此圖片將用於已發佈文件網站的品牌識別。</x-field-desc>
33
- </x-field>
34
- <x-field data-name="documentPurpose" data-type="array" data-required="true">
35
- <x-field-desc markdown>定義文件的主要目標。範例包含用於入門指南的 `getStarted` 或用於程序說明的 `completeTasks`。</x-field-desc>
36
- </x-field>
37
- <x-field data-name="targetAudienceTypes" data-type="array" data-required="true">
38
- <x-field-desc markdown>指定預期的讀者。範例包含針對非技術人員的 `endUsers` 或針對工程師的 `developers`。</x-field-desc>
39
- </x-field>
40
- <x-field data-name="readerKnowledgeLevel" data-type="string" data-required="true">
41
- <x-field-desc markdown>描述目標受眾的預期技術知識和背景,例如 `completeBeginners`。</x-field-desc>
42
- </x-field>
43
- <x-field data-name="documentationDepth" data-type="string" data-required="true">
44
- <x-field-desc markdown>控制產生內容的詳細程度。選項範圍從 `essentialOnly` 到 `comprehensive`。</x-field-desc>
45
- </x-field>
46
- <x-field data-name="rules" data-type="string" data-required="false">
47
- <x-field-desc markdown>一組自訂指令、指南或限制,供 AI 在內容產生過程中遵循。</x-field-desc>
48
- </x-field>
49
- <x-field data-name="locale" data-type="string" data-required="true">
50
- <x-field-desc markdown>文件的主要語言代碼,例如 `en` 代表英文。</x-field-desc>
51
- </x-field>
52
- <x-field data-name="translateLanguages" data-type="array" data-required="false">
53
- <x-field-desc markdown>應將主要文件翻譯成的語言代碼列表,例如 `zh` (中文) 或 `ja` (日文)。</x-field-desc>
54
- </x-field>
55
- <x-field data-name="docsDir" data-type="string" data-required="true">
56
- <x-field-desc markdown>儲存所產生文件檔案的本機目錄路徑。</x-field-desc>
57
- </x-field>
58
- <x-field data-name="sourcesPath" data-type="array" data-required="true">
59
- <x-field-desc markdown>工具應分析以產生文件的來源檔案、目錄或 glob 模式的列表。</x-field-desc>
60
- </x-field>
61
- </x-field-group>
62
-
63
- ## 總結
64
-
65
- 一個定義完善的設定對於產出準確、相關且有效的文件至關重要。透過完成初始設定並了解 `config.yaml` 檔案,您為所有的文件任務奠定了堅實的基礎。
66
-
67
- 若要繼續設定您的專案,請參考以下指南:
68
- * **[初始設定](./configuration-initial-setup.md)**:建立您專案的 `config.yaml` 檔案。
69
- * **[管理偏好設定](./configuration-managing-preferences.md)**:使用個人規則自訂工具的行為。
@@ -1,69 +0,0 @@
1
- # 配置
2
-
3
- 正确的配置是指导 AIGNE DocSmith 工具生成符合项目特定需求的文档的基础。该过程涉及通过中央配置文件定义项目级设置,以及管理个人偏好以微调生成过程。
4
-
5
- 本节概述了如何配置该工具。有关详细的分步说明,请参阅下面链接的具体指南。
6
-
7
- <x-cards data-columns="2">
8
- <x-card data-title="初始设置" data-icon="lucide:settings-2" data-href="/configuration/initial-setup">
9
- 遵循交互式设置指南创建主 `config.yaml` 文件。这是任何新文档项目必不可少的第一步。
10
- </x-card>
11
- <x-card data-title="管理偏好设置" data-icon="lucide:user-cog" data-href="/configuration/managing-preferences">
12
- 了解如何查看、启用、禁用或删除个人偏好设置。这些设置允许您应用特定规则来补充主项目配置。
13
- </x-card>
14
- </x-cards>
15
-
16
- ## 理解 `config.yaml` 文件
17
-
18
- `config.yaml` 文件是您文档项目的主要可信来源。它在初始设置过程中生成,包含了 AI 用来分析源代码和生成内容的所有核心指令。正确配置的文件可确保输出内容符合您预期的受众、目的和风格。
19
-
20
- 以下是您将在 `config.yaml` 文件中找到的关键参数的分解说明。
21
-
22
- ### 核心配置参数
23
-
24
- <x-field-group>
25
- <x-field data-name="projectName" data-type="string" data-required="true">
26
- <x-field-desc markdown>您项目的官方名称。该名称将用于整个文档的标题和其他元数据中。</x-field-desc>
27
- </x-field>
28
- <x-field data-name="projectDesc" data-type="string" data-required="true">
29
- <x-field-desc markdown>关于您项目目的和功能的简明单句描述。</x-field-desc>
30
- </x-field>
31
- <x-field data-name="projectLogo" data-type="string" data-required="false">
32
- <x-field-desc markdown>指向您项目徽标图像的 URL。该 URL 将用于已发布文档网站的品牌塑造。</x-field-desc>
33
- </x-field>
34
- <x-field data-name="documentPurpose" data-type="array" data-required="true">
35
- <x-field-desc markdown>定义文档的主要目标。示例包括用于入门指南的 `getStarted` 或用于流程说明的 `completeTasks`。</x-field-desc>
36
- </x-field>
37
- <x-field data-name="targetAudienceTypes" data-type="array" data-required="true">
38
- <x-field-desc markdown>指定预期的读者。示例包括非技术人员的 `endUsers` 或工程师的 `developers`。</x-field-desc>
39
- </x-field>
40
- <x-field data-name="readerKnowledgeLevel" data-type="string" data-required="true">
41
- <x-field-desc markdown>描述目标受众假定的技术知识和背景,例如 `completeBeginners`。</x-field-desc>
42
- </x-field>
43
- <x-field data-name="documentationDepth" data-type="string" data-required="true">
44
- <x-field-desc markdown>控制生成内容的详细程度。选项范围从 `essentialOnly` 到 `comprehensive`。</x-field-desc>
45
- </x-field>
46
- <x-field data-name="rules" data-type="string" data-required="false">
47
- <x-field-desc markdown>一组供 AI 在内容生成过程中遵循的自定义指令、指南或约束。</x-field-desc>
48
- </x-field>
49
- <x-field data-name="locale" data-type="string" data-required="true">
50
- <x-field-desc markdown>文档的主要语言代码,例如 `en` 代表英语。</x-field-desc>
51
- </x-field>
52
- <x-field data-name="translateLanguages" data-type="array" data-required="false">
53
- <x-field-desc markdown>主要文档应翻译成的语言代码列表,例如 `zh`(中文)或 `ja`(日语)。</x-field-desc>
54
- </x-field>
55
- <x-field data-name="docsDir" data-type="string" data-required="true">
56
- <x-field-desc markdown>用于保存生成的文档文件的本地目录路径。</x-field-desc>
57
- </x-field>
58
- <x-field data-name="sourcesPath" data-type="array" data-required="true">
59
- <x-field-desc markdown>工具为生成文档而应分析的源文件、目录或 glob 模式的列表。</x-field-desc>
60
- </x-field>
61
- </x-field-group>
62
-
63
- ## 总结
64
-
65
- 定义良好的配置对于生成准确、相关且有效的文档至关重要。通过完成初始设置并理解 `config.yaml` 文件,您为所有文档任务奠定了坚实的基础。
66
-
67
- 要继续配置您的项目,请参阅以下指南:
68
- * **[初始设置](./configuration-initial-setup.md)**:创建您项目的 `config.yaml` 文件。
69
- * **[管理偏好设置](./configuration-managing-preferences.md)**:使用个人规则自定义工具的行为。