5.7.1. How to generate the automatic documentation with Sphinx¶
For the automatic documentation to work, please follow the code style
guidelines for
docstrings.
To compile the autodoc with sphinx, simply install sphinx > 1.3
(pip install sphinx) and type (starting from the pyrpl root
directory)
cd doc/sphinx
make html
An extensive discussion of the (automatic) documentation can be found in issue #291.
A few useful links and older information (from issue #85):
We should implement this in order to view the autodoc online, preferentially by having travis perform a build of the autodoc at each commit: https://daler.github.io/sphinxdoc-test/includeme.html
The good commands for building autodoc are described here: http://gisellezeno.com/tutorials/sphinx-for-python-documentation.html
These commands are:
cd doc/sphinxsphinx-apidoc -f -o source/ ../../pyrpl/make html
Current version of autodoc: https://github.com/pyrpl-fpga/pyrpl/blob/master/doc/sphinx/build/html/pyrpl.html