Building the documentation

Tools and building environment

These tools are used to generate TF-M Tools documentation:

  • Graphviz dot v2.38.0 or later

  • PlantUML v1.2018.11 or later

  • Java runtime environment v1.8 or later (for running PlantUML)

  • Sphinx and other python modules, listed in docs/requirements.txt

To prepare your building environment execute the following steps:

Install the required tools:

sudo apt-get install -y graphviz default-jre
mkdir ~/plantuml
curl -L http://sourceforge.net/projects/plantuml/files/plantuml.jar/download --output ~/plantuml/plantuml.jar

# Install the required Python modules
pip3 install --upgrade pip
cd <tf-m-tools base folder>
pip3 install -r docs/requirements.txt

Set the environment variables:

export PLANTUML_JAR_PATH=~/plantuml/plantuml.jar

Build TF-M Tools Docs

From the root directory of this repository, run:

sphinx-build -M html docs build_docs

The generated HTML documentation can be found in build_docs/html.

Copyright (c) 2024, Arm Limited. All rights reserved.