We use and will use the Google style docstring format to document our code. A good place to get familiar with Python documentation: https://www.youtube.com/watch?v=JQ8RQru-Y9Y , most of these are preset to easy execution in this repository, but if you have to or want to change something, it is a good summary about Sphinx.
- LaTeX math mode enabled: https://www.sphinx-doc.org/en/master/usage/extensions/math.html#module-sphinx.ext.mathjax , https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#math
- Todo enabled: https://www.sphinx-doc.org/en/master/usage/extensions/todo.html
You have to be able to execute the code in order to generate the documentations, since it will be imported and analysed during the generation.