The documentation website can be accessed from the link.
Below are the installation commands used to install the packages required to build the documentation on your local machine.
sudo apt install python3-sphinx
Install pip3
sudo apt install python3-pip
Use pip3 to install the Read the Docs template
pip3 install sphinx-rtd-theme
Use pip3 to install recommommark to be able to use markdown files
pip3 install recommonmark
Use pip3 to install sphinx_copybutton. It provides a copy button of code blocks.
pip3 install sphinx_copybutton
Use pip3 to install sphinx_design. It provides additional formatting options.
pip3 install sphinx_design
The documentation can be written using either markdown (.md) or restructured text (.rst) formats.
It is important that any new files created for the documentation are included in a toctree specified in a .rst file. You can use the existing documentation as an example.
You can build the documentation by being in the root of the repository e.g. ~/av1tenth-docs
and typing the command:
./scripts/build_docs.sh
You can then view the documentation locally in your default browser with:
./scripts/view_docs.sh
Run the command below in the docs folder of the repo if the built documentation is not updating.
make clean
This will remove all built files so the build will regenerate everything.