Skip to content

Commit fee20dc

Browse files
committed
Updated developer docs: 2024-10-11T21:36:41+0000
1 parent 760d12b commit fee20dc

File tree

59 files changed

+255
-162
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+255
-162
lines changed

docs/Internal-Docs/Customize-Your-AI-Generation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Find your `dev-docs.json` file.
2929

3030
## Step 4: Customize the JSON
3131

32-
Now we are going to make your Dev-Docs JSON look similar to the one in the step above. The goal is have the AI answer custom questions and prompts on our code. Replace your JSON with JSON below:
32+
Now we are going to make your Dev-Docs JSON look similar to the one in the step above. The goal is have the AI answer custom questions and prompts on our code. Replace your JSON with JSON below:
3333

3434
```json
3535

@@ -44,7 +44,7 @@ Now we are going to make your Dev-Docs JSON look similar to the one in the step
4444
"documentation": ""
4545
},
4646
{
47-
"question": "Is this code written well? if so Why?",
47+
"question": "Is this code written well? If so why?",
4848
"title": "Quality of Code",
4949
"documentation": ""
5050
}

docs/Internal-Docs/Generate-Documentation-With-AI.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ sidebar_position: 4
1414

1515
# Generate Documentation with AI
1616

17+
Out of the box, Dev-Docs will document your codebase by letting you know what each function, class, or variable does on a case by base basis. Below you'll see a step by step guide on how to start generating docs from your VS Code editor.
1718

1819
## Step 1: Sign into Dev-Docs in VS Code
1920

@@ -39,7 +40,7 @@ Select the file you wish to be documented. From there, open the command palette,
3940

4041
## Step 4: Review the AI Generated Documentation
4142

42-
Wait a couple minutes and find the corresponding Dev-Docs markdown file to check if documentation was generated.
43+
In just a few minutes you'll see a new Markdown file generated in the Dev-Docs folder in your repo. You can view the raw Markdown there or right click on the file you generated docs for and navigate to **Open Devdocs Markdown** to view it in a rich text editor right next to the file itself.
4344

4445
![](/img/generate_documentation_with_ai/step_7.png)
4546

docs/Internal-Docs/Intro-to-Dev-Docs-Internal-Documentation.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ sidebar_position: 1
44

55
# Intro to Dev-Docs Internal Documentation
66

7-
Internal Documentation refers to documentation intended for developers contributing to your codebase. This can be applied to any project, whether it be for an open source project, a team, a department, or a whole company. This section will break down how to get started with Dev-Docs Internal Documentation.
7+
Internal Documentation refers to documentation intended for your own teams. This can be applied to any project, whether it be for an open source project, a team, a department, or a whole company. Dev-Docs will generate Markdown files for you with no configuration needed. However, you do have the ability to configure exactly what you want with the `dev-docs.json`. This includes what code you want documented, what questions you want answered of your code, and if you want it pushed to any external source (Confluence, Notion, or Google Drive).
8+
<br></br>
9+
Whether you need documentation to help onboard new hires, for devs contributing to your codebase or to keep the broader organization up to date, Dev-Docs has your back. This section will break down how to start generating docs for your team and how to configure exactly what you want documented.

docs/VS Code Commands/Auditing-Documentation-Using-the-devdocs.auditdocs-Command.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,19 @@ slug: /VS-Code-Commands/Audit-Docs
44

55
# Audit Docs
66

7-
**What does this VS Code Extension Command do?**
7+
## What Does This VS Code Extension Command Do?
8+
89
The `devdocs.auditDocs` command is used to audit the existing documentation files in the project. It analyzes the Markdown files and identifies potential issues or areas for improvement, such as grammar or spelling errors, unclear or unhelpful content, and opportunities to enhance the aesthetic appeal of the documentation.
910

10-
**Why should I use this VS Code Extension Command?**
11+
## Why Should I Use This VS Code Extension Command?
12+
1113
Maintaining high-quality documentation is crucial for effective communication and collaboration within a project. By using the `devdocs.auditDocs` command, you can ensure that your documentation remains accurate, clear, and visually appealing. This command helps you identify and address any issues or inconsistencies in your documentation, improving its overall quality and usefulness.
1214

13-
**What are relevant configuration Options in the `dev-docs.json`?**
14-
The following configuration options in the `dev-docs.json` file are relevant to the `devdocs.auditDocs` command:
15+
## What are relevant configuration Options in the `dev-docs.json`?
1516

1617
- `ai.auditTasks`: This option allows you to specify additional custom tasks or criteria for auditing the documentation. It is an array of strings, where each string represents a specific task or aspect to be evaluated during the audit process.
1718

18-
**Example JSON of relevant Dev-Docs.json options**
19+
## Example JSON of relevant Dev-Docs.json options
1920
```json
2021
{
2122
"ai": {
@@ -27,23 +28,28 @@ The following configuration options in the `dev-docs.json` file are relevant to
2728
}
2829
```
2930

30-
**Prerequisites**
31+
## Prerequisites
32+
3133
Before using the `devdocs.auditDocs` command, make sure you have the following:
3234

3335
1. A `dev-docs.json` configuration file in your project's root directory.
34-
2. Markdown files containing the documentation you want to audit.
35-
3. You using it in a dev-docs documentation repo.
36+
2. The repo contains Markdown files of the documentation you want to audit.
37+
38+
## How Do I Use This VS Code Extension Command?
3639

37-
**How do I use this VS Code Extension Command?**
3840
To use the `devdocs.auditDocs` command, follow these steps:
3941

40-
1. Open your project in Visual Studio Code.
42+
<br></br>
43+
44+
1. Open your project in VS Code
4145
2. Open the Command Palette by pressing `Ctrl+Shift+P` (Windows/Linux) or `Cmd+Shift+P` (Mac).
4246
3. Type "Dev-Docs: Audit Your Docs" or "devdocs.auditDocs" and select the command from the list.
4347
4. The extension will analyze your Markdown files and identify potential issues based on the configured audit tasks.
4448
5. A new Markdown file named `dev-docs_audit.md` will be generated in the `docs` directory, containing the audit results and suggestions for improvements.
4549
6. If any issues are found, the extension will also create GitHub issues for each file with identified problems, providing links to the issues within the `dev-docs_audit.md` file.
4650

51+
<br></br>
52+
4753
By regularly auditing your documentation using the `devdocs.auditDocs` command, you can ensure that your project's documentation remains accurate, clear, and visually appealing, facilitating better understanding and collaboration among team members and users.
4854

4955

docs/VS Code Commands/Clear-Dev-Docs-Authentication-Tokens.md

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@ slug: /VS-Code-Commands/Clear-Dev-Docs-Tokens
66

77
This command clears the Dev-Docs authentication tokens stored locally on your machine. It removes the GitHub access token and refresh token used to authenticate with the Dev-Docs Cloud service.
88

9-
## What does this VS Code Extension Command do?
9+
## What Does This VS Code Extension Command Do?
1010

1111
The `devdocs.resetTokens` command removes the locally stored Dev-Docs authentication tokens from your machine. It essentially logs you out of the Dev-Docs Cloud service, revoking access to your account and any associated documentation repositories.
1212

13-
## Why should I use this VS Code Extension Command?
13+
## Why Should I Use This VS Code Extension Command?
1414

1515
You might want to use this command in the following scenarios:
1616

17+
<br></br>
18+
1719
1. **Sign Out**: If you want to sign out of your Dev-Docs Cloud account on the current machine, running this command will revoke access and clear your stored credentials.
1820

1921
2. **Token Expiration/Revocation**: If your Dev-Docs authentication tokens have expired or been revoked for security reasons, running this command will ensure the old tokens are removed before generating new ones.
@@ -22,26 +24,22 @@ You might want to use this command in the following scenarios:
2224

2325
4. **Troubleshooting**: In case of authentication issues or other token-related problems, clearing the existing tokens can help resolve the issue by starting with a clean slate.
2426

25-
## What are relevant configuration Options in the `dev-docs.json`?
26-
27-
The `dev-docs.json` configuration file does not have any options directly related to the `devdocs.resetTokens` command. This command operates on the locally stored authentication tokens and does not require any specific configuration options.
28-
29-
## Example JSON of relevant Dev-Docs.json options
30-
31-
Since this command does not require any configuration options in the `dev-docs.json` file, there is no example JSON to provide.
32-
3327
## Prerequisites
3428

3529
To use the `devdocs.resetTokens` command, you must have previously authenticated with the Dev-Docs Cloud service using the `devdocs.getGitHubUser` command or an equivalent authentication flow.
3630

37-
## How do I use this VS Code Extension Command?
31+
## How Do I Use This VS Code Extension Command?
3832

3933
To clear your Dev-Docs authentication tokens, follow these steps:
4034

41-
1. Open the Visual Studio Code Command Palette by pressing `Ctrl+Shift+P` (Windows/Linux) or `Cmd+Shift+P` (macOS).
35+
<br></br>
36+
37+
1. Open the VS Code Command Palette by pressing `Ctrl+Shift+P` (Windows/Linux) or `Cmd+Shift+P` (macOS).
4238
2. Type "Dev-Docs" and select the "Clear dev-docs tokens" command from the list.
4339
3. Alternatively, you can navigate to the Dev-Docs view in the Activity Bar and click the "Sign Out" link when logged in.
4440

45-
After running the command, your Dev-Docs authentication tokens will be removed from your local machine. You will need to re-authenticate with the `devdocs.getGitHubUser` command to regain access to the Dev-Docs Cloud service.
41+
<br></br>
42+
43+
After running the command, your Dev-Docs authentication tokens will be removed from your local machine. You will need to sign in and re-authenticate with the `devdocs.getGitHubUser` command to regain access to the Dev-Docs Cloud service.
4644

4745

docs/VS Code Commands/Generate-API-Documentation-from-Codebase.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ slug: /VS-Code-Commands/Generating-API-Documentation-and-Config
66

77
The `devdocs.generateAPIDocumentation` command allows you to generate API documentation and configuration files directly from your codebase. It analyzes your code, identifies API routes, and generates a Postman Collection JSON file containing all the detected API routes. Additionally, it can generate an OpenAPI (Swagger) specification file for your API.
88

9-
## Why should I use this VS Code Extension Command?
9+
## Why Should I Use This VS Code Extension Command?
1010

1111
Generating API documentation from your codebase has several advantages:
1212

13+
<br></br>
14+
1315
1. **Keeps Documentation Synchronized with Code**: By generating documentation directly from your code, you ensure that your API documentation stays up-to-date with the latest changes in your codebase, reducing the risk of documentation drift.
1416

1517
2. **Saves Time and Effort**: Manually documenting APIs can be a time-consuming and error-prone process. This command automates the process, saving you valuable time and effort.
@@ -22,6 +24,8 @@ Generating API documentation from your codebase has several advantages:
2224

2325
The following configuration options in the `dev-docs.json` file are relevant for the `devdocs.generateAPIDocumentation` command:
2426

27+
<br></br>
28+
2529
- `ai.openapi.file`: Specifies the file path where the generated OpenAPI specification file should be saved.
2630

2731
## Example JSON of relevant Dev-Docs.json options
@@ -38,18 +42,22 @@ The following configuration options in the `dev-docs.json` file are relevant for
3842

3943
## Prerequisites
4044

41-
- Your project should have a `dev-docs.json` configuration file in the root directory.
42-
- The `dev-docs.json` file should be properly configured with the relevant options mentioned above.
45+
1. Your project should have a `dev-docs.json` configuration file in the root directory.
46+
2. The `dev-docs.json` file should be properly configured with the relevant options mentioned above.
4347

44-
## How do I use this VS Code Extension Command?
48+
## How Do I Use This VS Code Extension Command?
4549

4650
1. **Open the command palette**: Press `Cmd+Shift+P` (Mac) or `Ctrl+Shift+P` (Windows/Linux) to open the command palette.
4751
2. **Search for the command**: Type `devdocs.generateAPIDocumentation` and select it from the list.
4852
3. **Wait for the generation process**: The extension will analyze your codebase, identify API routes, and generate the Postman Collection JSON file and OpenAPI specification file based on your configuration.
4953
4. **Review the generated files**: Once the process is complete, you can find the generated files in the locations specified in your `dev-docs.json` configuration.
5054

55+
<br></br>
56+
5157
The generated Postman Collection JSON file can be imported into Postman or other compatible tools for testing and documentation purposes. The OpenAPI specification file can be used for generating client libraries, documentation, or integrating with other tools that support the OpenAPI standard.
5258

59+
<br></br>
60+
5361
By following this process, you can ensure that your API documentation stays up-to-date with your codebase, improving developer experience and facilitating collaboration within your team or with external partners.
5462

5563

docs/VS Code Commands/Generate-Context-for-Multiple-Documents.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ slug: /VS-Code-Commands/Generate-Context-for-Multiple-Documents
66

77
The `devdocs.generateMultiContext` command is used to generate high-level context for multiple code files or directories within the current workspace. This command is particularly useful when you have a project with multiple files or folders, and you want to generate a brief overview or summary for each of them.
88

9-
## Why should I use this VS Code Extension Command?
9+
## Why Should I Use This VS Code Extension Command?
1010

1111
Creating high-level context for multiple files or directories can be a time-consuming and repetitive task, especially in large projects. By using this command, you can automate the process of generating context, saving you time and effort. Additionally, having a concise overview of each file or directory can help you better understand the structure and purpose of your project, making it easier to navigate and maintain.
1212

1313
## What are relevant configuration Options in the `dev-docs.json`?
1414

1515
The following configuration options in the `dev-docs.json` file are relevant for this command:
1616

17-
- `ai.contextDirs`: An array of directories to generate high-level context for. By default, it includes `["src/utils", "src/helpers"]`.
18-
- `customRoot`: The custom root directory for your project, relative to the workspace root. This option helps the extension find the correct files and directories.
19-
- `workspaceRoot`: The absolute path to the root directory of your workspace.
17+
1. `ai.contextDirs`: An array of directories to generate high-level context for. By default, it includes `["src/utils", "src/helpers"]`.
18+
2. `customRoot`: The custom root directory for your project, relative to the workspace root. This option helps the extension find the correct files and directories.
19+
3. `workspaceRoot`: The absolute path to the root directory of your workspace.
2020

2121
## Example JSON of relevant Dev-Docs.json options
2222

@@ -34,21 +34,29 @@ The following configuration options in the `dev-docs.json` file are relevant for
3434

3535
Before using this command, make sure you have:
3636

37+
<br></br>
38+
3739
1. A `dev-docs.json` file configured with the relevant options mentioned above.
3840
2. Code files or directories for which you want to generate context.
3941

40-
## How do I use this VS Code Extension Command?
42+
## How Do I Use This VS Code Extension Command?
4143

4244
To use the `devdocs.generateMultiContext` command, follow these steps:
4345

46+
<br></br>
47+
4448
1. Open the Command Palette in Visual Studio Code (`Ctrl+Shift+P` or `Cmd+Shift+P`).
4549
2. Search for `Generate Context for Multiple Documents` and select the command.
4650
3. The extension will scan your workspace for the specified code files and directories based on the `dev-docs.json` configuration.
4751
4. For each file or directory, the extension will attempt to generate a high-level context summary.
4852
5. The generated context will be displayed in the output panel or a new editor tab, depending on the extension's settings.
4953

54+
<br></br>
55+
5056
The generated context aims to provide a brief overview of the purpose, functionality, and any relevant information about the code file or directory. This can help you quickly understand the role of each component within your project, facilitating better code comprehension and maintenance.
5157

58+
<br></br>
59+
5260
It's important to note that the quality and accuracy of the generated context may vary depending on the complexity of your code and the capabilities of the AI model used by the extension. Additionally, the extension's behavior and output format may be subject to change or improvements in future updates.
5361

5462

docs/VS Code Commands/Generate-High-Level-Context-for-Folders.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@ slug: /VS-Code-Commands/Generate-High-Level-Context-for-the-Folder
66

77
This VS Code extension command allows you to generate a high-level overview or context for the entire folder or directory. It analyzes all the code files within the folder and provides a comprehensive summary of what the folder's purpose is and what it does from a high-level perspective.
88

9-
## Why should I use this VS Code Extension Command?
9+
## Why Should I Use This VS Code Extension Command?
1010

1111
Generating a high-level context for a folder can be extremely useful when working on large codebases or projects with multiple files and directories. It helps you understand the overall purpose and functionality of a specific folder without having to dive into each individual file. This can be particularly beneficial when onboarding new team members, reviewing code, or documenting a project's architecture.
1212

1313
## What are relevant configuration Options in the `dev-docs.json`?
1414

1515
The relevant configuration options for generating a high-level context for a folder in the `dev-docs.json` file are:
1616

17+
<br></br>
18+
1719
1. **`ai.contextDirs`**: An array of directory paths that should be considered for context generation. By default, it includes `["src/utils", "src/helpers"]`.
1820
2. **`ai.internalTypeFilters`**: An array of types or elements that should be included in the context generation process. By default, it includes a wide range of types such as classes, methods, functions, and more.
1921
3. **`customRoot`**: A string that specifies the custom root directory for your project. This can be useful if your project is located within a monorepo or a specific subdirectory.
@@ -51,19 +53,27 @@ The relevant configuration options for generating a high-level context for a fol
5153

5254
Before using the `devdocs.generateFolderContext` command, make sure you have the following prerequisites:
5355

56+
<br></br>
57+
5458
1. A valid `dev-docs.json` configuration file in your project's root directory.
5559
2. The folder or directory for which you want to generate the high-level context must be within the specified `workspaceRoot` or `customRoot` paths.
5660

57-
## How do I use this VS Code Extension Command?
61+
## How Do I Use This VS Code Extension Command?
5862

5963
To generate a high-level context for a folder, follow these steps:
6064

65+
<br></br>
66+
6167
1. Open your project in Visual Studio Code.
6268
2. In the Explorer view, right-click on the folder or directory for which you want to generate the context.
6369
3. From the context menu, select the "Generate High Level Context for the Folder" option.
6470

71+
<br></br>
72+
6573
Alternatively, you can also trigger the command from the Command Palette (Ctrl+Shift+P or Cmd+Shift+P) by typing "Generate High Level Context for the Folder" and selecting the command.
6674

75+
<br></br>
76+
6777
After running the command, the extension will analyze all the code files within the selected folder and generate a high-level context document. This document will provide an overview of the folder's purpose and functionality, helping you understand the code structure and organization better.
6878

6979

0 commit comments

Comments
 (0)