This project uses qt style documentation.
Documentation¶
Steps to manually make GL Engine documentation¶
To start fresh, first delete the
_builddirectoryLoad Msys and navigate to the
docsfolderrun
doxygen Doxyfile.inWhis will generate the doxygen documentation
run
make htmlThis will make the Sphinx documantation
Tutorial¶
Making documentation for a C++ project that works on readthedocs.org is a little bit complicated. It requires Doxygen, Breathe and Sphinx to work together. I’m going to outline the steps that worked for me here.
Install Doxygen
I found the easiest way was to install it with NuGet package manager and then add the directory where it was installed to the Windows
Pathenvironment variables.
Install MinGW and MSYS. This will give you access to the
makecommand.From here, you can follow this tutorial
You only need part 2 and you don’t need anything
CMakerelated.
Add
subprocess.call('doxygen Doxyfile.in', shell=True)near the top of theconf.pyfile to ensure that Doxygen and Sphinx both run whenmake htmlis called.Make a requirements.txt file for your pip packages and put it in your
docsfolder.Make a
readthedocs.ymlfile and put it in your root directory. This will tellreadthedocs.orgwhat to install in order to display your documentation.Use the following settings
# Required
version: 2
# Build documentation in the docs/ directory with Sphinx
sphinx:
builder: html
configuration: docs/conf.py
python:
version: 3.7
install:
- requirements: docs/requirements.txt
system_packages: true
Go to the Read the Docs website and set up an account.
If everything goes well, your documentation should build and display succesfully.