@aigne/doc-smith 0.7.0 → 0.7.1

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 (44) hide show
  1. package/.aigne/doc-smith/config.yaml +70 -0
  2. package/.aigne/doc-smith/output/structure-plan.json +152 -0
  3. package/.aigne/doc-smith/preferences.yml +31 -0
  4. package/.aigne/doc-smith/upload-cache.yaml +288 -0
  5. package/CHANGELOG.md +7 -0
  6. package/README.md +33 -15
  7. package/agents/input-generator.mjs +10 -20
  8. package/docs/_sidebar.md +17 -0
  9. package/docs/advanced-how-it-works.md +104 -0
  10. package/docs/advanced-how-it-works.zh.md +104 -0
  11. package/docs/advanced-quality-assurance.md +64 -0
  12. package/docs/advanced-quality-assurance.zh.md +64 -0
  13. package/docs/advanced.md +28 -0
  14. package/docs/advanced.zh.md +28 -0
  15. package/docs/changelog.md +272 -0
  16. package/docs/changelog.zh.md +272 -0
  17. package/docs/cli-reference.md +185 -0
  18. package/docs/cli-reference.zh.md +185 -0
  19. package/docs/configuration-interactive-setup.md +82 -0
  20. package/docs/configuration-interactive-setup.zh.md +82 -0
  21. package/docs/configuration-language-support.md +64 -0
  22. package/docs/configuration-language-support.zh.md +64 -0
  23. package/docs/configuration-llm-setup.md +90 -0
  24. package/docs/configuration-llm-setup.zh.md +90 -0
  25. package/docs/configuration-preferences.md +122 -0
  26. package/docs/configuration-preferences.zh.md +123 -0
  27. package/docs/configuration.md +173 -0
  28. package/docs/configuration.zh.md +173 -0
  29. package/docs/features-generate-documentation.md +82 -0
  30. package/docs/features-generate-documentation.zh.md +82 -0
  31. package/docs/features-publish-your-docs.md +98 -0
  32. package/docs/features-publish-your-docs.zh.md +98 -0
  33. package/docs/features-translate-documentation.md +83 -0
  34. package/docs/features-translate-documentation.zh.md +83 -0
  35. package/docs/features-update-and-refine.md +86 -0
  36. package/docs/features-update-and-refine.zh.md +86 -0
  37. package/docs/features.md +56 -0
  38. package/docs/features.zh.md +56 -0
  39. package/docs/getting-started.md +74 -0
  40. package/docs/getting-started.zh.md +74 -0
  41. package/docs/overview.md +48 -0
  42. package/docs/overview.zh.md +48 -0
  43. package/media.md +19 -0
  44. package/package.json +1 -1
@@ -0,0 +1,83 @@
1
+ ---
2
+ labels: ["Reference"]
3
+ ---
4
+
5
+ # 翻译文档
6
+
7
+ AIGNE DocSmith 可将您的文档自动翻译成 12 种以上的语言,帮助您触及全球受众。该功能简化了本地化流程,确保您的内容仅需一条命令即可触达全球用户。
8
+
9
+ ## 使用交互模式轻松翻译
10
+
11
+ 如需引导式体验,最简单的方式是直接运行 `translate` 命令,无需添加任何参数:
12
+
13
+ ```bash
14
+ aigne doc translate
15
+ ```
16
+
17
+ 这将启动一个交互式向导,逐步引导您完成整个过程:
18
+
19
+ 1. **选择待翻译文档:** 系统将列出您现有的所有文档。您只需选择想要翻译的文档即可。
20
+
21
+ ![选择要翻译的文档](https://docsmith.aigne.io/image-bin/uploads/e2cf5fa45aa856c406a444fb4665ed2d.png)
22
+
23
+ 2. **选择目标语言:** 选择文档后,您可以从支持的语言列表中选择一个或多个目标语言。
24
+
25
+ ![选择要翻译成的语言](https://docsmith.aigne.io/image-bin/uploads/2e243a2488f2060a693fe0ac0c8fb5ad.png)
26
+
27
+ 3. **确认并运行:** DocSmith 随后将处理翻译任务,为每种选定的语言生成相应的文件新版本。
28
+
29
+ ## 使用命令行标志进行高级控制
30
+
31
+ 对于自动化或更具体的任务,您可以使用命令行标志直接控制翻译过程。这非常适合集成到 CI/CD 流程中,也适合偏好使用命令行的资深用户。
32
+
33
+ 以下是可用的主要选项:
34
+
35
+ | 参数 | 描述 |
36
+ |---|---|
37
+ | `--langs` | 指定一个或多个目标语言。此标志可以多次使用(例如,--langs zh --langs ja)。 |
38
+ | `--docs` | 指定要翻译的文档的路径。此标志也可以多次使用。 |
39
+ | `--feedback` | 向 AI 提供反馈,以提升未来翻译的质量(例如,--feedback "Use formal tone")。 |
40
+ | `--glossary` | 使用 Markdown 格式的术语表文件,以确保特定术语的翻译保持一致(例如,--glossary @path/to/glossary.md)。 |
41
+
42
+ ### 示例:翻译特定文档
43
+
44
+ 要将 `overview.md` 和 `examples.md` 翻译成中文和日文,您需要运行:
45
+
46
+ ```bash
47
+ aigne doc translate --langs zh --langs ja --docs overview.md --docs examples.md
48
+ ```
49
+
50
+ ### 示例:使用术语表和反馈
51
+
52
+ 为确保品牌名称和技术术语翻译准确,您可以提供一个术语表文件。您还可以提供反馈以优化翻译风格。
53
+
54
+ ```bash
55
+ aigne doc translate --glossary @glossary.md --feedback "Use technical terminology consistently" --docs overview.md --langs de
56
+ ```
57
+
58
+ ## 支持的语言
59
+
60
+ DocSmith 支持以下语言的自动翻译:
61
+
62
+ | 语言 | 代码 |
63
+ |---|---|
64
+ | 英语 | en |
65
+ | 简体中文 | zh-CN |
66
+ | 繁体中文 | zh-TW |
67
+ | 日语 | ja |
68
+ | 韩语 | ko |
69
+ | 西班牙语 | es |
70
+ | 法语 | fr |
71
+ | 德语 | de |
72
+ | 葡萄牙语 | pt-BR |
73
+ | 俄语 | ru |
74
+ | 意大利语 | it |
75
+ | 阿拉伯语 | ar |
76
+
77
+ ---
78
+
79
+ 文档翻译完成后,您就可以与世界分享了。请在下一节中了解如何操作。
80
+
81
+ <x-card data-title="下一步:发布您的文档" data-icon="lucide:upload-cloud" data-href="/features/publish-your-docs" data-cta="阅读更多">
82
+ 一份关于如何轻松将您的文档发布到公共平台或您自己的私人网站的指南。
83
+ </x-card>
@@ -0,0 +1,86 @@
1
+ ---
2
+ labels: ["Reference"]
3
+ ---
4
+
5
+ # Update and Refine
6
+
7
+ Keeping documentation synchronized with your evolving source code is crucial. AIGNE DocSmith provides powerful and flexible ways to keep your content up-to-date, whether through intelligent automatic updates or precise, feedback-driven refinements.
8
+
9
+ This guide covers how to:
10
+ - Automatically update documents when your code changes.
11
+ - Manually regenerate specific documents with targeted feedback.
12
+ - Optimize the overall documentation structure.
13
+
14
+ ---
15
+
16
+ ## Automatic Updates with Smart Detection
17
+
18
+ When you run the `aigne doc generate` command, DocSmith doesn't blindly regenerate everything. It intelligently analyzes your codebase, detects changes since the last run, and only regenerates the documents that are affected. This efficient process saves time and reduces unnecessary LLM API calls.
19
+
20
+ ```bash
21
+ # DocSmith will automatically detect changes and update only what's necessary
22
+ aigne doc generate
23
+ ```
24
+
25
+ ![DocSmith intelligently detects changes and regenerates only the required documents.](https://docsmith.aigne.io/image-bin/uploads/21a76b2f65d14d16a49c13d800f1e2c1.png)
26
+
27
+ ### Forcing a Full Regeneration
28
+
29
+ If you need to regenerate all documentation from scratch, ignoring the cache and previous state, use the `--forceRegenerate` flag. This is useful after significant configuration changes or when you want to ensure a completely fresh build.
30
+
31
+ ```bash
32
+ # Regenerate all documentation from the ground up
33
+ aigne doc generate --forceRegenerate
34
+ ```
35
+
36
+ ---
37
+
38
+ ## Refining Individual Documents with Feedback
39
+
40
+ Sometimes, you need to improve a specific document without any corresponding code changes. The `aigne doc update` command is designed for this purpose, allowing you to provide targeted feedback to the AI for content refinement.
41
+
42
+ You can use this command in two ways: interactively or directly via command-line arguments.
43
+
44
+ ### Interactive Mode
45
+
46
+ For an easy, guided experience, simply run the command without any arguments. DocSmith will present you with an interactive menu to select which document you want to update. After you choose, you'll be prompted to enter your feedback.
47
+
48
+ ```bash
49
+ # Start the interactive update process
50
+ aigne doc update
51
+ ```
52
+
53
+ ![Interactively select the documents you wish to update.](https://docsmith.aigne.io/image-bin/uploads/75e9cf9823bb369c3d2b5a2e2da4ac06.png)
54
+
55
+ ### Direct Command-Line Updates
56
+
57
+ For faster workflows or scripting, you can specify the document and feedback directly using flags. This allows for precise, non-interactive updates.
58
+
59
+ ```bash
60
+ # Update a specific document with feedback
61
+ aigne doc update --docs overview.md --feedback "Add a more comprehensive FAQ section at the end."
62
+ ```
63
+
64
+ Key parameters for the `update` command:
65
+
66
+ | Parameter | Description |
67
+ |---|---|
68
+ | `--docs` | The path to the document you want to update. You can use this flag multiple times for multiple documents. |
69
+ | `--feedback` | The specific feedback or instructions for the AI to use when regenerating the content. |
70
+
71
+ ---
72
+
73
+ ## Optimizing the Overall Structure
74
+
75
+ Beyond refining the content of individual documents, you can also refine the overall documentation structure. If you feel a section is missing, or the existing organization could be improved, you can provide feedback to the structure planning agent using the `generate` command.
76
+
77
+ This command tells DocSmith to reconsider the entire document plan based on your new input.
78
+
79
+ ```bash
80
+ # Regenerate the structure plan with specific feedback
81
+ aigne doc generate --feedback "Remove the 'About' section and add a more detailed 'API Reference'."
82
+ ```
83
+
84
+ This approach is best for high-level changes to the table of contents, rather than line-by-line content edits.
85
+
86
+ With these tools, you can maintain accurate, high-quality documentation that evolves alongside your project. Once your content is refined, you may want to make it available to a global audience. Learn how in the [Translate Documentation](./features-translate-documentation.md) guide.
@@ -0,0 +1,86 @@
1
+ ---
2
+ labels: ["Reference"]
3
+ ---
4
+
5
+ # 更新与优化
6
+
7
+ 让文档与不断演进的源代码保持同步至关重要。AIGNE DocSmith 提供了强大而灵活的方式来保持内容更新,无论是通过智能自动更新,还是通过精确的、由反馈驱动的优化。
8
+
9
+ 本指南将介绍如何:
10
+ - 在代码变更时自动更新文档。
11
+ - 通过有针对性的反馈手动重新生成特定文档。
12
+ - 优化整体文档结构。
13
+
14
+ ---
15
+
16
+ ## 智能检测与自动更新
17
+
18
+ 当您运行 `aigne doc generate` 命令时,DocSmith 不会盲目地重新生成所有内容。它会智能地分析您的代码库,检测自上次运行以来的变更,并仅重新生成受影响的文档。这个高效的流程可以节省时间,并减少不必要的 LLM API 调用。
19
+
20
+ ```bash
21
+ # DocSmith 将自动检测变更并仅更新必要的部分
22
+ aigne doc generate
23
+ ```
24
+
25
+ ![DocSmith 能够智能检测变更,并仅重新生成必要的文档。](https://docsmith.aigne.io/image-bin/uploads/21a76b2f65d14d16a49c13d800f1e2c1.png)
26
+
27
+ ### 强制完全重新生成
28
+
29
+ 如果您需要从头开始重新生成所有文档,忽略缓存和先前的状态,请使用 `--forceRegenerate` 标志。这在发生重大配置变更后,或当您希望确保完全重新构建时非常有用。
30
+
31
+ ```bash
32
+ # 从头开始重新生成所有文档
33
+ aigne doc generate --forceRegenerate
34
+ ```
35
+
36
+ ---
37
+
38
+ ## 通过反馈优化单个文档
39
+
40
+ 有时,您需要在没有任何相应代码变更的情况下改进特定文档。`aigne doc update` 命令正是为此设计的,它允许您向 AI 提供有针对性的反馈,以优化内容。
41
+
42
+ 您可以通过两种方式使用此命令:交互式方式或直接通过命令行参数。
43
+
44
+ ### 交互模式
45
+
46
+ 要获得简单的引导式体验,只需运行不带任何参数的命令即可。DocSmith 将为您呈现一个交互式菜单,供您选择要更新的文档。选择后,系统将提示您输入反馈。
47
+
48
+ ```bash
49
+ # 启动交互式更新流程
50
+ aigne doc update
51
+ ```
52
+
53
+ ![以交互方式选择您希望更新的文档。](https://docsmith.aigne.io/image-bin/uploads/75e9cf9823bb369c3d2b5a2e2da4ac06.png)
54
+
55
+ ### 直接通过命令行更新
56
+
57
+ 为了实现更快的工作流或脚本化操作,您可以使用标志直接指定文档和反馈。这允许进行精确的非交互式更新。
58
+
59
+ ```bash
60
+ # 使用反馈更新特定文档
61
+ aigne doc update --docs overview.md --feedback "在末尾添加一个更全面的常见问题解答部分。"
62
+ ```
63
+
64
+ `update` 命令的关键参数:
65
+
66
+ | Parameter | Description |
67
+ |---|---|
68
+ | `--docs` | 您想要更新的文档路径。您可以多次使用此标志来更新多个文档。 |
69
+ | `--feedback` | 供 AI 在重新生成内容时使用的具体反馈或指令。 |
70
+
71
+ ---
72
+
73
+ ## 优化整体结构
74
+
75
+ 除了优化单个文档的内容,您还可以优化整体文档结构。如果您觉得某个部分缺失,或者现有组织结构可以改进,您可以使用 `generate` 命令向结构规划 Agent 提供反馈。
76
+
77
+ 此命令会告知 DocSmith 根据您的新输入重新考虑整个文档计划。
78
+
79
+ ```bash
80
+ # 使用特定反馈重新生成结构规划
81
+ aigne doc generate --feedback "删除‘关于’部分,并添加一个更详细的‘API 参考’。"
82
+ ```
83
+
84
+ 这种方法最适合对目录进行高级别的更改,而不是逐行编辑内容。
85
+
86
+ 借助这些工具,您可以维护与项目一同演进的准确、高质量的文档。内容优化后,您可能希望将其提供给全球受众。在 [翻译文档](./features-translate-documentation.md) 指南中了解如何操作。
@@ -0,0 +1,56 @@
1
+ ---
2
+ labels: ["Reference"]
3
+ ---
4
+
5
+ # Core Features
6
+
7
+ AIGNE DocSmith provides a comprehensive suite of tools to manage your documentation lifecycle, from initial creation to global distribution. It streamlines the process with a few simple commands, leveraging AI to automate complex tasks.
8
+
9
+ The typical workflow follows a logical progression, allowing you to generate, refine, translate, and finally publish your documentation.
10
+
11
+ ```d2
12
+ direction: right
13
+
14
+ "Generate Docs": {
15
+ shape: step
16
+ description: "Automated creation from source code"
17
+ }
18
+
19
+ "Update & Refine": {
20
+ shape: step
21
+ description: "Sync with code changes and apply feedback"
22
+ }
23
+
24
+ "Translate": {
25
+ shape: step
26
+ description: "Reach a global audience with 12+ languages"
27
+ }
28
+
29
+ "Publish": {
30
+ shape: step
31
+ description: "Share your docs on public or private platforms"
32
+ }
33
+
34
+ "Generate Docs" -> "Update & Refine" -> "Translate" -> "Publish" {
35
+ style.animated: true
36
+ }
37
+ ```
38
+
39
+ Explore the main capabilities of DocSmith in the following sections:
40
+
41
+ <x-cards data-columns="2">
42
+ <x-card data-title="Generate Documentation" data-icon="lucide:file-plus-2" data-href="/features/generate-documentation">
43
+ Automatically create a complete, well-structured set of documentation directly from your source code with a single command.
44
+ </x-card>
45
+ <x-card data-title="Update and Refine" data-icon="lucide:edit" data-href="/features/update-and-refine">
46
+ Keep your documentation synchronized with code changes or regenerate specific sections with targeted feedback to improve quality.
47
+ </x-card>
48
+ <x-card data-title="Translate Documentation" data-icon="lucide:languages" data-href="/features/translate-documentation">
49
+ Effortlessly translate your content into over 12 languages, making your project accessible to a global audience.
50
+ </x-card>
51
+ <x-card data-title="Publish Your Docs" data-icon="lucide:send" data-href="/features/publish-your-docs">
52
+ Publish your generated documentation to the official DocSmith platform or your own self-hosted instance with an interactive command.
53
+ </x-card>
54
+ </x-cards>
55
+
56
+ These core features work together to create a seamless documentation workflow. To see all available commands and their options in detail, head over to the [CLI Command Reference](./cli-reference.md).
@@ -0,0 +1,56 @@
1
+ ---
2
+ labels: ["Reference"]
3
+ ---
4
+
5
+ # 核心功能
6
+
7
+ AIGNE DocSmith 提供了一套全面的工具来管理您的文档生命周期,从初始创建到全球分发。它通过几个简单的命令简化了该流程,并利用 AI 自动化复杂的任务。
8
+
9
+ 典型的工作流程遵循一个逻辑顺序,让您可以生成、优化、翻译并最终发布您的文档。
10
+
11
+ ```d2
12
+ direction: right
13
+
14
+ "生成文档": {
15
+ shape: step
16
+ description: "从源代码自动创建"
17
+ }
18
+
19
+ "更新与优化": {
20
+ shape: step
21
+ description: "与代码变更同步并应用反馈"
22
+ }
23
+
24
+ "翻译": {
25
+ shape: step
26
+ description: "支持 12 种以上语言,触及全球受众"
27
+ }
28
+
29
+ "发布": {
30
+ shape: step
31
+ description: "将文档分享到公共或私有平台"
32
+ }
33
+
34
+ "生成文档" -> "更新与优化" -> "翻译" -> "发布" {
35
+ style.animated: true
36
+ }
37
+ ```
38
+
39
+ 在以下部分探索 DocSmith 的主要功能:
40
+
41
+ <x-cards data-columns="2">
42
+ <x-card data-title="生成文档" data-icon="lucide:file-plus-2" data-href="/features/generate-documentation">
43
+ 通过单个命令,直接从源代码自动创建一套完整、结构良好的文档。
44
+ </x-card>
45
+ <x-card data-title="更新与优化" data-icon="lucide:edit" data-href="/features/update-and-refine">
46
+ 保持文档与代码变更同步,或根据特定反馈重新生成特定部分以提高质量。
47
+ </x-card>
48
+ <x-card data-title="翻译文档" data-icon="lucide:languages" data-href="/features/translate-documentation">
49
+ 轻松将您的内容翻译成超过 12 种语言,使您的项目能够触及全球受众。
50
+ </x-card>
51
+ <x-card data-title="发布您的文档" data-icon="lucide:send" data-href="/features/publish-your-docs">
52
+ 通过一个交互式命令,将您生成的文档发布到 DocSmith 官方平台或您自己托管的实例上。
53
+ </x-card>
54
+ </x-cards>
55
+
56
+ 这些核心功能协同工作,共同打造无缝的文档工作流。要详细了解所有可用命令及其选项,请参阅 [CLI 命令参考](./cli-reference.md)。
@@ -0,0 +1,74 @@
1
+ ---
2
+ labels: ["Reference"]
3
+ ---
4
+
5
+ # Getting Started
6
+
7
+ This guide will walk you through installing AIGNE DocSmith, configuring your first project, and generating a complete set of documentation in just a few minutes. The process is designed to be straightforward, with a single command to get you started.
8
+
9
+ ## Prerequisites
10
+
11
+ Before you begin, ensure you have the following installed on your system:
12
+
13
+ - [Node.js](https://nodejs.org/)
14
+ - [pnpm](https://pnpm.io/)
15
+
16
+ ## Step 1: Install AIGNE CLI
17
+
18
+ DocSmith is available through the AIGNE Command Line Interface (CLI). Install the latest version globally using npm:
19
+
20
+ ```bash
21
+ npm i -g @aigne/cli
22
+ ```
23
+
24
+ Once the installation is complete, verify that it was successful by checking the help command for the documentation tool:
25
+
26
+ ```bash
27
+ aigne doc -h
28
+ ```
29
+
30
+ This command should display a list of available `doc` commands and their options.
31
+
32
+ ## Step 2: Generate Your Documentation
33
+
34
+ With the AIGNE CLI installed, you can generate your documentation with a single command. Navigate to your project's root directory and run:
35
+
36
+ ```bash
37
+ aigne doc generate
38
+ ```
39
+
40
+ ### Smart Auto-Configuration
41
+
42
+ If this is your first time running DocSmith in the project, it will automatically detect that no configuration exists and launch an interactive setup wizard to guide you.
43
+
44
+ ![Running the generate command triggers the smart initialization wizard](https://docsmith.aigne.io/image-bin/uploads/0c45a32667c5250e54194a61d9495965.png)
45
+
46
+ ## Step 3: Configure Your Project
47
+
48
+ The interactive wizard will ask a series of questions to tailor the documentation to your specific needs. You will be prompted to define:
49
+
50
+ - The primary purpose and style of the documentation.
51
+ - Your target audience and their technical knowledge level.
52
+ - The primary language and any additional languages for translation.
53
+ - The source code paths for the AI to analyze.
54
+ - The output directory where the documents will be saved.
55
+
56
+ ![Answer a series of questions to complete your project setup](https://docsmith.aigne.io/image-bin/uploads/fbedbfa256036ad6375a6c18047a75ad.png)
57
+
58
+ ## Step 4: Review Your New Docs
59
+
60
+ After you complete the configuration, DocSmith will begin the generation process. It analyzes your code, plans a logical document structure, and writes the content for each section.
61
+
62
+ ![DocSmith plans the document structure and generates content](https://docsmith.aigne.io/image-bin/uploads/d0766c19380a02eb8a6f8ce86a838849.png)
63
+
64
+ Once finished, you'll see a success message in your terminal. Your new documentation is now ready in the output directory you specified (e.g., `.aigne/doc-smith/docs`).
65
+
66
+ ![A success message confirms your documentation is ready](https://docsmith.aigne.io/image-bin/uploads/0967443611408ad9d0042793d590b8fd.png)
67
+
68
+ ## What's Next?
69
+
70
+ You've successfully installed DocSmith and generated your first set of documents. Now you're ready to explore its capabilities in more detail.
71
+
72
+ <x-card data-title="Explore Core Features" data-icon="lucide:compass" data-href="/features" data-cta="Learn More">
73
+ Dive deeper into the main commands and capabilities of DocSmith, from updating documents to publishing them online.
74
+ </x-card>
@@ -0,0 +1,74 @@
1
+ ---
2
+ labels: ["Reference"]
3
+ ---
4
+
5
+ # 快速入门
6
+
7
+ 本指南将引导你完成 AIGNE DocSmith 的安装、首个项目的配置,并在短短几分钟内生成一套完整的文档。整个过程设计得非常简单,只需一个命令即可开始。
8
+
9
+ ## 前提条件
10
+
11
+ 在开始之前,请确保你的系统上已安装以下软件:
12
+
13
+ - [Node.js](https://nodejs.org/)
14
+ - [pnpm](https://pnpm.io/)
15
+
16
+ ## 第 1 步:安装 AIGNE CLI
17
+
18
+ DocSmith 通过 AIGNE 命令行界面 (CLI) 提供。使用 npm 全局安装最新版本:
19
+
20
+ ```bash
21
+ npm i -g @aigne/cli
22
+ ```
23
+
24
+ 安装完成后,通过检查文档工具的帮助命令来验证是否安装成功:
25
+
26
+ ```bash
27
+ aigne doc -h
28
+ ```
29
+
30
+ 该命令应显示可用的 `doc` 命令及其选项列表。
31
+
32
+ ## 第 2 步:生成文档
33
+
34
+ 安装 AIGNE CLI 后,你只需一个命令即可生成文档。进入项目根目录并运行:
35
+
36
+ ```bash
37
+ aigne doc generate
38
+ ```
39
+
40
+ ### 智能自动配置
41
+
42
+ 如果你是首次在项目中运行 DocSmith,它会自动检测到尚无配置,并启动一个交互式设置向导来引导你完成配置。
43
+
44
+ ![运行 generate 命令会触发智能初始化向导](https://docsmith.aigne.io/image-bin/uploads/0c45a32667c5250e54194a61d9495965.png)
45
+
46
+ ## 第 3 步:配置项目
47
+
48
+ 交互式向导将提出一系列问题,以根据你的具体需求定制文档。系统将提示你定义以下内容:
49
+
50
+ - 文档的主要用途和风格。
51
+ - 目标受众及其技术知识水平。
52
+ - 主要语言以及任何需要翻译的其他语言。
53
+ - 供 AI 分析的源代码路径。
54
+ - 用于保存文档的输出目录。
55
+
56
+ ![回答一系列问题以完成项目设置](https://docsmith.aigne.io/image-bin/uploads/fbedbfa256036ad6375a6c18047a75ad.png)
57
+
58
+ ## 第 4 步:查看新文档
59
+
60
+ 完成配置后,DocSmith 将开始生成过程。它会分析你的代码,规划出逻辑清晰的文档结构,并为每个部分撰写内容。
61
+
62
+ ![DocSmith 规划文档结构并生成内容](https://docsmith.aigne.io/image-bin/uploads/d0766c19380a02eb8a6f8ce86a838849.png)
63
+
64
+ 完成后,你将在终端中看到一条成功消息。你的新文档现已在你指定的输出目录(例如 `.aigne/doc-smith/docs`)中准备就绪。
65
+
66
+ ![成功消息确认你的文档已准备就绪](https://docsmith.aigne.io/image-bin/uploads/0967443611408ad9d0042793d590b8fd.png)
67
+
68
+ ## 接下来呢?
69
+
70
+ 你已成功安装 DocSmith 并生成了第一套文档。现在,你可以开始更详细地探索其功能了。
71
+
72
+ <x-card data-title="探索核心功能" data-icon="lucide:compass" data-href="/features" data-cta="了解更多">
73
+ 深入了解 DocSmith 的主要命令和功能,从更新文档到在线发布。
74
+ </x-card>
@@ -0,0 +1,48 @@
1
+ ---
2
+ labels: ["Reference"]
3
+ ---
4
+
5
+ # Overview
6
+
7
+ AIGNE DocSmith is an AI-driven documentation generation tool built on the [AIGNE Framework](https://www.aigne.io/en/framework). It automates the creation of detailed, structured, and multi-language documentation directly from your source code, streamlining the entire workflow from planning to publishing.
8
+
9
+ ## Part of the AIGNE Ecosystem
10
+
11
+ DocSmith is a key component of the [AIGNE](https://www.aigne.io) ecosystem, a comprehensive platform for developing AI applications. It integrates seamlessly with other AIGNE components, leveraging the platform's AI capabilities and infrastructure.
12
+
13
+ The following diagram illustrates how DocSmith fits within the AIGNE architecture:
14
+
15
+ ![AIGNE Ecosystem Architecture](https://docsmith.aigne.io/image-bin/uploads/def424c20bbdb3c77483894fe0e22819.png)
16
+
17
+ ## Key Features
18
+
19
+ DocSmith offers a range of features designed to make documentation effortless and intelligent.
20
+
21
+ <x-cards data-columns="3">
22
+ <x-card data-title="Automated Structure Planning" data-icon="lucide:file-cog">
23
+ Intelligently analyzes your codebase to generate a comprehensive and logical document structure.
24
+ </x-card>
25
+ <x-card data-title="AI-Powered Content Generation" data-icon="lucide:bot">
26
+ Populates the document structure with detailed, high-quality content derived directly from your source.
27
+ </x-card>
28
+ <x-card data-title="Multi-Language Support" data-icon="lucide:languages">
29
+ Seamlessly translates documentation into over 12 languages to reach a global audience.
30
+ </x-card>
31
+ <x-card data-title="AIGNE Hub Integration" data-icon="lucide:plug-zap">
32
+ Use various LLMs through AIGNE Hub without needing your own API keys, and switch between models easily.
33
+ </x-card>
34
+ <x-card data-title="Discuss Kit Publishing" data-icon="lucide:send">
35
+ Publish your generated documentation to the official platform or your own self-hosted Discuss Kit instance.
36
+ </x-card>
37
+ <x-card data-title="Intelligent Updates" data-icon="lucide:git-pull-request-arrow">
38
+ Automatically detects source code changes to update documentation or lets you refine specific documents with targeted feedback.
39
+ </x-card>
40
+ </x-cards>
41
+
42
+ ## Get Started
43
+
44
+ Whether you're a developer looking to eliminate the manual effort of documentation or a project manager aiming for consistent, high-quality user guides, DocSmith provides the tools to get it done efficiently.
45
+
46
+ <x-card data-title="Next: Getting Started" data-href="/getting-started" data-icon="lucide:arrow-right-circle" data-cta="Start the guide">
47
+ Follow our step-by-step guide to install the tool, configure your first project, and generate documentation in minutes.
48
+ </x-card>
@@ -0,0 +1,48 @@
1
+ ---
2
+ labels: ["Reference"]
3
+ ---
4
+
5
+ # 概述
6
+
7
+ AIGNE DocSmith 是一款基于 [AIGNE 框架](https://www.aigne.io/en/framework) 构建的 AI 驱动的文档生成工具。它可以直接根据您的源代码自动创建详细、结构化且支持多语言的文档,从而简化从规划到发布的整个工作流程。
8
+
9
+ ## AIGNE 生态系统的一部分
10
+
11
+ DocSmith 是 [AIGNE](https://www.aigne.io) 生态系统的重要组成部分,该生态系统是一个用于开发 AI 应用的综合平台。它能与其他 AIGNE 组件无缝集成,充分利用平台的 AI 能力和基础设施。
12
+
13
+ 下图说明了 DocSmith 在 AIGNE 架构中的位置:
14
+
15
+ ![AIGNE 生态系统架构](https://docsmith.aigne.io/image-bin/uploads/def424c20bbdb3c77483894fe0e22819.png)
16
+
17
+ ## 主要特性
18
+
19
+ DocSmith 提供了一系列旨在使文档编写工作变得轻松智能的功能。
20
+
21
+ <x-cards data-columns="3">
22
+ <x-card data-title="自动化结构规划" data-icon="lucide:file-cog">
23
+ 智能分析您的代码库,生成全面且逻辑清晰的文档结构。
24
+ </x-card>
25
+ <x-card data-title="AI 驱动的内容生成" data-icon="lucide:bot">
26
+ 直接从您的源代码中提取详细、高质量的内容,并填充到文档结构中。
27
+ </x-card>
28
+ <x-card data-title="多语言支持" data-icon="lucide:languages">
29
+ 将文档无缝翻译成 12 种以上的语言,以触达全球受众。
30
+ </x-card>
31
+ <x-card data-title="AIGNE Hub 集成" data-icon="lucide:plug-zap">
32
+ 通过 AIGNE Hub 使用各种大语言模型,无需您自己的 API 密钥,并可轻松切换模型。
33
+ </x-card>
34
+ <x-card data-title="Discuss Kit 发布" data-icon="lucide:send">
35
+ 将生成的文档发布到官方平台或您自己托管的 Discuss Kit 实例。
36
+ </x-card>
37
+ <x-card data-title="智能更新" data-icon="lucide:git-pull-request-arrow">
38
+ 自动检测源代码变更以更新文档,或允许您通过有针对性的反馈来优化特定文档。
39
+ </x-card>
40
+ </x-cards>
41
+
42
+ ## 开始入门
43
+
44
+ 无论您是希望摆脱手动编写文档工作的开发者,还是追求一致、高质量用户指南的项目经理,DocSmith 都能为您提供高效完成这些任务的工具。
45
+
46
+ <x-card data-title="下一步:开始入门" data-href="/getting-started" data-icon="lucide:arrow-right-circle" data-cta="开始阅读指南">
47
+ 遵循我们的分步指南,安装工具、配置您的第一个项目,并在几分钟内生成文档。
48
+ </x-card>
package/media.md ADDED
@@ -0,0 +1,19 @@
1
+ # 提供在文档中可使用的媒体素材
2
+
3
+ ![运行 generate 命令,智能执行初始化](https://docsmith.aigne.io/image-bin/uploads/0c45a32667c5250e54194a61d9495965.png)
4
+
5
+ ![回答问题完成项目设置](https://docsmith.aigne.io/image-bin/uploads/fbedbfa256036ad6375a6c18047a75ad.png)
6
+
7
+ ![执行结构规划和生成文档](https://docsmith.aigne.io/image-bin/uploads/d0766c19380a02eb8a6f8ce86a838849.png)
8
+
9
+ ![文档生成成功](https://docsmith.aigne.io/image-bin/uploads/0967443611408ad9d0042793d590b8fd.png)
10
+
11
+ ![智能检测,只重新生成需要的文档](https://docsmith.aigne.io/image-bin/uploads/21a76b2f65d14d16a49c13d800f1e2c1.png)
12
+
13
+ ![交互式选择需要更新文档](https://docsmith.aigne.io/image-bin/uploads/75e9cf9823bb369c3d2b5a2e2da4ac06.png)
14
+
15
+ ![发布文档到官方平台或自部署平台](https://docsmith.aigne.io/image-bin/uploads/9fd929060b5abe13d03cf5eb7aea85aa.png)
16
+
17
+ ![选择需要翻译的文档](https://docsmith.aigne.io/image-bin/uploads/e2cf5fa45aa856c406a444fb4665ed2d.png)
18
+
19
+ ![选择需要翻译的语言](https://docsmith.aigne.io/image-bin/uploads/2e243a2488f2060a693fe0ac0c8fb5ad.png)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/doc-smith",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "",
5
5
  "publishConfig": {
6
6
  "access": "public"