blob: c4405d53f51aa83341065455cc09ec84b526b83a [file] [log] [blame]
Nik Dewally0188ded2024-07-01 12:17:12 +01001##########################
2Building the documentation
3##########################
4
5******************************
6Tools and building environment
7******************************
8
9These tools are used to generate TF-M Tools documentation:
10
11 - Graphviz dot v2.38.0 or later
12 - PlantUML v1.2018.11 or later
13 - Java runtime environment v1.8 or later (for running PlantUML)
14 - Sphinx and other python modules, listed in ``docs/requirements.txt``
15
16
17To prepare your building environment execute the following steps:
18
19.. tabs::
20
21 .. group-tab:: Linux
22
23 Install the required tools:
24
25 .. code-block:: bash
26
27 sudo apt-get install -y graphviz default-jre
28 mkdir ~/plantuml
29 curl -L http://sourceforge.net/projects/plantuml/files/plantuml.jar/download --output ~/plantuml/plantuml.jar
30
31 # Install the required Python modules
32 pip3 install --upgrade pip
33 cd <tf-m-tools base folder>
34 pip3 install -r docs/requirements.txt
35
36 Set the environment variables:
37
38 .. code-block:: bash
39
40 export PLANTUML_JAR_PATH=~/plantuml/plantuml.jar
41
42 .. group-tab:: Windows
43
44 Download and install the following tools:
45
46 - `Graphviz 2.38 <https://graphviz.gitlab.io/_pages/Download/windows/graphviz-2.38.msi>`__
47 - The Java runtime is part of the Arm DS installation or can be downloaded from `here <https://www.java.com/en/download/>`__
48 - `PlantUML <http://sourceforge.net/projects/plantuml/files/plantuml.jar/download>`__
49
50 Set the environment variables, assuming that:
51
52 - dot binaries are available on the PATH.
53 - Java JVM is used from Arm DS installation.
54
55 .. code-block:: bash
56
57 set PLANTUML_JAR_PATH=<plantuml_Path>\plantuml.jar
58 set PATH=$PATH;<ARM_DS_PATH>\sw\java\bin
59
60 # Install the required Python modules
61 pip3 install --upgrade pip
62 cd <tf-m-tools base folder>
63 pip3 install -r docs\requirements.txt
64
65
66*********************
67Build TF-M Tools Docs
68*********************
69
70From the root directory of this repository, run:
71
72.. code-block:: bash
73
74 sphinx-build -M html docs build_docs
75
76The generated HTML documentation can be found in `build_docs/html`.
77
78
79*Copyright (c) 2024, Arm Limited. All rights reserved.*
80