Skip to content

Documentation Guidelines

  • TypeScript enforces types → don’t duplicate type info in prose
  • ESLint enforces style → don’t document code style rules
  • Tests document behavior → don’t duplicate test cases in docs

When making significant technical decisions, create an ADR:

apps/handbook/src/content/docs/architecture/decisions/

ADR format:

  • Status (proposed, accepted, deprecated)
  • Context (why this decision was needed)
  • Decision (what was decided)
  • Consequences (trade-offs, risks)

Document API quirks, rate limits, and gotchas in Data Sources.

Add astronomy terms to the Glossary. Assume readers know programming but may not know cosmology.

Onboarding steps that aren’t obvious from the code itself.

When code looks wrong but is intentional, document why.

WhatWhere
API behaviorTypeScript types + JSDoc
Architecture decisionsADRs
Data source detailsData Sources page
Scientific termsGlossary
Package purposePackage-specific page
App featuresApp-specific page
  • Be concise
  • Use present tense
  • Show, don’t tell (code examples > prose)
  • Keep code blocks minimal
  • Link to external docs rather than duplicating