Developers¶
This page serves as a guide to help people developing the documentation.
Versioning¶
We use Sphinx-Multiversion to allow users to view historic revisions of our documentation.
Sphinx Multiversion Overview¶
Sphinx has been configured to search for tags starting with v#. and add them to the version switcher at the bottom of the page. The version switcher has also been configured to put the branch named main at the very top, labled as latest.
During the build process sphinx will go to the commits that the various tags are pointing to, build them, and put the results in seperate folders. Each folder is accessable online as a part of the url when visiting the docs. For example, docs.amdc.dev/v1.0/index.html points to the v1.0 folder, while docs.amdc.dev/v2.0/index.html points to the v2.0 folder.
Makefiles and Build scripts¶
The Makefile is the most up to date method of building the documentation, and can be used by running make clean or make html.
Caution
Sphinx-Multiversion does not take local changes into account when building the docs! Changes you want to view must be commited when testing the version switcher.
For building the documentation locally, make local can be used to only build the files on your computer, instead of building the entire version tree. This allows you to test changes without making commits.