Recently while trying to enable sphinx autodoc extension for pysph i came across this sphinx convention for docstrings (
http://sphinx.pocoo.org/domains.html#info-field-lists ) which is basically:
:param [type] name: <doc>
About halfway through the conversion of existing docs i came across a different format used by numpy and friends (
https://github.com/numpy/numpy/blob/master/doc/HOWTO_DOCUMENT.rst.txt#id7 ) which is:
Parameters
----------
x : type
Description of parameter `x`.
Now i wish to open for discussion which format to use. Our choices are:
1. Use the numpy format (most docstrings are already in that format).
It will need us to include the numpy docstring parser extension for sphinx (
https://github.com/numpy/numpy/blob/master/doc/sphinxext/numpydoc.py - need to check license) in PySPH for the docstrings to be useful (else it gives parser errors in sphinx: invalid in rest)
2. Switch over to using the default sphinx format. I've attempted to convert a few files before i came across the numpy format