There are two ways of building the documentation for the labs:
- installing Sphinx on your computer;
- running Sphinx inside a docker container that you build and run on your machine.
In order to build the documentation you will need the following packages:
python3-pip
ditaa
graphiz
For debian-based installs, you can install them by using:
# apt-get install python3-pip ditaa graphviz
In order do build the rest of the documentation, you will need to install them using pip3 by running the following command in the repo directory:
pip3 install -r requirements.txt
In order to compile the documentation inside a docker image, you need to have
installed docker
and docker-compose
. The installation method depends on the
distribution you're running.
To build the documentation on your host OS, you will need to run the following command in the root directory of the repo:
make html
To build the documentation using containers, you will need to run the following command in the root directory of the repo:
make docker-build
The above command will take more time on your first run, since it will build the containers.