| 1 |
.. image:: https://travis-ci.org/numpy/numpydoc.png?branch=master |
| 2 |
:target: https://travis-ci.org/numpy/numpydoc/ |
| 3 |
|
| 4 |
===================================== |
| 5 |
numpydoc -- Numpy's Sphinx extensions |
| 6 |
===================================== |
| 7 |
|
| 8 |
Numpy's documentation uses several custom extensions to Sphinx. These |
| 9 |
are shipped in this ``numpydoc`` package, in case you want to make use |
| 10 |
of them in third-party projects. |
| 11 |
|
| 12 |
The following extensions are available: |
| 13 |
|
| 14 |
- ``numpydoc``: support for the Numpy docstring format in Sphinx, and add |
| 15 |
the code description directives ``np:function``, ``np-c:function``, etc. |
| 16 |
that support the Numpy docstring syntax. |
| 17 |
|
| 18 |
- ``numpydoc.traitsdoc``: For gathering documentation about Traits attributes. |
| 19 |
|
| 20 |
- ``numpydoc.plot_directive``: Adaptation of Matplotlib's ``plot::`` |
| 21 |
directive. Note that this implementation may still undergo severe |
| 22 |
changes or eventually be deprecated. |
| 23 |
|
| 24 |
|
| 25 |
numpydoc |
| 26 |
======== |
| 27 |
|
| 28 |
Numpydoc inserts a hook into Sphinx's autodoc that converts docstrings |
| 29 |
following the Numpy/Scipy format to a form palatable to Sphinx. |
| 30 |
|
| 31 |
Options |
| 32 |
------- |
| 33 |
|
| 34 |
The following options can be set in conf.py: |
| 35 |
|
| 36 |
- numpydoc_use_plots: bool |
| 37 |
|
| 38 |
Whether to produce ``plot::`` directives for Examples sections that |
| 39 |
contain ``import matplotlib``. |
| 40 |
|
| 41 |
- numpydoc_show_class_members: bool |
| 42 |
|
| 43 |
Whether to show all members of a class in the Methods and Attributes |
| 44 |
sections automatically. |
| 45 |
|
| 46 |
- numpydoc_class_members_toctree: bool |
| 47 |
|
| 48 |
Whether to create a Sphinx table of contents for the lists of class |
| 49 |
methods and attributes. If a table of contents is made, Sphinx expects |
| 50 |
each entry to have a separate page. |
| 51 |
|
| 52 |
- numpydoc_edit_link: bool (DEPRECATED -- edit your HTML template instead) |
| 53 |
|
| 54 |
Whether to insert an edit link after docstrings. |