Skip to content

Latest commit

 

History

History
31 lines (28 loc) · 2.1 KB

CLAUDE.md

File metadata and controls

31 lines (28 loc) · 2.1 KB

Working in this repository

Code conventions live in CONTRIBUTING.md and are enforced by make ci. This file covers what those do not.

Documentation

  • docs/ is the source of truth for the documentation site. site/ only renders it: the Astro project reads ../docs directly, and nothing under site/src/ is content.
  • docs/reference/functions.md, classes.md, hooks.md, and wp-cli.md are generated by bin/gen-reference.php from source docblocks. Never edit those four by hand. Change the docblock, run make reference, and commit the result; make ci and a CI job fail when the committed copy is stale. The other files in docs/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/, numbered NNNN-slug.md, with number, title, date, status, context, decision, and consequences.
  • Journal entries are docs/journal/YYYY-MM-DD-slug.md with a date: 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 a date: 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 inside site/dist/, which every build clears, so a bare sf publish site/dist would create a second Space. Pushing a v*.*.* 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.