Open jessetan opened 7 years ago
@jessetan Would this also allow for numerating uml diagrams like normal figures?
If you're talking about Sphinx automatically adding "Figure XYZ" underneath a diagram, yes, that would happen if PlantWeb
inherits from Figure
Yes that was my question. The plantuml plugin here: https://github.com/sphinx-contrib/plantuml
Does already add the Figure XYZ
but requires a locally deployed plantuml.jar
It is not possible to add a caption to a diagram. In Sphinx, this is done using the directive contents, but since the
uml
directive accepts uml as content, it would be better to use a:caption:
option.Implementation idea: Make class
Plantweb
inherit fromFigure
instead ofImage
and set the value of:caption:
as theFigure
directive contents. May change current behavior sinceFigure!=Image
. Alternatively, just build and append a caption node in a way similar toFigure
or sphinxcontrib-plantuml.