@aigne/doc-smith 0.8.12-beta.3 → 0.8.12-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.aigne/doc-smith/config.yaml +9 -6
- package/.aigne/doc-smith/output/structure-plan.json +123 -109
- package/.aigne/doc-smith/upload-cache.yaml +48 -0
- package/.github/workflows/publish-docs.yml +4 -7
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +13 -0
- package/agents/clear/choose-contents.mjs +22 -5
- package/agents/clear/clear-auth-tokens.mjs +2 -4
- package/agents/clear/clear-deployment-config.mjs +49 -0
- package/agents/clear/clear-document-config.mjs +2 -5
- package/agents/clear/clear-document-structure.mjs +2 -6
- package/agents/clear/clear-generated-docs.mjs +0 -1
- package/agents/generate/check-need-generate-structure.mjs +15 -60
- package/agents/generate/document-structure-tools/generate-sub-structure.mjs +131 -0
- package/agents/generate/generate-structure-without-tools.yaml +65 -0
- package/agents/generate/generate-structure.yaml +7 -1
- package/agents/generate/index.yaml +0 -3
- package/agents/generate/update-document-structure.yaml +3 -0
- package/agents/generate/user-review-document-structure.mjs +7 -5
- package/agents/init/index.mjs +15 -15
- package/agents/publish/publish-docs.mjs +130 -111
- package/agents/translate/index.yaml +1 -1
- package/agents/update/batch-generate-document.yaml +1 -1
- package/agents/update/batch-update-document.yaml +1 -1
- package/agents/update/check-document.mjs +3 -19
- package/agents/update/user-review-document.mjs +4 -3
- package/agents/utils/load-sources.mjs +54 -151
- package/agents/utils/transform-detail-datasources.mjs +14 -18
- package/aigne.yaml +2 -0
- package/biome.json +1 -1
- package/docs/_sidebar.md +13 -15
- package/docs/configuration-initial-setup.ja.md +179 -0
- package/docs/configuration-initial-setup.md +179 -0
- package/docs/configuration-initial-setup.zh-TW.md +179 -0
- package/docs/configuration-initial-setup.zh.md +179 -0
- package/docs/configuration-managing-preferences.ja.md +100 -0
- package/docs/configuration-managing-preferences.md +100 -0
- package/docs/configuration-managing-preferences.zh-TW.md +100 -0
- package/docs/configuration-managing-preferences.zh.md +100 -0
- package/docs/configuration.ja.md +68 -184
- package/docs/configuration.md +62 -178
- package/docs/configuration.zh-TW.md +70 -186
- package/docs/configuration.zh.md +67 -183
- package/docs/getting-started.ja.md +46 -78
- package/docs/getting-started.md +46 -78
- package/docs/getting-started.zh-TW.md +47 -79
- package/docs/getting-started.zh.md +47 -79
- package/docs/guides-cleaning-up.ja.md +50 -0
- package/docs/guides-cleaning-up.md +50 -0
- package/docs/guides-cleaning-up.zh-TW.md +50 -0
- package/docs/guides-cleaning-up.zh.md +50 -0
- package/docs/guides-evaluating-documents.ja.md +66 -0
- package/docs/guides-evaluating-documents.md +66 -0
- package/docs/guides-evaluating-documents.zh-TW.md +66 -0
- package/docs/guides-evaluating-documents.zh.md +66 -0
- package/docs/guides-generating-documentation.ja.md +149 -0
- package/docs/guides-generating-documentation.md +149 -0
- package/docs/guides-generating-documentation.zh-TW.md +149 -0
- package/docs/guides-generating-documentation.zh.md +149 -0
- package/docs/guides-interactive-chat.ja.md +85 -0
- package/docs/guides-interactive-chat.md +85 -0
- package/docs/guides-interactive-chat.zh-TW.md +85 -0
- package/docs/guides-interactive-chat.zh.md +85 -0
- package/docs/guides-managing-history.ja.md +51 -0
- package/docs/guides-managing-history.md +51 -0
- package/docs/guides-managing-history.zh-TW.md +51 -0
- package/docs/guides-managing-history.zh.md +51 -0
- package/docs/guides-publishing-your-docs.ja.md +78 -0
- package/docs/guides-publishing-your-docs.md +78 -0
- package/docs/guides-publishing-your-docs.zh-TW.md +78 -0
- package/docs/guides-publishing-your-docs.zh.md +78 -0
- package/docs/guides-translating-documentation.ja.md +95 -0
- package/docs/guides-translating-documentation.md +95 -0
- package/docs/guides-translating-documentation.zh-TW.md +95 -0
- package/docs/guides-translating-documentation.zh.md +95 -0
- package/docs/guides-updating-documentation.ja.md +77 -0
- package/docs/guides-updating-documentation.md +77 -0
- package/docs/guides-updating-documentation.zh-TW.md +77 -0
- package/docs/guides-updating-documentation.zh.md +77 -0
- package/docs/guides.ja.md +32 -0
- package/docs/guides.md +32 -0
- package/docs/guides.zh-TW.md +32 -0
- package/docs/guides.zh.md +32 -0
- package/docs/overview.ja.md +39 -60
- package/docs/overview.md +39 -60
- package/docs/overview.zh-TW.md +39 -60
- package/docs/overview.zh.md +39 -60
- package/docs/release-notes.ja.md +255 -0
- package/docs/release-notes.md +255 -0
- package/docs/release-notes.zh-TW.md +255 -0
- package/docs/release-notes.zh.md +255 -0
- package/package.json +4 -2
- package/prompts/common/document/content-rules-core.md +1 -0
- package/prompts/common/document-structure/document-structure-rules.md +8 -9
- package/prompts/common/document-structure/output-constraints.md +1 -1
- package/prompts/structure/document-rules.md +8 -2
- package/prompts/structure/generate/system-prompt.md +27 -2
- package/prompts/structure/generate/user-prompt.md +18 -0
- package/prompts/structure/update/system-prompt.md +12 -0
- package/prompts/structure/update/user-prompt.md +3 -0
- package/tests/agents/clear/choose-contents.test.mjs +8 -4
- package/tests/agents/generate/check-need-generate-structure.test.mjs +53 -63
- package/tests/agents/generate/document-structure-tools/generate-sub-structure.test.mjs +277 -0
- package/tests/agents/init/init.test.mjs +18 -18
- package/tests/agents/publish/publish-docs.test.mjs +79 -0
- package/tests/agents/update/check-document.test.mjs +7 -67
- package/tests/agents/utils/load-sources.test.mjs +90 -90
- package/tests/agents/utils/transform-detail-datasources.test.mjs +153 -196
- package/tests/utils/file-utils.test.mjs +309 -1
- package/utils/auth-utils.mjs +9 -3
- package/utils/constants/index.mjs +3 -1
- package/utils/file-utils.mjs +315 -0
- package/utils/utils.mjs +89 -50
- package/docs/advanced-how-it-works.ja.md +0 -101
- package/docs/advanced-how-it-works.md +0 -101
- package/docs/advanced-how-it-works.zh-TW.md +0 -101
- package/docs/advanced-how-it-works.zh.md +0 -101
- package/docs/advanced-quality-assurance.ja.md +0 -92
- package/docs/advanced-quality-assurance.md +0 -92
- package/docs/advanced-quality-assurance.zh-TW.md +0 -92
- package/docs/advanced-quality-assurance.zh.md +0 -92
- package/docs/advanced.ja.md +0 -20
- package/docs/advanced.md +0 -20
- package/docs/advanced.zh-TW.md +0 -20
- package/docs/advanced.zh.md +0 -20
- package/docs/changelog.ja.md +0 -486
- package/docs/changelog.md +0 -486
- package/docs/changelog.zh-TW.md +0 -486
- package/docs/changelog.zh.md +0 -486
- package/docs/cli-reference.ja.md +0 -311
- package/docs/cli-reference.md +0 -311
- package/docs/cli-reference.zh-TW.md +0 -311
- package/docs/cli-reference.zh.md +0 -311
- package/docs/configuration-interactive-setup.ja.md +0 -138
- package/docs/configuration-interactive-setup.md +0 -138
- package/docs/configuration-interactive-setup.zh-TW.md +0 -138
- package/docs/configuration-interactive-setup.zh.md +0 -138
- package/docs/configuration-language-support.ja.md +0 -64
- package/docs/configuration-language-support.md +0 -64
- package/docs/configuration-language-support.zh-TW.md +0 -64
- package/docs/configuration-language-support.zh.md +0 -64
- package/docs/configuration-llm-setup.ja.md +0 -56
- package/docs/configuration-llm-setup.md +0 -56
- package/docs/configuration-llm-setup.zh-TW.md +0 -56
- package/docs/configuration-llm-setup.zh.md +0 -56
- package/docs/configuration-preferences.ja.md +0 -144
- package/docs/configuration-preferences.md +0 -144
- package/docs/configuration-preferences.zh-TW.md +0 -144
- package/docs/configuration-preferences.zh.md +0 -144
- package/docs/features-generate-documentation.ja.md +0 -95
- package/docs/features-generate-documentation.md +0 -95
- package/docs/features-generate-documentation.zh-TW.md +0 -95
- package/docs/features-generate-documentation.zh.md +0 -95
- package/docs/features-publish-your-docs.ja.md +0 -130
- package/docs/features-publish-your-docs.md +0 -130
- package/docs/features-publish-your-docs.zh-TW.md +0 -130
- package/docs/features-publish-your-docs.zh.md +0 -130
- package/docs/features-translate-documentation.ja.md +0 -90
- package/docs/features-translate-documentation.md +0 -90
- package/docs/features-translate-documentation.zh-TW.md +0 -90
- package/docs/features-translate-documentation.zh.md +0 -90
- package/docs/features-update-and-refine.ja.md +0 -142
- package/docs/features-update-and-refine.md +0 -142
- package/docs/features-update-and-refine.zh-TW.md +0 -143
- package/docs/features-update-and-refine.zh.md +0 -142
- package/docs/features.ja.md +0 -62
- package/docs/features.md +0 -62
- package/docs/features.zh-TW.md +0 -62
- package/docs/features.zh.md +0 -62
|
@@ -1,25 +1,21 @@
|
|
|
1
|
+
import fs from "node:fs";
|
|
1
2
|
import { normalizePath, toRelativePath } from "../../utils/utils.mjs";
|
|
2
3
|
|
|
3
|
-
export default function transformDetailDatasources({ sourceIds
|
|
4
|
-
//
|
|
5
|
-
const dsMap = Object.fromEntries(
|
|
6
|
-
(datasourcesList || []).map((ds) => {
|
|
7
|
-
const normalizedSourceId = normalizePath(ds.sourceId);
|
|
8
|
-
return [normalizedSourceId, ds.content];
|
|
9
|
-
}),
|
|
10
|
-
);
|
|
11
|
-
|
|
12
|
-
// Collect formatted contents in order, with path normalization
|
|
4
|
+
export default function transformDetailDatasources({ sourceIds }) {
|
|
5
|
+
// Read file content for each sourceId, ignoring failures
|
|
13
6
|
const contents = (sourceIds || [])
|
|
14
|
-
.filter((id) => {
|
|
15
|
-
const normalizedId = normalizePath(id);
|
|
16
|
-
return dsMap[normalizedId];
|
|
17
|
-
})
|
|
18
7
|
.map((id) => {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
8
|
+
try {
|
|
9
|
+
const normalizedId = normalizePath(id);
|
|
10
|
+
const content = fs.readFileSync(normalizedId, "utf8");
|
|
11
|
+
const relativeId = toRelativePath(id);
|
|
12
|
+
return `// sourceId: ${relativeId}\n${content}\n`;
|
|
13
|
+
} catch {
|
|
14
|
+
// Ignore files that cannot be read
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
})
|
|
18
|
+
.filter(Boolean);
|
|
23
19
|
|
|
24
20
|
return { detailDataSources: contents.join("") };
|
|
25
21
|
}
|
package/aigne.yaml
CHANGED
|
@@ -11,6 +11,7 @@ agents:
|
|
|
11
11
|
|
|
12
12
|
# Documentation Structure Generation
|
|
13
13
|
- ./agents/generate/generate-structure.yaml
|
|
14
|
+
- ./agents/generate/generate-structure-without-tools.yaml
|
|
14
15
|
- ./agents/generate/update-document-structure.yaml
|
|
15
16
|
- ./agents/generate/check-need-generate-structure.mjs
|
|
16
17
|
- ./agents/generate/refine-document-structure.yaml
|
|
@@ -54,6 +55,7 @@ agents:
|
|
|
54
55
|
- ./agents/clear/clear-generated-docs.mjs
|
|
55
56
|
- ./agents/clear/clear-document-config.mjs
|
|
56
57
|
- ./agents/clear/clear-auth-tokens.mjs
|
|
58
|
+
- ./agents/clear/clear-deployment-config.mjs
|
|
57
59
|
|
|
58
60
|
# Utilities
|
|
59
61
|
- ./agents/utils/load-sources.mjs
|
package/biome.json
CHANGED
package/docs/_sidebar.md
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
* [Overview](/overview.md)
|
|
2
2
|
* [Getting Started](/getting-started.md)
|
|
3
|
-
* [
|
|
4
|
-
* [
|
|
5
|
-
* [
|
|
6
|
-
* [
|
|
7
|
-
* [
|
|
8
|
-
* [
|
|
9
|
-
* [
|
|
10
|
-
* [
|
|
11
|
-
* [
|
|
12
|
-
|
|
13
|
-
* [
|
|
14
|
-
* [
|
|
15
|
-
|
|
16
|
-
* [Quality Assurance](/advanced-quality-assurance.md)
|
|
17
|
-
* [Changelog](/changelog.md)
|
|
3
|
+
* [Guides](/guides.md)
|
|
4
|
+
* [Generating Documentation](/guides-generating-documentation.md)
|
|
5
|
+
* [Updating Documentation](/guides-updating-documentation.md)
|
|
6
|
+
* [Translating Documentation](/guides-translating-documentation.md)
|
|
7
|
+
* [Publishing Your Docs](/guides-publishing-your-docs.md)
|
|
8
|
+
* [Managing History](/guides-managing-history.md)
|
|
9
|
+
* [Evaluating Documents](/guides-evaluating-documents.md)
|
|
10
|
+
* [Cleaning Up](/guides-cleaning-up.md)
|
|
11
|
+
* [Interactive Chat](/guides-interactive-chat.md)
|
|
12
|
+
* [Configuration](/configuration.md)
|
|
13
|
+
* [Initial Setup](/configuration-initial-setup.md)
|
|
14
|
+
* [Managing Preferences](/configuration-managing-preferences.md)
|
|
15
|
+
* [Release Notes](/release-notes.md)
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
# 初期設定
|
|
2
|
+
|
|
3
|
+
このガイドでは、AIGNE DocSmith の対話型セットアッププロセスをステップバイステップで説明します。このプロセスは、`generate` コマンドを初めて実行する際に開始されるか、手動で開始することもできます。その目的は、ドキュメント生成の設定を保存する `config.yaml` ファイルを作成することです。
|
|
4
|
+
|
|
5
|
+
## プロセスの開始
|
|
6
|
+
|
|
7
|
+
設定を手動で開始するには、ターミナルでプロジェクトのルートディレクトリに移動し、次のコマンドを実行します。
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
aigne doc init
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
このコマンドは対話式の質問を起動し、ドキュメント設定の構成をガイドします。
|
|
14
|
+
|
|
15
|
+
## 設定手順
|
|
16
|
+
|
|
17
|
+
セットアッププロセスは、特定のニーズに合わせてドキュメントを調整するために設計された 9 つの質問で構成されています。
|
|
18
|
+
|
|
19
|
+
### ステップ 1: ドキュメントの目的を定義する
|
|
20
|
+
|
|
21
|
+
最初に、ドキュメントの主な目的を定義するよう求められます。この選択は、生成されるコンテンツのトーン、構造、および焦点に影響を与えます。
|
|
22
|
+
|
|
23
|
+
**プロンプト:** `📝 [1/9]: What should your documentation help readers achieve?`
|
|
24
|
+
|
|
25
|
+
以下のリストから複数のオプションを選択できます。
|
|
26
|
+
|
|
27
|
+
| オプション | 名前 | 説明 |
|
|
28
|
+
| :--- | :--- | :--- |
|
|
29
|
+
| `getStarted` | 迅速な利用開始 | 新規ユーザーが 30 分以内にゼロから作業を開始できるよう支援します。 |
|
|
30
|
+
| `completeTasks` | 特定のタスクの完了 | 一般的なワークフローとユースケースをユーザーに案内します。 |
|
|
31
|
+
| `findAnswers` | 迅速な回答の検索 | すべての機能と API の検索可能なリファレンスを提供します。 |
|
|
32
|
+
| `understandSystem` | システムの理解 | システムの仕組みと設計決定の背後にある理由を説明します。 |
|
|
33
|
+
| `solveProblems` | 問題の解決 | ユーザーが問題をトラブルシューティングし、修正するのを助けます。 |
|
|
34
|
+
| `mixedPurpose` | 上記の組み合わせ | 複数のニーズを包括的にカバーします。 |
|
|
35
|
+
|
|
36
|
+
### ステップ 2: 対象読者を特定する
|
|
37
|
+
|
|
38
|
+
次に、ドキュメントの主な読者を指定します。これにより、言語と技術的な深さを適切に調整できます。
|
|
39
|
+
|
|
40
|
+
**プロンプト:** `👥 [2/9]: Who will be reading your documentation?`
|
|
41
|
+
|
|
42
|
+
以下の読者から 1 つ以上を選択できます。
|
|
43
|
+
|
|
44
|
+
| オプション | 名前 | 説明 |
|
|
45
|
+
| :--- | :--- | :--- |
|
|
46
|
+
| `endUsers` | エンドユーザー (非技術者) | 製品を使用するがコーディングはしない人々。 |
|
|
47
|
+
| `developers` | 統合開発者 | これを自分のプロジェクトに追加するエンジニア。 |
|
|
48
|
+
| `devops` | DevOps/インフラストラクチャ | システムをデプロイ、監視、保守するチーム。 |
|
|
49
|
+
| `decisionMakers` | 技術的な意思決定者 | テクノロジーを評価するアーキテクトやリード。 |
|
|
50
|
+
| `supportTeams` | サポートチーム | 他の人が製品を使用するのを助ける人々。 |
|
|
51
|
+
| `mixedTechnical` | 混合技術読者層 | 開発者、DevOps、その他の技術ユーザーの組み合わせ。 |
|
|
52
|
+
|
|
53
|
+
### ステップ 3: カスタムルールを提供する
|
|
54
|
+
|
|
55
|
+
このオプションのステップでは、コンテンツ生成中に AI が従うべき特定の指示や制約を提供できます。
|
|
56
|
+
|
|
57
|
+
**プロンプト:** `📋 [3/9]: Any custom rules or requirements for your documentation? (Optional, press Enter to skip)`
|
|
58
|
+
|
|
59
|
+
トーン、スタイル、除外するコンテンツなど、特定の要件を入力できます。例: 「マーケティング用語の使用を避け、技術的な正確さに焦点を当てる。」
|
|
60
|
+
|
|
61
|
+
### ステップ 4: 読者の知識レベルを指定する
|
|
62
|
+
|
|
63
|
+
読者の想定される知識レベルを示してください。これにより、コンテンツが簡単すぎず、複雑すぎず、適切なレベルで提供されることが保証されます。
|
|
64
|
+
|
|
65
|
+
**プロンプト:** `🧠 [4/9]: How much do readers already know about your project?`
|
|
66
|
+
|
|
67
|
+
読者に最も合うオプションを選択してください。
|
|
68
|
+
|
|
69
|
+
| オプション | 名前 | 説明 |
|
|
70
|
+
| :--- | :--- | :--- |
|
|
71
|
+
| `completeBeginners` | 完全な初心者 | ドメインやテクノロジーに全く慣れていない。 |
|
|
72
|
+
| `domainFamiliar` | ドメインには詳しいが、ツールは初めて | 問題領域は知っているが、このソリューションは初めて。 |
|
|
73
|
+
| `experiencedUsers` | 経験豊富なユーザー | リファレンスや高度なトピックを必要とする通常のユーザー。 |
|
|
74
|
+
| `emergencyTroubleshooting` | 緊急/トラブルシューティング | 問題を迅速に解決する必要があるユーザー。 |
|
|
75
|
+
| `exploringEvaluating` | 探索/評価中 | ツールが自分のニーズに合うかどうかを判断しようとしているユーザー。 |
|
|
76
|
+
|
|
77
|
+
### ステップ 5: ドキュメントの深さを設定する
|
|
78
|
+
|
|
79
|
+
ドキュメントをどれだけ詳細にするかを選択します。これにより、生成されるコンテンツの範囲と詳細レベルが決まります。
|
|
80
|
+
|
|
81
|
+
**プロンプト:** `📊 [5/9]: How detailed should your documentation be?`
|
|
82
|
+
|
|
83
|
+
以下の詳細レベルから 1 つを選択してください。
|
|
84
|
+
|
|
85
|
+
| オプション | 名前 | 説明 |
|
|
86
|
+
| :--- | :--- | :--- |
|
|
87
|
+
| `essentialOnly` | 不可欠なもののみ | 最も一般的な 80% のユースケースを簡潔にカバーします。 |
|
|
88
|
+
| `balancedCoverage` | バランスの取れたカバレッジ | 実用的な例とともに十分な深さを提供します。 |
|
|
89
|
+
| `comprehensive` | 包括的 | すべての機能、エッジケース、高度なシナリオをカバーします。 |
|
|
90
|
+
| `aiDecide` | AI に決定させる | ツールがコードの複雑さを分析し、適切な深さを提案します。 |
|
|
91
|
+
|
|
92
|
+
### ステップ 6: 主要言語を選択する
|
|
93
|
+
|
|
94
|
+
ドキュメントの主要言語を選択します。システムはオペレーティングシステムの言語を検出し、デフォルトとして提案します。
|
|
95
|
+
|
|
96
|
+
**プロンプト:** `🌐 [6/9]: What's your main documentation language?`
|
|
97
|
+
|
|
98
|
+
英語、中国語 (簡体字)、スペイン語を含む 12 のサポートされている言語のリストが表示されます。
|
|
99
|
+
|
|
100
|
+
### ステップ 7: 翻訳言語を選択する
|
|
101
|
+
|
|
102
|
+
ドキュメントを翻訳したい追加の言語を選択します。
|
|
103
|
+
|
|
104
|
+
**プロンプト:** `🔄 [7/9]: Which languages should we translate to?`
|
|
105
|
+
|
|
106
|
+
前のステップで選択した主要言語を除き、サポートされているオプションのリストから複数の言語を選択できます。
|
|
107
|
+
|
|
108
|
+
### ステップ 8: 出力ディレクトリを定義する
|
|
109
|
+
|
|
110
|
+
生成されたドキュメントファイルを保存するフォルダを指定します。
|
|
111
|
+
|
|
112
|
+
**プロンプト:** `📁 [8/9]: Where should we save your documentation?`
|
|
113
|
+
|
|
114
|
+
デフォルトのパスは `.aigne/doc-smith/docs` です。これを受け入れるか、別のパスを提供することができます。
|
|
115
|
+
|
|
116
|
+
### ステップ 9: コンテンツソースを指定する
|
|
117
|
+
|
|
118
|
+
ドキュメントを生成するためにツールが分析すべきファイルとフォルダを指定します。複数のパスを追加したり、高度なフィルタリングのために glob パターンを使用したりできます。
|
|
119
|
+
|
|
120
|
+
**プロンプト:** `🔍 [9/9]: Content Sources`
|
|
121
|
+
|
|
122
|
+
ファイルパス、フォルダパス、または glob パターン (例: `src/**/*.js`) を入力するよう求められます。パスを指定しない場合、ツールはデフォルトでプロジェクトディレクトリ全体を分析します。
|
|
123
|
+
|
|
124
|
+
## 生成された設定ファイル
|
|
125
|
+
|
|
126
|
+
質問に回答し終えると、DocSmith はあなたの回答を `.aigne/doc-smith/` ディレクトリにある `config.yaml` という名前の設定ファイルに保存します。このファイルは、将来のすべてのドキュメント生成の設計図として機能し、いつでも手動で編集できます。
|
|
127
|
+
|
|
128
|
+
以下は、生成された `config.yaml` ファイルの例です。
|
|
129
|
+
|
|
130
|
+
```yaml config.yaml title="config.yaml"
|
|
131
|
+
# ドキュメント公開用のプロジェクト情報
|
|
132
|
+
projectName: AIGNE DocSmith
|
|
133
|
+
projectDesc: AIGNE DocSmith is a powerful, AI-driven documentation generation tool...
|
|
134
|
+
projectLogo: https://docsmith.aigne.io/image-bin/uploads/9645caf64b4232699982c4d940b03b90.svg
|
|
135
|
+
|
|
136
|
+
# =============================================================================
|
|
137
|
+
# ドキュメント設定
|
|
138
|
+
# =============================================================================
|
|
139
|
+
|
|
140
|
+
# 目的: 読者に達成してほしい主な成果は何か?
|
|
141
|
+
documentPurpose:
|
|
142
|
+
- getStarted
|
|
143
|
+
- completeTasks
|
|
144
|
+
|
|
145
|
+
# 対象読者: 誰がこれを最も頻繁に読むか?
|
|
146
|
+
targetAudienceTypes:
|
|
147
|
+
- endUsers
|
|
148
|
+
|
|
149
|
+
# 読者の知識レベル: 読者は通常、どのような知識を持っているか?
|
|
150
|
+
readerKnowledgeLevel: completeBeginners
|
|
151
|
+
|
|
152
|
+
# ドキュメントの深さ: ドキュメントはどの程度包括的であるべきか?
|
|
153
|
+
documentationDepth: comprehensive
|
|
154
|
+
|
|
155
|
+
# カスタムルール: 特定のドキュメント生成ルールと要件を定義する
|
|
156
|
+
rules: |
|
|
157
|
+
Avoid using vague or empty words...
|
|
158
|
+
|
|
159
|
+
# 対象読者: 特定の対象読者とその特徴を記述する
|
|
160
|
+
targetAudience: |
|
|
161
|
+
|
|
162
|
+
# 言語設定
|
|
163
|
+
locale: en
|
|
164
|
+
translateLanguages:
|
|
165
|
+
- zh
|
|
166
|
+
- ja
|
|
167
|
+
|
|
168
|
+
# ディレクトリとソースパスの設定
|
|
169
|
+
docsDir: ./docs # 生成されたドキュメントを保存するディレクトリ
|
|
170
|
+
sourcesPath: # 分析するソースコードのパス
|
|
171
|
+
- ./README.md
|
|
172
|
+
- ./agents
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
## 次のステップ
|
|
176
|
+
|
|
177
|
+
初期設定が完了し、ドキュメントを作成する準備が整いました。
|
|
178
|
+
|
|
179
|
+
* [ドキュメントの生成](./guides-generating-documentation.md) ガイドに進み、生成プロセスの実行方法を学びましょう。
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
# Initial Setup
|
|
2
|
+
|
|
3
|
+
This guide provides a step-by-step walkthrough of the interactive setup process for AIGNE DocSmith. This process is initiated the first time you run the `generate` command, or it can be started manually. Its purpose is to create a `config.yaml` file that stores your preferences for generating documentation.
|
|
4
|
+
|
|
5
|
+
## Starting the Process
|
|
6
|
+
|
|
7
|
+
To manually begin the configuration, navigate to your project's root directory in your terminal and execute the following command:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
aigne doc init
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
This command launches an interactive questionnaire that will guide you through configuring your documentation settings.
|
|
14
|
+
|
|
15
|
+
## Configuration Steps
|
|
16
|
+
|
|
17
|
+
The setup process consists of nine questions designed to tailor the documentation to your specific needs.
|
|
18
|
+
|
|
19
|
+
### Step 1: Define Documentation Purpose
|
|
20
|
+
|
|
21
|
+
You will first be asked to define the primary goals of your documentation. This selection influences the tone, structure, and focus of the generated content.
|
|
22
|
+
|
|
23
|
+
**Prompt:** `📝 [1/9]: What should your documentation help readers achieve?`
|
|
24
|
+
|
|
25
|
+
You can select multiple options from the list below:
|
|
26
|
+
|
|
27
|
+
| Option | Name | Description |
|
|
28
|
+
| :--- | :--- | :--- |
|
|
29
|
+
| `getStarted` | Get started quickly | Help new users go from zero to working in <30 minutes. |
|
|
30
|
+
| `completeTasks` | Complete specific tasks | Guide users through common workflows and use cases. |
|
|
31
|
+
| `findAnswers` | Find answers fast | Provide searchable reference for all features and APIs. |
|
|
32
|
+
| `understandSystem` | Understand the system | Explain how it works and the reasoning behind design decisions. |
|
|
33
|
+
| `solveProblems` | Solve problems | Help users troubleshoot and fix issues. |
|
|
34
|
+
| `mixedPurpose` | Mix of above | Cover multiple needs comprehensively. |
|
|
35
|
+
|
|
36
|
+
### Step 2: Identify Target Audience
|
|
37
|
+
|
|
38
|
+
Next, specify who will be the primary readers of your documentation. This helps tailor the language and technical depth appropriately.
|
|
39
|
+
|
|
40
|
+
**Prompt:** `👥 [2/9]: Who will be reading your documentation?`
|
|
41
|
+
|
|
42
|
+
You can select one or more of the following audiences:
|
|
43
|
+
|
|
44
|
+
| Option | Name | Description |
|
|
45
|
+
| :--- | :--- | :--- |
|
|
46
|
+
| `endUsers` | End users (non-technical) | People who use the product but do not code. |
|
|
47
|
+
| `developers` | Developers integrating | Engineers adding this to their projects. |
|
|
48
|
+
| `devops` | DevOps/Infrastructure | Teams deploying, monitoring, and maintaining systems. |
|
|
49
|
+
| `decisionMakers` | Technical decision makers | Architects or leads evaluating the technology. |
|
|
50
|
+
| `supportTeams` | Support teams | People helping others use the product. |
|
|
51
|
+
| `mixedTechnical` | Mixed technical audience | A combination of developers, DevOps, and other technical users. |
|
|
52
|
+
|
|
53
|
+
### Step 3: Provide Custom Rules
|
|
54
|
+
|
|
55
|
+
This optional step allows you to provide specific instructions or constraints for the AI to follow during content generation.
|
|
56
|
+
|
|
57
|
+
**Prompt:** `📋 [3/9]: Any custom rules or requirements for your documentation? (Optional, press Enter to skip)`
|
|
58
|
+
|
|
59
|
+
You can input any specific requirements, such as tone, style, or content to exclude. For example: "Avoid using marketing language and focus on technical accuracy."
|
|
60
|
+
|
|
61
|
+
### Step 4: Specify Reader Knowledge Level
|
|
62
|
+
|
|
63
|
+
Indicate the assumed knowledge level of your audience. This ensures the content is pitched at the right level, without being too basic or too complex.
|
|
64
|
+
|
|
65
|
+
**Prompt:** `🧠 [4/9]: How much do readers already know about your project?`
|
|
66
|
+
|
|
67
|
+
Select the option that best describes your readers:
|
|
68
|
+
|
|
69
|
+
| Option | Name | Description |
|
|
70
|
+
| :--- | :--- | :--- |
|
|
71
|
+
| `completeBeginners` | Complete beginners | New to the domain or technology entirely. |
|
|
72
|
+
| `domainFamiliar` | Domain-familiar, tool-new | Know the problem space but are new to this solution. |
|
|
73
|
+
| `experiencedUsers` | Experienced users | Regular users who need reference or advanced topics. |
|
|
74
|
+
| `emergencyTroubleshooting` | Emergency/troubleshooting | Users who need to fix a problem quickly. |
|
|
75
|
+
| `exploringEvaluating` | Exploring/evaluating | Users trying to determine if the tool fits their needs. |
|
|
76
|
+
|
|
77
|
+
### Step 5: Set Documentation Depth
|
|
78
|
+
|
|
79
|
+
Choose how detailed the documentation should be. This determines the scope and level of detail in the generated content.
|
|
80
|
+
|
|
81
|
+
**Prompt:** `📊 [5/9]: How detailed should your documentation be?`
|
|
82
|
+
|
|
83
|
+
Select one of the following levels of detail:
|
|
84
|
+
|
|
85
|
+
| Option | Name | Description |
|
|
86
|
+
| :--- | :--- | :--- |
|
|
87
|
+
| `essentialOnly` | Essential only | Covers the most common 80% of use cases concisely. |
|
|
88
|
+
| `balancedCoverage` | Balanced coverage | Provides good depth with practical examples. |
|
|
89
|
+
| `comprehensive` | Comprehensive | Covers all features, edge cases, and advanced scenarios. |
|
|
90
|
+
| `aiDecide` | Let AI decide | The tool analyzes code complexity to suggest an appropriate depth. |
|
|
91
|
+
|
|
92
|
+
### Step 6: Select Primary Language
|
|
93
|
+
|
|
94
|
+
Choose the main language for your documentation. The system will detect your operating system's language and suggest it as the default.
|
|
95
|
+
|
|
96
|
+
**Prompt:** `🌐 [6/9]: What's your main documentation language?`
|
|
97
|
+
|
|
98
|
+
You will be presented with a list of 12 supported languages, including English, Chinese (Simplified), and Spanish.
|
|
99
|
+
|
|
100
|
+
### Step 7: Choose Translation Languages
|
|
101
|
+
|
|
102
|
+
Select any additional languages you want the documentation to be translated into.
|
|
103
|
+
|
|
104
|
+
**Prompt:** `🔄 [7/9]: Which languages should we translate to?`
|
|
105
|
+
|
|
106
|
+
You can choose multiple languages from the list of supported options, excluding the primary language you selected in the previous step.
|
|
107
|
+
|
|
108
|
+
### Step 8: Define Output Directory
|
|
109
|
+
|
|
110
|
+
Specify the folder where the generated documentation files should be saved.
|
|
111
|
+
|
|
112
|
+
**Prompt:** `📁 [8/9]: Where should we save your documentation?`
|
|
113
|
+
|
|
114
|
+
The default path is `.aigne/doc-smith/docs`. You can accept this or provide a different path.
|
|
115
|
+
|
|
116
|
+
### Step 9: Specify Content Sources
|
|
117
|
+
|
|
118
|
+
Indicate which files and folders the tool should analyze to generate documentation. You can add multiple paths and use glob patterns for advanced filtering.
|
|
119
|
+
|
|
120
|
+
**Prompt:** `🔍 [9/9]: Content Sources`
|
|
121
|
+
|
|
122
|
+
You will be prompted to enter file paths, folder paths, or glob patterns (e.g., `src/**/*.js`). If you do not provide any paths, the tool will analyze the entire project directory by default.
|
|
123
|
+
|
|
124
|
+
## Generated Configuration File
|
|
125
|
+
|
|
126
|
+
After completing the questionnaire, DocSmith saves your responses to a configuration file named `config.yaml` in the `.aigne/doc-smith/` directory. This file serves as the blueprint for all future documentation generation and can be manually edited at any time.
|
|
127
|
+
|
|
128
|
+
Here is an example of a generated `config.yaml` file:
|
|
129
|
+
|
|
130
|
+
```yaml config.yaml title="config.yaml"
|
|
131
|
+
# Project information for documentation publishing
|
|
132
|
+
projectName: AIGNE DocSmith
|
|
133
|
+
projectDesc: AIGNE DocSmith is a powerful, AI-driven documentation generation tool...
|
|
134
|
+
projectLogo: https://docsmith.aigne.io/image-bin/uploads/9645caf64b4232699982c4d940b03b90.svg
|
|
135
|
+
|
|
136
|
+
# =============================================================================
|
|
137
|
+
# Documentation Configuration
|
|
138
|
+
# =============================================================================
|
|
139
|
+
|
|
140
|
+
# Purpose: What's the main outcome you want readers to achieve?
|
|
141
|
+
documentPurpose:
|
|
142
|
+
- getStarted
|
|
143
|
+
- completeTasks
|
|
144
|
+
|
|
145
|
+
# Target Audience: Who will be reading this most often?
|
|
146
|
+
targetAudienceTypes:
|
|
147
|
+
- endUsers
|
|
148
|
+
|
|
149
|
+
# Reader Knowledge Level: What do readers typically know when they arrive?
|
|
150
|
+
readerKnowledgeLevel: completeBeginners
|
|
151
|
+
|
|
152
|
+
# Documentation Depth: How comprehensive should the documentation be?
|
|
153
|
+
documentationDepth: comprehensive
|
|
154
|
+
|
|
155
|
+
# Custom Rules: Define specific documentation generation rules and requirements
|
|
156
|
+
rules: |
|
|
157
|
+
Avoid using vague or empty words...
|
|
158
|
+
|
|
159
|
+
# Target Audience: Describe your specific target audience and their characteristics
|
|
160
|
+
targetAudience: |
|
|
161
|
+
|
|
162
|
+
# Language settings
|
|
163
|
+
locale: en
|
|
164
|
+
translateLanguages:
|
|
165
|
+
- zh
|
|
166
|
+
- ja
|
|
167
|
+
|
|
168
|
+
# Directory and source path configurations
|
|
169
|
+
docsDir: ./docs # Directory to save generated documentation
|
|
170
|
+
sourcesPath: # Source code paths to analyze
|
|
171
|
+
- ./README.md
|
|
172
|
+
- ./agents
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
## Next Steps
|
|
176
|
+
|
|
177
|
+
With your initial configuration complete, you are now ready to create your documentation.
|
|
178
|
+
|
|
179
|
+
* Proceed to the [Generating Documentation](./guides-generating-documentation.md) guide to learn how to run the generation process.
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
# 初始設定
|
|
2
|
+
|
|
3
|
+
本指南將逐步引導您完成 AIGNE DocSmith 的互動式設定流程。此流程會在您首次執行 `generate` 指令時啟動,也可以手動開始。其目的是建立一個 `config.yaml` 檔案,用來儲存您產生文件的偏好設定。
|
|
4
|
+
|
|
5
|
+
## 開始流程
|
|
6
|
+
|
|
7
|
+
若要手動開始設定,請在終端機中導覽至您的專案根目錄,並執行以下指令:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
aigne doc init
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
此指令會啟動一個互動式問卷,引導您完成文件設定。
|
|
14
|
+
|
|
15
|
+
## 設定步驟
|
|
16
|
+
|
|
17
|
+
設定流程包含九個問題,旨在根據您的特定需求量身打造文件。
|
|
18
|
+
|
|
19
|
+
### 步驟 1:定義文件目的
|
|
20
|
+
|
|
21
|
+
首先,系統會請您定義文件的主要目標。這項選擇會影響所產生內容的語氣、結構和重點。
|
|
22
|
+
|
|
23
|
+
**提示:** `📝 [1/9]:您的文件應幫助讀者達成什麼目標?`
|
|
24
|
+
|
|
25
|
+
您可以從下表中選取多個選項:
|
|
26
|
+
|
|
27
|
+
| 選項 | 名稱 | 描述 |
|
|
28
|
+
| :--- | :--- | :--- |
|
|
29
|
+
| `getStarted` | 快速入門 | 幫助新使用者在 30 分鐘內從零到上手。 |
|
|
30
|
+
| `completeTasks` | 完成特定任務 | 引導使用者完成常見的工作流程和使用案例。 |
|
|
31
|
+
| `findAnswers` | 快速尋找答案 | 為所有功能和 API 提供可搜尋的參考資料。 |
|
|
32
|
+
| `understandSystem` | 了解系統 | 解釋其運作方式以及設計決策背後的原因。 |
|
|
33
|
+
| `solveProblems` | 解決問題 | 幫助使用者進行疑難排解和修復問題。 |
|
|
34
|
+
| `mixedPurpose` | 以上混合 | 全面涵蓋多種需求。 |
|
|
35
|
+
|
|
36
|
+
### 步驟 2:識別目標讀者
|
|
37
|
+
|
|
38
|
+
接著,請指定文件的主要讀者是誰。這有助於適當地調整語言和技術深度。
|
|
39
|
+
|
|
40
|
+
**提示:** `👥 [2/9]:誰會閱讀您的文件?`
|
|
41
|
+
|
|
42
|
+
您可以選取以下一種或多種讀者群:
|
|
43
|
+
|
|
44
|
+
| 選項 | 名稱 | 描述 |
|
|
45
|
+
| :--- | :--- | :--- |
|
|
46
|
+
| `endUsers` | 終端使用者(非技術人員) | 使用產品但不寫程式的人。 |
|
|
47
|
+
| `developers` | 進行整合的開發者 | 將此產品加入其專案的工程師。 |
|
|
48
|
+
| `devops` | DevOps/基礎架構人員 | 部署、監控和維護系統的團隊。 |
|
|
49
|
+
| `decisionMakers` | 技術決策者 | 評估此技術的架構師或主管。 |
|
|
50
|
+
| `supportTeams` | 支援團隊 | 協助他人使用產品的人員。 |
|
|
51
|
+
| `mixedTechnical` | 混合技術背景的讀者 | 開發者、DevOps 和其他技術使用者的組合。 |
|
|
52
|
+
|
|
53
|
+
### 步驟 3:提供自訂規則
|
|
54
|
+
|
|
55
|
+
這個選填步驟讓您可以提供特定的指示或限制,供 AI 在內容生成過程中遵循。
|
|
56
|
+
|
|
57
|
+
**提示:** `📋 [3/9]:您的文件是否有任何自訂規則或要求?(選填,按 Enter 鍵跳過)`
|
|
58
|
+
|
|
59
|
+
您可以輸入任何特定要求,例如語氣、風格或要排除的內容。例如:「避免使用行銷語言,並專注於技術準確性。」
|
|
60
|
+
|
|
61
|
+
### 步驟 4:指定讀者知識水平
|
|
62
|
+
|
|
63
|
+
請指出您讀者群的預設知識水平。這能確保內容的難易度適中,不會過於基礎或過於複雜。
|
|
64
|
+
|
|
65
|
+
**提示:** `🧠 [4/9]:讀者對您的專案已經了解多少?`
|
|
66
|
+
|
|
67
|
+
請選擇最能描述您讀者的選項:
|
|
68
|
+
|
|
69
|
+
| 選項 | 名稱 | 描述 |
|
|
70
|
+
| :--- | :--- | :--- |
|
|
71
|
+
| `completeBeginners` | 完全的初學者 | 完全不熟悉該領域或技術。 |
|
|
72
|
+
| `domainFamiliar` | 熟悉領域,但對工具陌生 | 了解問題領域,但對此解決方案是新手。 |
|
|
73
|
+
| `experiencedUsers` | 有經驗的使用者 | 需要參考資料或進階主題的常規使用者。 |
|
|
74
|
+
| `emergencyTroubleshooting` | 緊急/疑難排解 | 需要快速解決問題的使用者。 |
|
|
75
|
+
| `exploringEvaluating` | 探索/評估 | 試圖判斷此工具是否符合其需求的使用者。 |
|
|
76
|
+
|
|
77
|
+
### 步驟 5:設定文件深度
|
|
78
|
+
|
|
79
|
+
選擇文件的詳細程度。這決定了所產生內容的範圍和詳細程度。
|
|
80
|
+
|
|
81
|
+
**提示:** `📊 [5/9]:您的文件應該多詳細?`
|
|
82
|
+
|
|
83
|
+
請選擇以下其中一個詳細程度:
|
|
84
|
+
|
|
85
|
+
| 選項 | 名稱 | 描述 |
|
|
86
|
+
| :--- | :--- | :--- |
|
|
87
|
+
| `essentialOnly` | 僅含必要內容 | 簡潔地涵蓋 80% 最常見的使用案例。 |
|
|
88
|
+
| `balancedCoverage` | 均衡的涵蓋範圍 | 提供具備實用範例的良好深度。 |
|
|
89
|
+
| `comprehensive` | 全面詳盡 | 涵蓋所有功能、邊界案例和進階情境。 |
|
|
90
|
+
| `aiDecide` | 讓 AI 決定 | 工具會分析程式碼的複雜度,以建議適當的深度。 |
|
|
91
|
+
|
|
92
|
+
### 步驟 6:選擇主要語言
|
|
93
|
+
|
|
94
|
+
選擇文件的主要語言。系統會偵測您作業系統的語言,並建議其為預設語言。
|
|
95
|
+
|
|
96
|
+
**提示:** `🌐 [6/9]:您的主要文件語言是什麼?`
|
|
97
|
+
|
|
98
|
+
系統將會顯示一份包含 12 種支援語言的清單,包括英語、簡體中文和西班牙語。
|
|
99
|
+
|
|
100
|
+
### 步驟 7:選擇翻譯語言
|
|
101
|
+
|
|
102
|
+
選擇您希望將文件翻譯成的其他語言。
|
|
103
|
+
|
|
104
|
+
**提示:** `🔄 [7/9]:我們應該將文件翻譯成哪些語言?`
|
|
105
|
+
|
|
106
|
+
您可以從支援的選項清單中選擇多種語言,不包括您在上一步驟中選擇的主要語言。
|
|
107
|
+
|
|
108
|
+
### 步驟 8:定義輸出目錄
|
|
109
|
+
|
|
110
|
+
指定儲存所產生文件檔案的資料夾。
|
|
111
|
+
|
|
112
|
+
**提示:** `📁 [8/9]:我們應該將您的文件儲存在哪裡?`
|
|
113
|
+
|
|
114
|
+
預設路徑為 `.aigne/doc-smith/docs`。您可以接受此路徑或提供不同的路徑。
|
|
115
|
+
|
|
116
|
+
### 步驟 9:指定內容來源
|
|
117
|
+
|
|
118
|
+
指出工具應分析哪些檔案和資料夾以產生文件。您可以新增多個路徑,並使用 glob 模式進行進階篩選。
|
|
119
|
+
|
|
120
|
+
**提示:** `🔍 [9/9]:內容來源`
|
|
121
|
+
|
|
122
|
+
系統會提示您輸入檔案路徑、資料夾路徑或 glob 模式(例如 `src/**/*.js`)。如果您未提供任何路徑,工具預設會分析整個專案目錄。
|
|
123
|
+
|
|
124
|
+
## 產生的設定檔
|
|
125
|
+
|
|
126
|
+
完成問卷後,DocSmith 會將您的回答儲存到位於 `.aigne/doc-smith/` 目錄中名為 `config.yaml` 的設定檔。此檔案將作為未來所有文件產生的藍圖,並且可以隨時手動編輯。
|
|
127
|
+
|
|
128
|
+
以下是一個產生的 `config.yaml` 檔案範例:
|
|
129
|
+
|
|
130
|
+
```yaml config.yaml title="config.yaml"
|
|
131
|
+
# 文件發布的專案資訊
|
|
132
|
+
projectName: AIGNE DocSmith
|
|
133
|
+
projectDesc: AIGNE DocSmith is a powerful, AI-driven documentation generation tool...
|
|
134
|
+
projectLogo: https://docsmith.aigne.io/image-bin/uploads/9645caf64b4232699982c4d940b03b90.svg
|
|
135
|
+
|
|
136
|
+
# =============================================================================
|
|
137
|
+
# 文件設定
|
|
138
|
+
# =============================================================================
|
|
139
|
+
|
|
140
|
+
# 目的:您希望讀者達成的最主要成果是什麼?
|
|
141
|
+
documentPurpose:
|
|
142
|
+
- getStarted
|
|
143
|
+
- completeTasks
|
|
144
|
+
|
|
145
|
+
# 目標讀者:誰最常閱讀此文件?
|
|
146
|
+
targetAudienceTypes:
|
|
147
|
+
- endUsers
|
|
148
|
+
|
|
149
|
+
# 讀者知識水平:讀者在閱讀文件時通常具備哪些知識?
|
|
150
|
+
readerKnowledgeLevel: completeBeginners
|
|
151
|
+
|
|
152
|
+
# 文件深度:文件應該多全面?
|
|
153
|
+
documentationDepth: comprehensive
|
|
154
|
+
|
|
155
|
+
# 自訂規則:定義特定的文件產生規則和要求
|
|
156
|
+
rules: |
|
|
157
|
+
Avoid using vague or empty words...
|
|
158
|
+
|
|
159
|
+
# 目標讀者:描述您的特定目標讀者及其特徵
|
|
160
|
+
targetAudience: |
|
|
161
|
+
|
|
162
|
+
# 語言設定
|
|
163
|
+
locale: en
|
|
164
|
+
translateLanguages:
|
|
165
|
+
- zh
|
|
166
|
+
- ja
|
|
167
|
+
|
|
168
|
+
# 目錄和來源路徑設定
|
|
169
|
+
docsDir: ./docs # 儲存所產生文件的目錄
|
|
170
|
+
sourcesPath: # 要分析的原始碼路徑
|
|
171
|
+
- ./README.md
|
|
172
|
+
- ./agents
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
## 後續步驟
|
|
176
|
+
|
|
177
|
+
初始設定完成後,您現在可以開始建立文件了。
|
|
178
|
+
|
|
179
|
+
* 請前往 [產生文件](./guides-generating-documentation.md) 指南,了解如何執行產生流程。
|