Skip to content

Commit 3d30461

Browse files
all set
2 parents 31d763c + 5b6e853 commit 3d30461

File tree

377 files changed

+62465
-476
lines changed

Some content is hidden

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

377 files changed

+62465
-476
lines changed

.devcontainer/devcontainer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
"name": "Docusaurus Project",
33
"image": "mcr.microsoft.com/vscode/devcontainers/javascript-node:18",
44
"forwardPorts": [3000],
5-
"postCreateCommand": "npm install",
65
"settings": {
76
"terminal.integrated.shell.linux": "/bin/bash"
87
},
98
"extensions": [
109
"dev-docs.dev-docs"
11-
]
10+
],
11+
"features": {
12+
"ghcr.io/devcontainers-community/features/deno:1": {}
13+
}
1214
}
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
2+
3+
# Configuring dev-docs.json for GitHub App Documentation Generation
4+
5+
This guide will walk you through the process of configuring the `dev-docs.json` file to enable automatic documentation generation using the Dev-Docs GitHub App.
6+
7+
## Step 1: Locate the dev-docs.json file
8+
9+
The `dev-docs.json` file should be located in the root directory of your repository.
10+
11+
## Step 2: Basic Structure
12+
13+
Ensure your `dev-docs.json` file has the following basic structure:
14+
15+
```json
16+
{
17+
"gitHubApp": {
18+
"workflows": []
19+
}
20+
}
21+
```
22+
23+
## Step 3: Configure Workflows
24+
25+
To enable documentation generation, add the `generateDocs` workflow to the `workflows` array:
26+
27+
```json
28+
{
29+
"gitHubApp": {
30+
"workflows": ["generateDocs"]
31+
}
32+
}
33+
```
34+
35+
Note: The `workflows` array accepts specific enum values. Currently, the supported values are:
36+
37+
- `generateDocs`: Enables automatic documentation generation
38+
- `generateChangelog`: Enables automatic changelog generation
39+
40+
## Step 4: Additional Configuration (Optional)
41+
42+
Depending on your project's needs, you may want to add more configuration options. For example:
43+
44+
```json
45+
{
46+
"ai":{
47+
"contextDirs": ["src", "lib"],
48+
},
49+
"gitHubApp": {
50+
"workflows": ["generateDocs"]
51+
}
52+
}
53+
```
54+
55+
## Step 5: Commit and Push
56+
57+
After configuring your `dev-docs.json` and installing the GitHub app, commit the changes and push them to your repository.
58+
59+
60+
61+
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
2+
3+
# Using the "Generate High Level Context for the Folder" Command
4+
5+
## Overview
6+
7+
The "Generate High Level Context for the Folder" command is a powerful feature in Dev-Docs that allows you to automatically generate high-level documentation for an entire folder in your project. This guide will walk you through how to use this command and customize its behavior using the `dev-docs.json` configuration file.
8+
9+
## Step-by-Step Guide
10+
11+
### 1. Right-Click on a Folder
12+
In your VS Code file explorer, right-click on the folder you want to document.
13+
14+
### 2. Select the Command
15+
From the context menu, choose "Generate High Level Context for the Folder".
16+
17+
### 3. Wait for Processing
18+
The extension will analyze the folder contents and generate documentation. This may take a moment depending on the folder size and complexity.
19+
20+
### 4. Review Generated Documentation
21+
Once complete, a new Markdown file will be created in your `dev-docs` folder, containing the high-level context for the selected folder.
22+
23+
## Customizing with dev-docs.json
24+
25+
You can customize the behavior of this command by modifying the `dev-docs.json` file in your project root. Here are some key configurations:
26+
27+
### 1. Customizing the Context Prompt
28+
29+
```json
30+
{
31+
"ai": {
32+
"contextPrompt": "your_custom_prompt_here"
33+
}
34+
}
35+
```
36+
37+
This allows you to specify a custom prompt for generating the context. You can also use a Markdown file for more complex prompts:
38+
39+
```json
40+
{
41+
"ai": {
42+
"contextPrompt": "dev-docs/prompt.md"
43+
}
44+
}
45+
```
46+
47+
### 2. Specifying Context Directories
48+
49+
```json
50+
{
51+
"ai": {
52+
"contextDirs": ["src", "lib", "utils"]
53+
}
54+
}
55+
```
56+
57+
This limits the context generation to specific directories, which is useful for large projects.
58+
59+
60+
61+
62+

dev-docs.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
22
"external": true,
33
"ai": {
4-
"contextDirs": [
5-
"docs"
6-
],
7-
"task": "dev-docs/task.md",
8-
"auditTasks": ["dev-docs/audit_task_one.md"],
94
"mappings": []
5+
},
6+
"gitHubApp": {
7+
"workflows": [
8+
"generateDocs",
9+
"generateChangelog"
10+
]
1011
}
1112
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
3+
---
4+
# High Level Context
5+
## context
6+
This file is a DevContainer configuration for a Docusaurus project. It defines the development environment for use with Visual Studio Code's Remote - Containers feature or GitHub Codespaces. Key aspects include:
7+
8+
1. It uses a Node.js 18 base image
9+
2. It forwards port 3000 for local development
10+
3. It automatically installs dependencies using npm
11+
4. It sets the default shell to bash
12+
5. It includes the Dev Docs extension
13+
6. It adds Deno as an additional feature to the container
14+
15+
This configuration ensures a consistent development environment across different machines and simplifies the setup process for new contributors to the Docusaurus project.
16+
17+
---
18+
# Docusaurus Project .devcontainer/devcontainer.json
19+
## Imported Code Object
20+
I apologize, but I cannot provide an explanation based on the code snippet you've provided. The snippet "[object Object]" is not actual code, but rather a string representation of a JavaScript object that has been improperly converted to a string.
21+
22+
To get a meaningful explanation, you would need to provide the actual code or configuration related to the Docusaurus project. Docusaurus is a static site generator for creating documentation websites, but without seeing the specific code or configuration, I cannot provide any details about how it's being used in your particular case.
23+
24+
If you have a specific code snippet or configuration file related to Docusaurus, please share that, and I'll be happy to explain it.
25+
26+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
3+
---
4+
# High Level Context
5+
## context
6+
This file, "Dev-Docs-Quickstart.md", is a Markdown document that serves as a quickstart guide for using the Dev-Docs tool. It provides step-by-step instructions for new users to get started with Dev-Docs in about five minutes. The guide covers:
7+
8+
1. Creating an account on dev-docs.io
9+
2. Opening a sample repo in GitHub Codespaces
10+
3. Installing and setting up the Dev-Docs extension in VS Code
11+
4. Generating onboarding documentation for a code file
12+
5. Creating user-facing documentation
13+
14+
The document includes visual aids (images) to help users follow along with each step. It also briefly explains how Dev-Docs works, mentioning the `dev-docs.json` configuration file and the tool's customization capabilities. This quickstart guide is designed to give users a quick and practical introduction to the Dev-Docs platform and its core features.
15+
16+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
3+
---
4+
# High Level Context
5+
## context
6+
This Markdown file is a guide for installing the Dev-Docs VS Code extension. It appears to be part of a documentation website, likely built with a static site generator that uses frontmatter (such as Docusaurus, given the 'sidebar_position' metadata). The document provides a step-by-step tutorial with visual aids (screenshots) to help users install the extension in Visual Studio Code. It's structured in a clear, user-friendly manner, making it easy for developers to follow along and set up the Dev-Docs extension in their VS Code environment.
7+
8+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
3+
---
4+
# High Level Context
5+
## context
6+
This Markdown file provides instructions for users to sign in to the Dev-Docs extension in Visual Studio Code. It is part of an initial setup guide, specifically focused on authenticating users within the VS Code environment. The document outlines a three-step process:
7+
8+
1. Locating the Dev-Docs login button in VS Code
9+
2. Clicking the Sign In button to initiate the login process
10+
3. Selecting the user's organization from a dropdown menu
11+
12+
The file includes images to visually guide users through each step, making the process more accessible. The sidebar_position metadata suggests this is part of a larger documentation structure, likely the third item in a series of setup instructions.
13+
14+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
3+
---
4+
# High Level Context
5+
## context
6+
This JSON file is likely part of a documentation system or website structure, possibly using a framework like Docusaurus. It defines metadata for a category of documentation called "Initial Setup":
7+
8+
1. The "label" field sets the display name for this category.
9+
2. The "position" field (value 3) probably determines the order in which this category appears relative to others.
10+
3. The "link" object with "type": "generated-index" suggests that an index page will be automatically generated for this category, listing its contents.
11+
12+
This file helps organize and structure the documentation, making it easier for users to navigate and find information about the initial setup process for the documented project or system.
13+
14+
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
3+
---
4+
# High Level Context
5+
## context
6+
This Markdown file provides instructions for customizing AI-generated documentation in the Dev-Docs VS Code extension. It covers the following key steps:
7+
8+
1. Signing into Dev-Docs in VS Code
9+
2. Selecting an organization
10+
3. Locating the dev-docs.json configuration file
11+
4. Customizing the JSON configuration to tailor AI-generated documentation
12+
5. Running the AI documentation generation on a chosen code file
13+
14+
The file explains how to modify the dev-docs.json file to include custom questions for the AI to answer about the code, set accepted file extensions, and configure whether documentation should be generated automatically on save. It also provides instructions on how to manually trigger documentation generation using the command palette or keyboard shortcut.
15+
16+
Overall, this guide helps users personalize their AI-assisted documentation process within the Dev-Docs extension.
17+
18+

0 commit comments

Comments
 (0)