Docs Index Contract
OAT docs navigation is generated from each directory index.md, not from hand-maintained mkdocs.yml trees.
Rules
- Every documentation directory must contain an
index.md. - Every
index.mdmust include a## Contentssection. - The
## Contentssection is the only machine-readable source used byoat docs nav sync.
## Contents format
Use Markdown bullet links for sibling pages and child directories:
## Contents
- [Getting Started](getting-started.md) - Setup and local workflow.
- [Reference](reference/index.md) - Reference pages for the subsystem.Notes:
- Links after
## Contentscan include short human-readable descriptions. - Child directories should link to their
index.md. - Prose outside
## Contentsis ignored by nav generation and remains freeform.
Navigation generation
oat docs nav sync --target-dir <docs-app-dir> walks the docs tree from docs/index.md downward and regenerates mkdocs.yml nav entries from the discovered index.md files.
Generated behavior:
- Root
docs/index.mdbecomesHome. - Child directory
index.mdfiles become section landing pages. - Nested entries are emitted in the order they appear under each local
## Contentsblock.
Authoring guidance
- Use
index.mdas the local discovery surface for humans and agents. - Add a short topic description next to each link so agents can choose the right file without opening every page.
- Update
## Contentswhenever you add, remove, or rename docs files in a directory.
If You Are Trying To...
- learn the docs workflow or docs commands as a user, start with Docs Tooling
- contribute or restructure docs in this repo, pair this contract with Contributing to OAT Docs