Code conventions live in CONTRIBUTING.md and are enforced by make ci. This file covers what
those do not.
docs/is the source of truth for the documentation site.site/only renders it: the Astro project reads../docsdirectly, and nothing undersite/src/is content.docs/reference/functions.md,classes.md,hooks.md, andwp-cli.mdare generated bybin/gen-reference.phpfrom source docblocks. Never edit those four by hand. Change the docblock, runmake reference, and commit the result;make ciand a CI job fail when the committed copy is stale. The other files indocs/reference/are written by hand.- Spec pages under
docs/spec/use exactly three sections, in this order: As proposed, As built, Why. "Why" stays empty when the code matches the proposal. - The make/core proposal is linked, never restated. One or two sentences plus the link.
- Design decisions are ADRs under
docs/decisions/, numberedNNNN-slug.md, with number, title, date, status, context, decision, and consequences. - Journal entries are
docs/journal/YYYY-MM-DD-slug.mdwith adate:field in the frontmatter. The sidebar sorts on it. Tracking documents (open-questions.md,proposal-questions.md,test-coverage-gaps.md) have no date in the filename but do carry adate:field: the date of their last substantive change. Update it whenever you change one.docs/journal/_drafts/is never published. - Nothing about employers, customers, or internal channels goes into
docs/. Attribute feedback to the proposal thread generically unless the name is already public there. - Publishing is
sf publish site/dist --space spc_9bba714db6074646904fbfc3a3bb4fc9. Pass--space: the CLI keeps its link insidesite/dist/, which every build clears, so a baresf publish site/distwould create a second Space. Pushing av*.*.*tag publishes automatically through.github/workflows/docs-publish.yml. - Never change Space access settings or domains from an agent session. Those are the owner's decisions, made in the Spacefast dashboard.