doxtr-asciidoc
A Sphinx extension that adds an AsciiDoc builder for exporting documentation to AsciiDoc format.
Features
- Export Sphinx documentation to AsciiDoc format
- Compatible with asciidoctor
- Pre-renders diagrams (DrawIO, PlantUML, D2) to PNG
- Pre-renders math equations to images
- Supports sphinx-needs, xlink, and other extensions
- Generates
nav.adocfor navigation structure - Antora-compatible asset organization
Installation
pip install doxtr-asciidoc
Usage
Add to your conf.py:
extensions = [
# ... your other extensions ...
'doxtr_asciidoc',
]
Build AsciiDoc output:
# Using make
make asciidoc
# Using sphinx-build directly
sphinx-build -b asciidoc source/ build/asciidoc/
Configuration
All configuration options use the doxtr_asciidoc_ prefix:
# conf.py
# Image format for pre-rendered content ('png' or 'svg')
doxtr_asciidoc_image_format = 'png'
# Include debug comments showing original RST
doxtr_asciidoc_debug_comments = True
# Generate nav.adoc from toctree
doxtr_asciidoc_generate_nav = True
# Source highlighter: 'auto' (default), 'rouge', 'highlight.js', 'coderay', 'pygments'
# 'auto' uses backend conditionals (highlight.js for HTML, rouge for PDF)
doxtr_asciidoc_source_highlighter = 'auto'
See Configuration Reference for all options.
Supported Extensions
sphinxcontrib.drawio- DrawIO diagrams (pre-rendered)sphinxcontrib.plantuml- PlantUML diagrams (pre-rendered)metapensiero.sphinx.d2- D2 diagrams (pre-rendered)sphinx-diagrams- Python diagrams (pre-rendered)sphinxcontrib.openapi- OpenAPI specs (rendered HTML)sphinxcontrib.httpdomain- HTTP API docs (code blocks)sphinx-needs- Requirements (admonitions with tables)sphinxcontrib.xlink- Cross-references (static links)sphinxcontrib.bibtex- Bibliography (static section)sphinxcontrib.icon- Icons (unicode fallback)
Development
# Install development dependencies
make dev
# Run tests
make test
# Run linting
make lint
# Run type checking
make type-check
License
MIT License - see LICENSE file.
Metadata
Release files for doxtr-asciidoc 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| doxtr_asciidoc-0.1.0.tar.gz | 67.2 kB | With provenance | Details for doxtr_asciidoc-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| doxtr_asciidoc-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for doxtr_asciidoc-0.1.0-py3-none-any.whl |
Total release size: 149.1 kB
Release files / doxtr_asciidoc-0.1.0.tar.gz
| Download URL | doxtr_asciidoc-0.1.0.tar.gz |
|---|---|
| Size | 67.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
258092698e39947d4344416254b79b459903af13b53318a54187260427926b69
|
|
BLAKE2b-256 checksum How to use checksums |
d81d85094525d3d9062fa6a01b399f7c84efbc6f30e044c9b80895202d173ec3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logRelease files / doxtr_asciidoc-0.1.0-py3-none-any.whl
| Download URL | doxtr_asciidoc-0.1.0-py3-none-any.whl |
|---|---|
| Size | 81.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c16a41db06a7b26d5ad7da77cd408ba73059ba01def70a46406d368087bf31c3
|
|
BLAKE2b-256 checksum How to use checksums |
005d4321e975da4616285153ab50bfe6cafdb2a993f9a675ebb6940a3cde66ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logSecurity for doxtr-asciidoc 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for doxtr_asciidoc-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.