Browse Source

Merge "doc: Generate PlantUML diagrams automatically" into integration

pull/1931/head
Soby Mathew 5 years ago
committed by TrustedFirmware Code Review
parent
commit
b8c691e9ae
  1. 4
      docs/components/sdei.rst
  2. 6
      docs/conf.py
  3. 1
      docs/requirements.txt
  4. 13
      docs/resources/diagrams/plantuml/plantuml_to_svg.sh
  5. 1
      docs/resources/diagrams/plantuml/sdei_explicit_dispatch.svg
  6. 1
      docs/resources/diagrams/plantuml/sdei_general.svg

4
docs/components/sdei.rst

@ -26,7 +26,7 @@ The following figure depicts a general sequence involving SDEI client executing
at EL2 and an event dispatch resulting from the triggering of a bound interrupt.
A commentary is provided below:
.. image:: ../resources/diagrams/plantuml/sdei_general.svg
.. uml:: ../resources/diagrams/plantuml/sdei_general.puml
As part of initialisation, the SDEI client binds a Non-secure interrupt [1], and
the SDEI dispatcher returns a platform dynamic event number [2]. The client then
@ -234,7 +234,7 @@ on success, or ``-1`` on failure.
The following figure depicts a scenario involving explicit dispatch of SDEI
event. A commentary is provided below:
.. image:: ../resources/diagrams/plantuml/sdei_explicit_dispatch.svg
.. uml:: ../resources/diagrams/plantuml/sdei_explicit_dispatch.puml
As part of initialisation, the SDEI client registers a handler for a platform
event [1], enables the event [3], and unmasks the current PE [5]. Note that,

6
docs/conf.py

@ -23,7 +23,7 @@ release = version # We don't need these to be distinct
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = ['sphinx.ext.autosectionlabel']
extensions = ['sphinx.ext.autosectionlabel', 'sphinxcontrib.plantuml']
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
@ -83,3 +83,7 @@ html_theme_options = {
# Only generate automatic section labels for document titles
autosectionlabel_maxdepth = 1
# -- Options for plantuml ----------------------------------------------------
plantuml_output_format = 'svg_img'

1
docs/requirements.txt

@ -1,2 +1,3 @@
sphinx>=2.0.0
sphinx-rtd-theme>=0.4.3
sphinxcontrib-plantuml>=0.15

13
docs/resources/diagrams/plantuml/plantuml_to_svg.sh

@ -1,13 +0,0 @@
#!/bin/bash
# Convert all PlantUML files in this directory to SVG files. The plantuml_jar
# environment variable must be set to the path to PlantUML JAR file.
if [ -z "$plantuml_jar" ]; then
echo "Usage: plantuml_jar=/path/to/plantuml.jar $0 *.puml" >&2
exit 1
fi
java -jar "$plantuml_jar" -nometadata -tsvg "$@"
# vim:set noet sts=8 tw=80:

1
docs/resources/diagrams/plantuml/sdei_explicit_dispatch.svg

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 19 KiB

1
docs/resources/diagrams/plantuml/sdei_general.svg

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 17 KiB

Loading…
Cancel
Save