Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

pina docs

List or render reference topics in the terminal.

Synopsis

pina docs [TOPIC]

Run without a topic to list bundled topics:

pina docs

The binary currently bundles:

TopicContents
pina-idlIDL extraction rules and supported Rust source shapes.
pina-overviewFramework concepts, crates, features, and workflows.
pina-validationDeclarative rules, manual alternatives, and code generation.

Render one with:

pina docs pina-idl
pina docs pina-overview
pina docs pina-validation

Markdown is rendered for the terminal rather than printed as raw source.

Each bundled topic is an mdt consumer of the repository’s templates/*.t.md providers, so docs:check fails when a topic and the template it mirrors disagree.

Custom topics

Set PINA_TEMPLATES_DIR to a directory containing <topic>.t.md files:

PINA_TEMPLATES_DIR=./team-docs pina docs deployment

For that example, Pina reads ./team-docs/deployment.t.md. A custom file takes precedence over a bundled topic with the same name. If no matching custom file exists, Pina falls back to the bundled topic.

Bare pina docs lists bundled topics only; it does not scan the custom directory. This keeps discovery deterministic even when the environment points at a large template tree.

Failure modes

An unknown topic returns a non-zero exit code and prints the bundled topic index. If PINA_TEMPLATES_DIR resolves a topic to a file that cannot be read, the command reports that path and fails.