)
:svg_obj: generate only .svg inside (browser support <svg_obj_>
)
:none: do not generate any images (ignore uml directive)
When svg is inside it will always render full size, possibly bigger
than the container. When svg is inside it will respect container size
and scale if necessary.
plantuml_latex_output_format
Type of output image for LaTeX renderer. (default: 'png')
:eps: generate .eps (not supported by pdflatex
)
:pdf: generate .eps and convert it to .pdf (requires epstopdf
)
:png: generate .png
:tikz: generate .latex in the TikZ format
:none: do not generate any images (ignore uml directive)
Because embedded png looks pretty bad, it is recommended to choose pdf
for pdflatex
or eps
for platex
.
plantuml_epstopdf
Path to epstopdf executable. (default: 'epstopdf')
.. _svg_img: https://caniuse.com/svg-img
.. _svg_obj: https://caniuse.com/svg
plantuml_syntax_error_image
Should plantuml generate images with render errors. (default: False)
plantuml_cache_path
Directory where image cache is stored. (default: '_plantuml')
plantuml_batch_size
(EXPERIMENTAL)
Run plantuml command per the specified number of images. (default: 1)
If enabled, plantuml documents will be first written to the cache directory,
and rendered in batches. This eliminates bootstrapping overhead of Java
runtime and allows plantuml to leverage multiple CPU cores.
To enable batch rendering, set the size to 100-1000.
Developing
Install the python test dependencies with
.. code-block::
pip install sphinxcontrib-plantuml[test]
In addition the following non-python dependencies are required in order to run the tests:
latexmk
plantuml
texlive
texlive-font-utils
texlive-latex-extra
The tests can be executed using pytest
.. code-block::
pytest