diff options
author | Denis Laxalde <denis@laxalde.org> | 2015-10-21 21:31:20 +0200 |
---|---|---|
committer | Denis Laxalde <denis@laxalde.org> | 2015-10-21 21:31:20 +0200 |
commit | bde59512f89b264e6bb00cc9f353bbdf177bf18b (patch) | |
tree | 7e62fe132e24518402ad3b061ece4f7b20113e15 /README.rst | |
parent | f2defeffe2e11b262bbe5a379f3c962e79523c8e (diff) |
Import numpydoc_0.5.orig.tar.gz
Diffstat (limited to 'README.rst')
-rw-r--r-- | README.rst | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..e2711e1 --- /dev/null +++ b/README.rst @@ -0,0 +1,57 @@ +.. image:: https://travis-ci.org/numpy/numpydoc.png?branch=master + :target: https://travis-ci.org/numpy/numpydoc/ + +===================================== +numpydoc -- Numpy's Sphinx extensions +===================================== + +Numpy's documentation uses several custom extensions to Sphinx. These +are shipped in this ``numpydoc`` package, in case you want to make use +of them in third-party projects. + +The following extensions are available: + + - ``numpydoc``: support for the Numpy docstring format in Sphinx, and add + the code description directives ``np:function``, ``np-c:function``, etc. + that support the Numpy docstring syntax. + + - ``numpydoc.traitsdoc``: For gathering documentation about Traits attributes. + + - ``numpydoc.plot_directive``: Adaptation of Matplotlib's ``plot::`` + directive. Note that this implementation may still undergo severe + changes or eventually be deprecated. + +See `A Guide to NumPy/SciPy Documentation <https://github.com/numpy/numpy/blob/master/doc/HOWTO_DOCUMENT.rst.txt>`_ +for how to write docs that use this extension. + + +numpydoc +======== + +Numpydoc inserts a hook into Sphinx's autodoc that converts docstrings +following the Numpy/Scipy format to a form palatable to Sphinx. + +Options +------- + +The following options can be set in conf.py: + +- numpydoc_use_plots: bool + + Whether to produce ``plot::`` directives for Examples sections that + contain ``import matplotlib``. + +- numpydoc_show_class_members: bool + + Whether to show all members of a class in the Methods and Attributes + sections automatically. + +- numpydoc_class_members_toctree: bool + + Whether to create a Sphinx table of contents for the lists of class + methods and attributes. If a table of contents is made, Sphinx expects + each entry to have a separate page. + +- numpydoc_edit_link: bool (DEPRECATED -- edit your HTML template instead) + + Whether to insert an edit link after docstrings. |