From 81bf4855ca7fb79b8c43f89a8e6b376885b0dab1 Mon Sep 17 00:00:00 2001 From: Valentin Haenel Date: Wed, 14 Sep 2011 15:15:55 +0100 Subject: DOC: mention numpydoc in numpy conventions Explain why it's good to use numpydoc and link to both numpydoc and some installation and usage instructions. --- doc/HOWTO_DOCUMENT.rst.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'doc/HOWTO_DOCUMENT.rst.txt') diff --git a/doc/HOWTO_DOCUMENT.rst.txt b/doc/HOWTO_DOCUMENT.rst.txt index 61d7c3941..eeeb50711 100644 --- a/doc/HOWTO_DOCUMENT.rst.txt +++ b/doc/HOWTO_DOCUMENT.rst.txt @@ -9,6 +9,26 @@ A Guide to NumPy/SciPy Documentation For an accompanying example, see `example.py `_. + When using `Sphinx `_ in combination with the numpy + conventions, you may be interested in the ``numpydoc`` extension, which will + handle your docstrings correctly. For example, it will extract the + ``Parameters`` section from your docstring and convert this into a field list. + It can also help alleviate reStructuredText errors encounterde when using + plain sphinx. Sphinx gets confused because the numpy docstrings have section + headers (e.g. ``-------------``) which sphinx does not expect to find in + docstrings. + + It is available from: + + * `numpydoc on PyPI `_ + * `numpydoc on GitHub (in main numpy repository) + `_ + + Details of how to use it can be found `here + `_ and + `here + `_ + Overview -------- In general, we follow the standard Python style conventions as described here: -- cgit v1.2.1