diff options
author | chebee7i <chebee7i@gmail.com> | 2015-02-14 11:23:53 -0600 |
---|---|---|
committer | chebee7i <chebee7i@gmail.com> | 2015-02-14 11:23:53 -0600 |
commit | ec116c49103dfd4bac3b703d36e0a83165e075a2 (patch) | |
tree | e847e76bcc6b2a419a7d1723befd790248134953 /doc | |
parent | d64d4a58af59b4f03249488f1360c3da8ad9cb56 (diff) | |
download | numpy-ec116c49103dfd4bac3b703d36e0a83165e075a2.tar.gz |
DOC: Mention numpydoc 0.6.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/HOWTO_DOCUMENT.rst.txt | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/doc/HOWTO_DOCUMENT.rst.txt b/doc/HOWTO_DOCUMENT.rst.txt index 3192c7ed3..de0190084 100644 --- a/doc/HOWTO_DOCUMENT.rst.txt +++ b/doc/HOWTO_DOCUMENT.rst.txt @@ -13,11 +13,15 @@ A Guide to NumPy/SciPy Documentation numpy conventions, you should use the ``numpydoc`` extension so that your docstrings will be handled correctly. For example, Sphinx will extract the ``Parameters`` section from your docstring and convert it into a field - list. Using numpydoc will also avoid the reStructuredText errors produced + list. Using ``numpydoc`` will also avoid the reStructuredText errors produced by plain Sphinx when it encounters numpy docstring conventions like section headers (e.g. ``-------------``) that sphinx does not expect to find in docstrings. + Some features described in this document require a recent version of + ``numpydoc``. For example, the **Yields** section was added in + ``numpydoc`` 0.6. + It is available from: * `numpydoc on PyPI <http://pypi.python.org/pypi/numpydoc>`_ @@ -267,6 +271,9 @@ The sections of the docstring are: err_msg : str or None Human readable error message, or None on success. + Support for the **Yields** section was added in `numpydoc + <https://github.com/numpy/numpydoc>`_ version 0.6. + 7. **Other Parameters** An optional section used to describe infrequently used parameters. @@ -546,7 +553,8 @@ Documenting generators ---------------------- Generators should be documented just as functions are documented. The only difference is that one should use the **Yields** section instead -of the **Returns** section. +of the **Returns** section. Support for the **Yields** section was added in +`numpydoc <https://github.com/numpy/numpydoc>`_ version 0.6. Documenting constants |