sphinx-contrib/datatemplates
Sphinx plugin for generating RST on the fly from data files and templates.
📊 Datatemplates: Render trang Sphinx từ dữ liệu thật
Sphinx extension sinh RST từ file JSON/YAML/CSV bằng template Jinja2.
sphinxcontrib-datatemplates là extension cho Sphinx, render phần nội dung RST từ file dữ liệu JSON, YAML, CSV. Dùng template có cú pháp Jinja2 để điều khiển cấu trúc xuất ra.
✨ Điểm nổi bật
- Hỗ trợ đa định dạng dữ liệu: JSON, YAML, CSV.
- Template Jinja2: dùng biến, vòng lặp, hàm tùy chỉnh trong template.
- Hàm render bảng:
make_list_table,make_list_table_from_mappings. - Render động: danh sách, bảng lồng nhau từ cấu trúc dữ liệu phức tạp.
- Tích hợp Sphinx: chạy trong quá trình build tài liệu.
💡 Vì sao đáng chú ý
Thay vì viết tay RST cho từng mục, dùng datatemplates sinh nội dung từ file cấu hình hoặc dữ liệu thực. Phù hợp tài liệu kỹ thuật, tài liệu dự án, catalog sản phẩm, hoặc bất kỳ nội dung nào cần đồng bộ từ nguồn dữ liệu.
#Sphinx #Python #Jinja2 #OpenSource #TiniX
Similar Projects
Discover other similar projects and AI models.
Awesome Sphinxdoc is a curated collection of valuable resources for Sphinx
:octocat: 分享 GitHub 上有趣、入门级的开源项目。Share interesting, entry-level open source projects on GitHub.
An extended commonmark compliant parser, with bridges to docutils/sphinx
A clean, three-column Sphinx theme with Bootstrap for the PyData community