test uml usage

This commit is contained in:
chfw 2017-05-20 13:38:04 +01:00
parent 1fb6f9c83a
commit 923385eba3
5 changed files with 30 additions and 9 deletions

View File

@ -11,4 +11,4 @@ spelling:
sphinx-build -b spelling docs/source/ docs/build/spelling
uml:
plantuml -o ../_static/images/ docs/source/uml/*.uml
plantuml -tsvg -o ../_static/images/ docs/source/uml/*.uml

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 6.7 KiB

View File

@ -39,11 +39,7 @@ If no chef was found, it prints the default string: I do not know.
Now let us move to plugin.py. Some of non-relevant lines were omitted here.
.. uml::
Chef <|-- Boost
Chef <|-- Fry
Chef <|-- Bake
.. image:: _static/images/robot_chef.svg
.. code-block:: python
:linenos:

View File

@ -10,11 +10,9 @@ extensions = [
'sphinx.ext.intersphinx',
'sphinx.ext.viewcode',
'sphinx.ext.napoleon',
'sphinxcontrib.plantuml',
'sphinxcontrib.spelling'
]
tool = os.path.join(os.path.dirname(__file__), "tools/plantuml.jar")
plantuml = 'java -Djava.awt.headless=true -jar %s' % tool
plantuml_output_format = 'svg'
templates_path = ['_templates']
source_suffix = '.rst'

View File

@ -0,0 +1,7 @@
@startuml
Chef <|-- Boost
Chef <|-- Fry
Chef <|-- Bake
@enduml