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
docs: address review comments for DOCS_STYLE_GUIDE.md (#21178)
## Summary
This PR addresses David's review comments from PR #21153 to improve the
Documentation Style Guide.
## Changes
- **Research section**: Updated to focus on reading "recent
documentation" instead of "10+ similar pages" - more practical guidance
- **Premium Feature Callout**: Clarified that the manifest.json badge
addition should happen in `docs/manifest.json`
- **Screenshot Guidelines**: Added context that this is for when
screenshots "don't exist yet", making it clearer this is a temporary
measure
- **Tabs documentation**: Expanded explanation to clarify when tabs are
appropriate (parallel content paths)
- **Coder registry**: Added mention of referencing Coder registry URLs
for cross-linking to external Coder resources
All changes maintain the existing documentation structure while
improving clarity and specificity based on review feedback.
Refs #21153
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .claude/docs/DOCS_STYLE_GUIDE.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ This guide documents documentation patterns observed in the Coder repository, ba
6
6
7
7
Before documenting a feature:
8
8
9
-
1.**Research similar documentation** - Read 10+ similar pages in `docs/` to understand writing style, structure, and conventions for your content type (admin guides, tutorials, reference docs, etc.)
9
+
1.**Research similar documentation** - Read recent documentation pages in `docs/` to understand writing style, structure, and conventions for your content type (admin guides, tutorials, reference docs, etc.)
3.**Verify permissions model** - Look up RBAC actions in `coderd/rbac/` (e.g., `view_insights` for Template Insights)
12
12
4.**Check UI thresholds and defaults** - Review frontend code for color thresholds, time intervals, display logic
@@ -42,10 +42,7 @@ Template Insights provides detailed analytics and usage metrics for your Coder t
42
42
43
43
### Premium Feature Callout
44
44
45
-
For Premium-only features:
46
-
47
-
1. Add `(Premium)` suffix to the H1 heading - the documentation system automatically links these to premium pricing information
48
-
2. Add premium badge in `manifest.json` with `"state": ["premium"]`
45
+
For Premium-only features, add `(Premium)` suffix to the H1 heading. The documentation system automatically links these to premium pricing information. You should also add a premium badge in the `docs/manifest.json` file with `"state": ["premium"]`.
49
46
50
47
```markdown
51
48
# Template Insights (Premium)
@@ -94,7 +91,7 @@ When you have multiple screenshots showing different aspects of a feature:
94
91
95
92
### Screenshot Guidelines
96
93
97
-
**When screenshots are not available**: Use image placeholders with descriptive alt text and ask the user to provide screenshots:
94
+
**When screenshots are not yet available**: If you're documenting a feature before screenshots exist, you can use image placeholders with descriptive alt text and ask the user to provide screenshots:
98
95
99
96
```markdown
100
97

@@ -103,6 +100,7 @@ When you have multiple screenshots showing different aspects of a feature:
103
100
Then ask: "Could you provide a screenshot of the Template Insights page? I've added a placeholder at [location]."
104
101
105
102
**When documenting with screenshots**:
103
+
106
104
- Illustrate features being discussed in preceding text
107
105
- Show actual UI/data, not abstract concepts
108
106
- Reference specific values shown when explaining features
@@ -133,7 +131,7 @@ Then ask: "Could you provide a screenshot of the Template Insights page? I've ad
133
131
-`> [!NOTE]` for additional information
134
132
-`> [!WARNING]` for important warnings
135
133
-`> [!TIP]` for helpful tips
136
-
-**Tabs**: Use tabs to present related but parallel documentation paths (e.g., different installation methods, platform-specific instructions)
134
+
-**Tabs**: Use tabs for presenting related but parallel content, such as different installation methods or platform-specific instructions. Tabs work well when readers need to choose one path that applies to their specific situation.
137
135
138
136
## Writing Style
139
137
@@ -162,19 +160,19 @@ Then ask: "Could you provide a screenshot of the Template Insights page? I've ad
162
160
163
161
### Command Examples
164
162
165
-
```markdown
163
+
````markdown
166
164
```sh
167
165
coder server --disable-template-insights
168
166
```
169
-
```
167
+
````
170
168
171
169
### Environment Variables
172
170
173
-
```markdown
171
+
````markdown
174
172
```sh
175
173
CODER_DISABLE_TEMPLATE_INSIGHTS=true
176
174
```
177
-
```
175
+
````
178
176
179
177
### Code Comments
180
178
@@ -191,6 +189,8 @@ Use relative paths from current file location:
0 commit comments