Skip to content

Commit d94f27c

Browse files
authored
Merge pull request #251 from team-dev-docs/doc_review
Doc review
2 parents 6830d54 + 2ca82d2 commit d94f27c

20 files changed

+260
-42
lines changed

.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11

22

3-
# How to Use the "Populate External Docs" Command in VSCode Extension
3+
# How to Use the "Populate External Docs" Command in VS Code Extension
44

55
## Step 1: Install and Set Up the Extension
66

7-
Ensure you have the Dev-Docs VSCode extension installed and properly configured.
7+
Ensure you have the Dev-Docs VS Code extension installed and properly configured.
88

99
## Step 2: Locate the Command
1010

11-
1. Open the Command Palette in VSCode (Cmd+Shift+P on Mac or Ctrl+Shift+P on Windows/Linux).
11+
1. Open the Command Palette in VS Code (Cmd+Shift+P on Mac or Ctrl+Shift+P on Windows/Linux).
1212
2. Type "Dev-Docs: Generate External Docs" to find the command.
1313

1414
## Step 3: Run the Command

Generate codebase docs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22

3-
# How to Use the "Generate Documentation" Command in Dev-Docs VSCode Extension
3+
# How to Use the "Generate Documentation" Command in Dev-Docs VS Code Extension
44

55
## Using the Command
66

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
# Configuring Dev-Docs: Setting Up the Dev-Docs.JSON
2+
3+
This guide will walk you through the configuration options available in the `dev-docs.json` file for the Dev-Docs extension.
4+
5+
## Step 1: Locate the Configuration File
6+
7+
Find or create the `dev-docs.json` file in your project's root directory.
8+
9+
## Step 2: Understanding the Structure
10+
11+
The `dev-docs.json` file has two main sections:
12+
13+
1. `quickDoc`
14+
2. `ai`
15+
16+
## Step 3: Configuring quickDoc
17+
18+
The `quickDoc` section is used for quick documentation prompts. Here's an example:
19+
20+
```json
21+
{
22+
"quickDoc": {
23+
"variablesAndFunctions": {
24+
"prompts": [
25+
{
26+
"question": "Does this code use a third-party library?",
27+
"title": "Third-Party Libraries"
28+
}
29+
]
30+
}
31+
}
32+
}
33+
```
34+
35+
## Step 4: Configuring AI
36+
37+
The `ai` section contains various settings for AI-assisted documentation. Here's an example with common options:
38+
39+
```json
40+
{
41+
"ai": {
42+
"docPath": "docs",
43+
"codeSummaryPrompt": "Provide 3 bullet points on what this code does",
44+
"defaultLength": "3-5 Sentences",
45+
"branch": "main",
46+
"internalTypeFilters": ["class", "method", "function"],
47+
"codeFilters": ["async function", "export default"],
48+
"nameFilters": ["handleSubmit", "render"],
49+
"contextDirs": ["src/utils", "src/helpers"],
50+
"openapi": {
51+
"file": "src/api/openapi.yaml",
52+
"x-codeSamples": {
53+
"langs": ["javascript", "python", "ruby"]
54+
}
55+
}
56+
}
57+
}
58+
```
59+
60+
## Step 5: Configuration Options Table
61+
62+
| Option | Type | Description | Default |
63+
|--------|------|-------------|---------|
64+
| `quickDoc.variablesAndFunctions.prompts` | Array | Quick documentation prompts | See example |
65+
| `ai.docPath` | String | Custom path for documentation | "some custom path" |
66+
| `ai.codeSummaryPrompt` | String | Prompt for code summaries | "3 Bullet points on what the code does" |
67+
| `ai.defaultLength` | String | Default response length | "3-5 Sentences" |
68+
| `ai.branch` | String | Git branch for documentation | "main" |
69+
| `ai.internalTypeFilters` | Array | Filters for code types | ["file", "module", "class", ...] |
70+
| `ai.codeFilters` | Array | Filters for code patterns | ["async function", "export default"] |
71+
| `ai.nameFilters` | Array | Filters for function names | ["handleSubmit", "render"] |
72+
| `ai.contextDirs` | Array | Directories for context generation | ["src/utils", "src/helpers"] |
73+
| `ai.openapi.file` | String | Path to OpenAPI specification | "src/api/openapi.yaml" |
74+
| `ai.openapi.x-codeSamples.langs` | Array | Languages for code samples | ["javascript", "python", "ruby"] |
75+
76+
## Step 6: Advanced Configuration
77+
78+
For more advanced use cases, you can configure folder-specific prompts:
79+
80+
```json
81+
{
82+
"ai": {
83+
"variablesAndFunctions": {
84+
"src/components": {
85+
"prompts": [
86+
{
87+
"title": "Component Props",
88+
"question": "What props does this component accept?",
89+
"documentation": "List the props with their types and descriptions."
90+
}
91+
]
92+
}
93+
}
94+
}
95+
}
96+
```
97+
98+
By following these steps and using the provided examples and table, you can effectively configure the Dev-Docs extension to suit your project's documentation needs.
99+
100+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"position": 5,
3+
"label": "Configure Your Output"
4+
}

docs/Dev-Docs-Quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Wait for the documentation to generate, and then right click to open the context
5959

6060
### Step 1: Click on the 'dev-docs: Populate External Docs' option to generate user-facing content for your public docs
6161

62-
Open the command palette with `shift cmd P`, and find/click on the 'dev-docs: Populate External Docs' option.
62+
Open the command palette with `shift cmd P`, and find/click on the 'dev-docs: Populate External Docs' option. You can navigate to the repo in GitHub to view the output.
6363

6464
![This is the image for SPAN with the text: dev-docs: Populate External Docs and then clicked](/img/devdocs_quickstart/step_5.png)
6565

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
2+
3+
## Step 1: Navigate to Dev-Docs Panel
4+
5+
Open the Dev-Docs panel in your VS Code extension.
6+
7+
![image for /img/create_a_custom_doc_using_the_vscode_extension/step_1](/img/create_a_custom_doc_using_the_vscode_extension/step_1.png)
8+
9+
## Step 2: Initiate Custom Doc Creation
10+
11+
Click on the "Create Custom Doc" button to start the process.
12+
13+
![image for /img/create_a_custom_doc_using_the_vscode_extension/step_2](/img/create_a_custom_doc_using_the_vscode_extension/step_2.png)
14+
15+
## Step 3: Review Existing Code
16+
17+
Examine the existing code in your project, which may include functions for image processing and sprite generation.
18+
19+
![image for /img/create_a_custom_doc_using_the_vscode_extension/step_3](/img/create_a_custom_doc_using_the_vscode_extension/step_3.png)
20+
21+
## Step 4: Analyze Code Structure
22+
23+
Take a closer look at the structure of your code, including imports and function definitions.
24+
25+
![image for /img/create_a_custom_doc_using_the_vscode_extension/step_4](/img/create_a_custom_doc_using_the_vscode_extension/step_4.png)
26+
27+
28+
## Step 6: Review Additional Functions
29+
30+
Look at other functions in your code, like `getUniqueColors`.
31+
32+
33+
## Step 7: Select Documentation File
34+
35+
Choose the "misc-cool-ways-to-use-this-sdk.md" file to document the SDK usage.
36+
37+
## Step 8: Document SDK Features
38+
39+
Write documentation outlining the cool ways to use the SDK, including creating custom character sprites, generating unique game environments, and automating spritesheet creation.
40+
41+
42+
43+
File renamed without changes.

docs/generate context from the vscode extension.md renamed to docs/Internal-Docs/generate context from the vscode extension.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,62 @@
11

22

3-
## Generate Context from the VSCode Extension
3+
# Generate Context from the VS Code Extension
44

5-
### Step 1: Access the Extension Menu
5+
## Step 1: Access the Extension Menu
66

7-
Click on the "Generate Context" button in the welcome view of the VSCode extension.
7+
Click on the "Generate Context" button in the Dev-Docs menu within VS Code.
88

99
![image for /img/generate_context_from_the_vscode_extension/step_1](/img/generate_context_from_the_vscode_extension/step_1.png)
1010

11-
### Step 2: Initiate Context Generation
11+
## Step 2: Initiate Context Generation
1212

1313
Click on the "Generate Context" button to start the process.
1414

1515
![image for /img/generate_context_from_the_vscode_extension/step_2](/img/generate_context_from_the_vscode_extension/step_2.png)
1616

17-
### Step 3: Confirm Context Generation
17+
## Step 3: Confirm Context Generation
1818

1919
Click on the "Generate Context" button again to confirm and proceed.
2020

2121
![image for /img/generate_context_from_the_vscode_extension/step_3](/img/generate_context_from_the_vscode_extension/step_3.png)
2222

23-
### Step 4: View Project Structure
23+
## Step 4: View Project Structure
2424

2525
Examine the project structure displayed in the file explorer.
2626

2727
![image for /img/generate_context_from_the_vscode_extension/step_4](/img/generate_context_from_the_vscode_extension/step_4.png)
2828

29-
### Step 5: Select Context File
29+
## Step 5: Select Context File
3030

3131
Click on the "dev-docs" folder to expand it and view its contents.
3232

3333
![image for /img/generate_context_from_the_vscode_extension/step_5](/img/generate_context_from_the_vscode_extension/step_5.png)
3434

35-
### Step 6: Explore Generated Context
35+
## Step 6: Explore Generated Context
3636

3737
Review the expanded file structure, including the context files within the "dev-docs" folder.
3838

3939
![image for /img/generate_context_from_the_vscode_extension/step_6](/img/generate_context_from_the_vscode_extension/step_6.png)
4040

41-
### Step 7: Open Context File
41+
## Step 7: Open Context File
4242

4343
Click on the "context-test.js.md" file to open it.
4444

4545
![image for /img/generate_context_from_the_vscode_extension/step_7](/img/generate_context_from_the_vscode_extension/step_7.png)
4646

47-
### Step 8: Review Generated Context
47+
## Step 8: Review Generated Context
4848

4949
Examine the content of the opened context file, which includes a high-level summary of the code.
5050

5151
![image for /img/generate_context_from_the_vscode_extension/step_8](/img/generate_context_from_the_vscode_extension/step_8.png)
5252

53-
### Step 9: Analyze Context Details
53+
## Step 9: Analyze Context Details
5454

5555
Study the detailed information provided in the context file, including methods and code examples.
5656

5757
![image for /img/generate_context_from_the_vscode_extension/step_9](/img/generate_context_from_the_vscode_extension/step_9.png)
5858

59-
### Step 10: Utilize Generated Context
59+
## Step 10: Utilize Generated Context
6060

6161
Use the generated context to better understand the code structure and functionality of the sprite generation module.
6262

docs/generate context on a codefile.md renamed to docs/Internal-Docs/generate context on a codefile.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,48 @@
11

2+
# Generate Context on a Codefile
23

3-
## Step 1: Locate the Code File
4+
## Step 1: Locate the Code File
45

56
Find the code file you want to generate context for in your development environment.
67

78
![image for /img/generate_context_on_a_codefile/step_1](/img/generate_context_on_a_codefile/step_1.png)
9+
810
## Step 2: Open the Context Menu
911

1012
Right-click on the code file to open the context menu.
1113

1214
![image for /img/generate_context_on_a_codefile/step_2](/img/generate_context_on_a_codefile/step_2.png)
15+
1316
## Step 3: Access the Dev-Docs Submenu
1417

1518
In the context menu, find and hover over the "dev-docs" submenu.
1619

1720
![image for /img/generate_context_on_a_codefile/step_3](/img/generate_context_on_a_codefile/step_3.png)
21+
1822
## Step 4: Select Generate Context Option
1923

2024
Click on the "Generate Context" option within the dev-docs submenu.
2125

2226
![image for /img/generate_context_on_a_codefile/step_4](/img/generate_context_on_a_codefile/step_4.png)
27+
2328
## Step 5: View Generated Context File
2429

2530
A new file named "context-[filename].md" will appear in your file explorer.
2631

2732
![image for /img/generate_context_on_a_codefile/step_5](/img/generate_context_on_a_codefile/step_5.png)
33+
2834
## Step 6: Review the Generated Context
2935

3036
Open the newly created markdown file to view the high-level overview of your code.
3137

3238
![image for /img/generate_context_on_a_codefile/step_6](/img/generate_context_on_a_codefile/step_6.png)
39+
3340
## Step 7: Open the Dev-Docs editor
3441

3542
Right-click on the generated markdown file to open the markdown file in dev-docs editor.
3643

3744
![image for /img/generate_context_on_a_codefile/step_8](/img/generate_context_on_a_codefile/step_8.png)
45+
3846
## Step 8: Examine the Context Details
3947

4048
Review the generated context, including the last update time, overview, main code object, and methods.

docs/VS Code Commands/_Generate-Documentation-Command.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ slug: /VS-Code-Commands/Generate-Documentation-Command
44

55
# Generate Documentation Command
66

7-
The `devdocs.generateDocumentation` command is a powerful feature of the Dev-Docs VSCode extension that allows you to automatically generate documentation for your codebase. This command leverages the power of artificial intelligence to analyze your code and generate comprehensive documentation, saving you valuable time and effort.
7+
The `devdocs.generateDocumentation` command is a powerful feature of the Dev-Docs VS Code extension that allows you to automatically generate documentation for your codebase. This command leverages the power of artificial intelligence to analyze your code and generate comprehensive documentation, saving you valuable time and effort.
88

99
## What Does This VS Code Extension Command Do?
1010

0 commit comments

Comments
 (0)