Sphinx Extension to add the drawio
directive to include draw.io diagrams.
Important: This extension is in development and not all features will work as advertised or at all.
python3 -m pip install sphinxcontrib-drawio
- In your sphinx config:
extensions = [
"sphinxcontrib.drawio"
]
- Add the binary to $PATH. For Windows add
C:\Program Files\draw.io
and on Linux add/opt/draw.io/
.
Both of these are optional.
drawio_output_format = "png"
drawio_binary_path = "/path/to/draw.io-binary"
.. drawio:: example.drawio
:format: png
:alt: An Example
:align: center
If any other of the draw.io
CLI tool's options are wanted, please file an issue.