We use Sphinx
and ReadtheDocs
to organize our documentation page.
In addition, we utilize the following extensions to enhance the documentation ☕
numpydoc
: We favor numpy documentation style for API documentation.myst_parser
: We like to write documentation and guidelines inmarkdown
format.
The sphinx
is already initialized in docs
directory. In order to build the documentation, you will need additional packages listed in docs/requirements.txt
.
pip install sphinx sphinx_rtd_theme myst-parser numpydoc
cd docs
make clean
make html
Once the documentation building is done, open docs/_build/html/index.html
to view.
Use make help
for other options.
User guidelines and tutorials are written in .rst
or .md
format.
These files will be managed in docs
directory.
The docstring for function or modules are automatically parsed using sphinx
+numpydoc
.
Any inline function description, such as
""" This is the form of a docstring.
... description
Attributes
----------
x : type
x description
y : type
y description
"""
will be parsed and displayed in API documentation. See numpydoc
for more details.
ReadtheDocs
runs sphinx
internally and maintain the documentation website. We will always activate the stable
and latest
version, and few past-documentations will also be available for the support.
@nmnaughton and @skim449 has access to the ReadtheDocs
account.