Skip to content

Documentation Guidelines

Junior public docs should help readers choose the right setup path, copy a working configuration, and verify behavior without reading internal specs first.

Every new or substantially edited page should include:

FieldPurpose
typeOne of conceptual, tutorial, reference, or troubleshooting.
summaryOne sentence that states the reader outcome.
prerequisitesInternal docs to read first, or [].
relatedNext useful internal pages.

Use description for search and browser metadata. Use summary for the reader outcome.

Choose one primary job per page:

TypeUse it for
tutorialStep-by-step setup with verification.
conceptualMental model, tradeoff, or reading path.
referenceFast lookup for config, commands, APIs, or contracts.
troubleshootingSymptom, first check, recovery order, and verification.

Avoid pages that mix tutorial, concept, and reference material unless the page is intentionally a short overview.

Lead with what the reader should do or decide. Keep examples minimal but runnable, and label code fences with the target file when the snippet 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 implementation chatter before the user-facing outcome
  • stale migration details unless a redirect or compatibility note needs them
  • multiple pages competing to explain the same setup step
  • long inline commands that wrap poorly

When adding or moving a page:

  1. Add it to packages/docs/astro.config.mjs if it should be discoverable.
  2. Add redirects for old public routes.
  3. Update related pages and package README links.
  4. Run pnpm docs:check.

Docs that describe plugins must keep package lists aligned with the real @sentry/junior-* packages and release docs.

Use Development for local docs commands, then run Testing checks when docs changes touch product examples.