Skip to content

Commit 8214e3d

Browse files
Update file
1 parent 31128be commit 8214e3d

File tree

1 file changed

+56
-2
lines changed

1 file changed

+56
-2
lines changed

docs/Enabling automations.md

Lines changed: 56 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This guide explains how to configure the `dev-docs.json` file with the GitHub ap
1010

1111
## Prereqs
1212

13-
* Have an account created on https:\/\/app.docs.dev
13+
* Have an account created on <https://app.docs.dev>
1414

1515
* Have generated a `llm.txt` and `llmText.json` file from docs.dev
1616

@@ -45,6 +45,48 @@ The `dev-docs.json` file should be placed in the root directory of your reposito
4545
}
4646
```
4747

48+
# Configuring code to doc automation
49+
50+
This guide explains how to configure the `dev-docs.json` file with the GitHub app to enable automatic documentation modification and generation when your code changes.
51+
52+
## Prereqs
53+
54+
* Have an account created on <https://app.docs.dev>
55+
56+
* Have generated a `llm.txt` and `llmText.json` file from docs.dev
57+
58+
* Have the GitHub app installed on both your docs repo and codebase you want to generate content on
59+
60+
## File Location
61+
62+
The `dev-docs.json` file should be placed in the root directory of your repository.
63+
64+
## Configuration Fields
65+
66+
### Required Fields
67+
68+
* `gitHubApp`: Object containing GitHub-related configurations
69+
70+
* `approvalWorkflow`: Boolean, enables or disables the approval workflow
71+
72+
* `userDocsWorkflows`: Array of strings, specifies which documentation workflows to run
73+
74+
* `issueNotifications`: Array of strings, GitHub usernames to notify on issue creation
75+
76+
## Example Configuration
77+
78+
```json
79+
{
80+
"gitHubApp": {
81+
"approvalWorkflow": true,
82+
"userDocsWorkflows": ["generateUserDocs"],
83+
"issueNotifications": ["user1", "user2"],
84+
"issues": true,
85+
"connectedOrg": "spriteai"
86+
}
87+
}
88+
```
89+
4890
## Field Descriptions
4991

5092
1. `gitHubApp.approvalWorkflow`: When set to `true`, creates an approval issue before generating documentation. This is recommended so your team decides when to actually attempt to generate documentation as your code changes.
@@ -59,7 +101,7 @@ The `dev-docs.json` file should be placed in the root directory of your reposito
59101

60102
4. `gitHubApp.issueNotifications`: List of GitHub usernames to be notified when documentation-related issues are created.
61103

62-
5. `gitHubApp.connectedOrg`: Optional field, if you have multiple orgs can you can set what org is associated to your repo
104+
5. `gitHubApp.connectedOrg`: Optional field to set the organization name associated with your repository. For example: `"connectedOrg": "spriteai"`
63105

64106
6. `gitHubApp.branches`: Optional field that is an array of branches you specificy the GitHub App to listen, such as or `['branch_a', 'branch_b']` or you can use `['*']` to listen for all branch changes. If omitted the GitHub app will only listen for changes on the default branch.
65107

@@ -74,3 +116,15 @@ The `dev-docs.json` file should be placed in the root directory of your reposito
74116
4. Commit and push the file to your repository.
75117

76118
The system will now use these settings to automatically generate and update documentation based on your code changes.
119+
120+
## Usage
121+
122+
1. Make sure you have a docs.dev account, have installed the GitHub App on your docs repo, and the codebase you want to document.
123+
124+
2. Create a `dev-docs.json` file in your repository's root directory.
125+
126+
3. Configure the fields according to your documentation needs.
127+
128+
4. Commit and push the file to your repository.
129+
130+
The system will now use these settings to automatically generate and update documentation based on your code changes.

0 commit comments

Comments
 (0)