You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Enabling automations.md
+56-2Lines changed: 56 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ This guide explains how to configure the `dev-docs.json` file with the GitHub ap
10
10
11
11
## Prereqs
12
12
13
-
* Have an account created on https:\/\/app.docs.dev
13
+
* Have an account created on <https://app.docs.dev>
14
14
15
15
* Have generated a `llm.txt` and `llmText.json` file from docs.dev
16
16
@@ -45,6 +45,48 @@ The `dev-docs.json` file should be placed in the root directory of your reposito
45
45
}
46
46
```
47
47
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.
*`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
+
48
90
## Field Descriptions
49
91
50
92
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
59
101
60
102
4.`gitHubApp.issueNotifications`: List of GitHub usernames to be notified when documentation-related issues are created.
61
103
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"`
63
105
64
106
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.
65
107
@@ -74,3 +116,15 @@ The `dev-docs.json` file should be placed in the root directory of your reposito
74
116
4. Commit and push the file to your repository.
75
117
76
118
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