docs/contributing/documentation.md
Ghost's codebase documentation explains how to understand, change, test, and ship this repository. It is public and reviewed alongside the code it describes.
Give each topic one canonical home. Link to that source instead of copying it into another documentation surface.
| Content | Home |
|---|---|
| Codebase-wide setup, workflow, architecture, and practices | /docs |
| Package, service, app, or test-suite details | A README beside the code |
| Canonical domain language | A CONTEXT.md beside the domain |
| Relationships between bounded contexts | The root CONTEXT-MAP.md |
| Contribution policy and the contributor entry point | .github/CONTRIBUTING.md |
| Agent-only execution rules and constraints | The nearest AGENTS.md or repository skill |
| Product, API, theme, and self-hosting documentation | ghost.org/docs |
| Proposals, company process, private operations, and temporary work | The internal Ghost workspace |
/docs for guidance that crosses workspace or domain boundaries.CONTEXT.md is a glossary for a bounded context: its important terms,
precise meanings, and terms to avoid.CONTEXT-MAP.md.Whoever changes or introduces a documented concept is responsible for updating its documentation.
/docs, and agent guidance when a change crosses
those surfaces.AGENTS.md focused on directions to canonical docs and agent-specific
execution constraints.AGENTS.md at or below 150 lines. The documentation lint
enforces this limit.Run the repository hygiene check before submitting documentation changes:
pnpm check
pnpm lint:docs
git diff --check origin/main...HEAD
pnpm lint:docs does not currently validate Markdown
links.