Documentation Standard
This is the source of truth for documentation structure in this repository.
Location Policy
- Product/application docs must live under
apps/docs. - Markdown outside
apps/docsis limited to:- root
README.md - code-area
README.mdfiles (for local developer context) - workspace/agent rule files in dot-folders
- root
- If app docs are found outside
apps/docs, move them.
Required Frontmatter
Every file under apps/docs must include frontmatter:
titledescriptionaudiencewhere applicable (clients,internal,api)
Missing frontmatter fields block docs completion.
Navigation and Indexing
- Each major section/folder should include an
index.md. - New docs must be linked from an appropriate index (section index or internal root index).
- Cross-links should prefer stable canonical paths, not legacy aliases.
Reality-First Rule
Docs must reflect current behavior in apps/frontend and apps/backend.
- If behavior changed, docs update in the same PR.
- If behavior is not implemented yet, mark clearly as future work.
- Future work entries must link to a GitHub issue.
Future Work Convention
Use a dedicated section like ## Future Work and include issue links.
Examples:
- #207 Bulk import backend ingestion
- #208 Report schedule customization
- #209 Media upload finalize lifecycle
- #210 Direct social auto-publish
Documentation Audit Procedure
When running a migration or cleanup:
- Generate/update
internal/documentation-inventory.md. - Validate frontmatter fields across all docs.
- Validate markdown links.
- Verify docs build (
pnpm build:docs). - Fix stale route references (prefer canonical routes from
apps/frontend/src/app/router.tsx).