Templates
Templates decide how every page looks. The templates below are built into pudu-lang-docgen
and are selected by name in build.template. Template folders of your own are listed after
them to override partials and add styles; see Templates and theming.
default
The standard look: a responsive layout with light, dark, and automatic color themes, a header with search, a filterable sidebar, breadcrumbs, an article outline, previous and next links, and print styles. Its layout and partials can be exported and overridden.
- Command line
docgen template export template- Configuration
"template": ["default", "template"]
rest.tagpage
A template extension for HTTP API reference. Each OpenAPI description is published as an overview page with servers, an operation index, and schemas, plus one page per tag.
- Configuration
"template": ["default", "rest.tagpage"]
rest.operationpage
A template extension for HTTP API reference that publishes one page per operation. Combine
it with rest.tagpage for tag pages that link to operation pages.
- Configuration
"template": ["default", "rest.tagpage", "rest.operationpage"]