Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
sphinxcontrib-plantuml
Advanced tools
.. code-block::
pip install sphinxcontrib-plantuml
Add sphinxcontrib.plantuml
to your extensions list in your conf.py
:
.. code-block:: python
extensions = [ 'sphinxcontrib.plantuml', ]
You may also need to specify the plantuml command in your conf.py:
.. code-block:: python
plantuml = 'java -jar /path/to/plantuml.jar'
Instead, you can install a wrapper script in your PATH:
.. code-block:: console
% cat < /usr/local/bin/plantuml #!/bin/sh -e java -jar /path/to/plantuml.jar "$@" EOT % chmod +x /usr/local/bin/plantuml
Then, write PlantUML text under the .. uml::
(or .. plantuml::
)
directive::
.. uml::
Alice -> Bob: Hi!
Alice <- Bob: How are you?
or specify path to an external PlantUML file::
.. uml:: external.uml
You can specify height
, width
, scale
and align
::
.. uml::
:scale: 50 %
:align: center
Foo <|-- Bar
You can also specify a caption::
.. uml::
:caption: Caption with **bold** and *italic*
:width: 50mm
Foo <|-- Bar
For details, please see PlantUML_ documentation.
.. _PlantUML: http://plantuml.com/
plantuml Path to plantuml executable. (default: 'plantuml')
plantuml_output_format Type of output image for HTML renderer. (default: 'png')
:png: generate only .png inside
:svg: generate .svg inside with .png inside as a fallback
:svg_img: generate only .svg inside ( 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 Because embedded png looks pretty bad, it is recommended to choose 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. 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: The tests can be executed using .. code-block::browser support <svg_img_>
)
:svg_obj: generate only .svg inside (browser support <svg_obj_>
)
:none: do not generate any images (ignore uml directive)
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)pdf
for pdflatex
or eps
for platex
.Developing
latexmk
plantuml
texlive
texlive-font-utils
texlive-latex-extra
pytest
pytest
FAQs
Sphinx "plantuml" extension
We found that sphinxcontrib-plantuml demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.