Skip to content

Commit 244e6ca

Browse files
bpmctclaude
andauthored
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>
1 parent 3a0e8af commit 244e6ca

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.claude/docs/DOCS_STYLE_GUIDE.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This guide documents documentation patterns observed in the Coder repository, ba
66

77
Before documenting a feature:
88

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.)
1010
2. **Read the code implementation** - Check backend endpoints, frontend components, database queries
1111
3. **Verify permissions model** - Look up RBAC actions in `coderd/rbac/` (e.g., `view_insights` for Template Insights)
1212
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
4242

4343
### Premium Feature Callout
4444

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"]`.
4946

5047
```markdown
5148
# Template Insights (Premium)
@@ -94,7 +91,7 @@ When you have multiple screenshots showing different aspects of a feature:
9491

9592
### Screenshot Guidelines
9693

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:
9895

9996
```markdown
10097
![Placeholder: Template Insights page showing weekly active users chart](../../images/admin/templates/template-insights.png)
@@ -103,6 +100,7 @@ When you have multiple screenshots showing different aspects of a feature:
103100
Then ask: "Could you provide a screenshot of the Template Insights page? I've added a placeholder at [location]."
104101

105102
**When documenting with screenshots**:
103+
106104
- Illustrate features being discussed in preceding text
107105
- Show actual UI/data, not abstract concepts
108106
- 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
133131
- `> [!NOTE]` for additional information
134132
- `> [!WARNING]` for important warnings
135133
- `> [!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.
137135

138136
## Writing Style
139137

@@ -162,19 +160,19 @@ Then ask: "Could you provide a screenshot of the Template Insights page? I've ad
162160

163161
### Command Examples
164162

165-
```markdown
163+
````markdown
166164
```sh
167165
coder server --disable-template-insights
168166
```
169-
```
167+
````
170168

171169
### Environment Variables
172170

173-
```markdown
171+
````markdown
174172
```sh
175173
CODER_DISABLE_TEMPLATE_INSIGHTS=true
176174
```
177-
```
175+
````
178176

179177
### Code Comments
180178

@@ -191,6 +189,8 @@ Use relative paths from current file location:
191189
- `[Template Permissions](./template-permissions.md)`
192190
- `[API documentation](../../reference/api/insights.md)`
193191

192+
For cross-linking to Coder registry templates or other external Coder resources, reference the appropriate registry URLs.
193+
194194
### Cross-References
195195

196196
- Link to related documentation at the end

0 commit comments

Comments
 (0)