Documentation maintenance
When to update documentation
Update docs in the same pull request as the behavior change when you:
- Add or remove Nx targets or change
nx.jsondefaults - Change CI workflows (affected detection, lint commands, release steps)
- Add a new plugin or theme (include
docs/index.mdand labeler entries) - Change tagging, Composer, or deployment assumptions
Ownership
- Contributors are responsible for keeping package-local docs (
plugins/<slug>/docs/,themes/<slug>/docs/) accurate. - Maintainers / platform own root workflows, GitHub Pages, and secrets (PATs for mirrors if used).
- No silent TODOs — If something is blocked, add a short note with next step and who should unblock (team name or role), or create an issue and link it.
How to edit the docs site
- Monorepo guides — Edit Markdown in
docs/*.md(this folder). - Package docs — Edit files under
plugins/.../docs/orthemes/.../docs/; runpnpm docs:devto preview. - Navigation — New top-level pages must be registered in
docs/.vitepress/config.mts(sidebar and nav). - Generated output — Never commit hand-edits under
docs/content/; it is produced bytools/sync-docs.mjs.
Review checklist for doc PRs
- [ ] Links to GitHub paths use the correct branch or are relative where possible
- [ ] Commands tested from a clean clone or noted if environment-specific
- [ ] Versioning / release sections match current workflow YAML
- [ ] No personal machine paths (for example
/Users/...)