Documentation Guidelines
Junior public docs must help readers choose a setup path, copy a working configuration, and check the result. Readers should not need to read internal design docs first.
Page contract
Section titled “Page contract”Every new or substantially edited page should include:
| Field | Purpose |
|---|---|
type |
One of conceptual, tutorial, reference, or troubleshooting. |
summary |
One sentence that states the reader outcome. |
prerequisites |
Internal docs to read first, or []. |
related |
Next useful internal pages. |
Use description for search and browser metadata. Use summary for the reader outcome.
Page types
Section titled “Page types”Choose one primary job per page:
| Type | Use it for |
|---|---|
tutorial |
Step-by-step setup with verification. |
conceptual |
Core idea, choice, or reading path. |
reference |
Fast lookup for config, commands, APIs, or contracts. |
troubleshooting |
Symptom, first check, recovery order, and verification. |
Avoid pages that mix tutorial, concept, and reference material unless the page is intentionally a short overview.
Writing rules
Section titled “Writing rules”Use ASD-STE100 English. Use common words, active voice, short sentences, and one idea per sentence. Keep required Junior terms from the root TERMINOLOGY.md. Explain a required term the first time a new reader may see it. Remove other jargon.
Lead with what the reader must do or decide. Keep examples small and runnable. Add the target file name to a code block when the code belongs in a file.
Prefer:
- short task-oriented headings
- tables for config and choices
- concrete verification steps
- explicit next-step links
- provider setup details on plugin pages
Avoid:
- internal design details before the user-facing result
- old migration details unless a redirect or support note needs them
- multiple pages competing to explain the same setup step
- long inline commands that wrap poorly
Navigation rules
Section titled “Navigation rules”When adding or moving a page:
- Add it to
packages/docs/astro.config.mjsif it should be discoverable. - Add redirects for old public routes.
- Update related pages and package README links.
- Check each changed sentence against the writing rules above.
- Run
pnpm docs:check.
Docs that describe plugins must keep package lists aligned with the real @sentry/junior-* packages and release docs.
Next step
Section titled “Next step”Use Development for local docs commands, then run Testing checks when docs changes touch product examples.