Integrations¶
dbt charts provides integrations for embedding rendered boards and charts directly in external documentation and publishing tools.
Available Integrations¶
| Integration | Status | Description |
|---|---|---|
| MkDocs | Supported | Embed boards in MkDocs sites via fenced dbt-charts and dbt-charts-example blocks |
| Sphinx | Planned | Directive for reStructuredText / Sphinx projects |
| Hugo | Planned | Shortcode for Hugo static sites |
Architecture¶
Integrations render through the same project session API
(dbt_charts.agent_api.ProjectSession). ProjectSession.render_board()
handles the full compile-execute-render pipeline and returns a typed
envelope carrying embeddable output (SVG, HTML, PNG, or PDF). Each
integration is a thin adapter that:
- Detects embed blocks or directives in the host tool's source format
- Resolves the board file (or its raw YAML) relative to the project
- Opens a
ProjectSessionand callsrender_board()to get rendered output - Injects the output into the host tool's build pipeline
This keeps the core dbt charts architecture undistorted by any single platform's conventions. See MkDocs for a worked example.