typsphinx Documentation¶
typsphinx is a Sphinx extension that integrates the Sphinx documentation generator with the Typst typesetting system.
It combines Sphinx’s powerful documentation generation capabilities with Typst’s modern typesetting features to create high-quality technical documents.
Key Features¶
Sphinx to Typst Conversion: Convert reStructuredText/Markdown to Typst format
Dual Builder Integration:
typstbuilder: Generate Typst markup filestypstpdfbuilder: Generate PDF directly (no external Typst CLI required)
Self-Contained PDF Generation: Self-contained PDF generation via typst-py
Customizable Output: Customize Typst templates and styles
Cross-References: Reproduce Sphinx cross-references, indexes, and table of contents in Typst
Code Highlighting: Syntax highlighting with codly package
Math Support: LaTeX math via mitex or native Typst math
Figure Management: Embed and reference images, tables, and figures
Quick Links¶
GitHub Repository: https://github.com/YuSabo90002/typsphinx
PyPI Package: https://pypi.org/project/typsphinx/
Issue Tracker: https://github.com/YuSabo90002/typsphinx/issues
Getting Started
User Guide
Examples
API Reference
Development