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