We use the Sphinx toolchain to transform the Python docstrings into HTMLs. This is as simple as:
-
Set
TAICHI_PATH
to the root of the Taichi repo. -
Run the following:
pip install -r requirements.txt cd experimental/ make html
-
Then go to
_build/html
and openindex.html
in your browser, i.e.open _build/html/index.html
.
- sphinx-autodoc: This extension can import the modules you are documenting, and pull in documentation from docstrings in a semi-automatic way.
- sphinx.ext.napoleon: This is for parsing the Google-style (Numpy-style as well) Python docstring.
- sphinx-rtd-theme: Additional Sphinx themes.
- sphinx-autoapi: "real" auto-generation of APIs.