11# Documentation
22
3- To generate HTML documentation run the ` generate_docs.py ` script from any sub-dir of the
4- repository (most likely ` build ` ) or enable and use build target 'docs' (see details below).
3+ To generate HTML documentation, run the ` generate_docs.py ` script from any sub-directory of the repository (most likely ` build ` ).
4+ To display the proper version of UMF in the documentation title, set the ` UMF_VERSION ` variable before running the script.
5+
6+ ``` bash
7+ cd build
8+ $ UMF_VERSION=< your version, e.g. " 0.12.1" > python ../docs/generate_docs.py
9+ ```
10+
11+ Documentation can also be built using the build target 'docs' (see details below).
512
613This script will create ` ./docs_build ` sub-directory, where the intermediate and final files
714will be created. HTML docs will be in the ` ./docs_build/generated/html ` directory.
@@ -12,13 +19,14 @@ To run documentation generation via build target use CMake commands below.
1219To enable this target, python executable (in required version) has to be found in the system.
1320
1421``` bash
15- $ cmake -B build
16- $ cmake --build build --target docs
22+ cmake -B build
23+ cmake --build build --target docs
1724```
1825
1926## Requirements
2027
2128Script to generate HTML docs requires:
22- * [ Doxygen] ( http://www.doxygen.nl/ ) at least v1.9.1
23- * [ Python] ( https://www.python.org/downloads/ ) at least v3.8
24- * and python pip requirements, as defined in ` third_party/requirements.txt `
29+
30+ * [ Doxygen] ( http://www.doxygen.nl/ ) at least v1.9.1
31+ * [ Python] ( https://www.python.org/downloads/ ) at least v3.8
32+ * and python pip requirements, as defined in ` third_party/requirements.txt `
0 commit comments