A Sphinx extension that renders data files (YAML, JSON, CSV, etc.) as nicely formatted HTML tables or custom templates. Current version 0.11.0, requires Python >=3.8, released periodically.
pip install sphinxcontrib-datatemplatesVerified import paths — ran on the pinned version, not inferred.
Activate the extension in conf.py, then use the datatemplate directive in reStructuredText to include data files rendered via Jinja2 templates.
Replace '.. data::' with '.. datatemplate::' in all .rst files.
Run 'make clean' after modifying data files, or use sphinx-autobuild.
Convert CSV data to JSON or YAML format.
Install with 'pip install sphinxcontrib-datatemplates' and check ext_list: ['sphinxcontrib.datatemplates'] (dot, not underscore).
Ensure 'sphinxcontrib.datatemplates' is in extensions list in conf.py and that you are using the correct directive name (not 'data').
Place template in source directory or provide absolute/relative path from conf.py directory.