PlantUML の利用#
Sphinx の文書に PlantUML の図を挿入するためには、次のようにする。
PlantUML のホームページ から plantuml.jar をダウンロードする。
拡張機能をインストールする。
$ pip3 install sphinxcontrib-plantuml
conf.py に設定を追加する。
extensions += ['sphinxcontrib.plantuml']
plantuml='java -jar $PLANTUML_JAR_PATH'
plantuml_output_format = 'svg'
plantuml_syntax_error_image = True
本文中に図を挿入する。
.. uml::
A -> B: request
return response