Skip to main content

Sphinx extension to support docstrings in Numpy format

Project description

https://travis-ci.org/numpy/numpydoc.png?branch=master

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 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. True by default.

  • numpydoc_show_inherited_class_members: bool

    Whether to show all inherited members of a class in the Methods and Attributes sections automatically. If it’s false, inherited members won’t shown. True by default.

  • 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. True by default.

  • numpydoc_edit_link: bool (DEPRECATED – edit your HTML template instead)

    Whether to insert an edit link after docstrings.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

numpydoc-0.6.0.zip (39.3 kB view details)

Uploaded Source

numpydoc-0.6.0.tar.gz (32.5 kB view details)

Uploaded Source

File details

Details for the file numpydoc-0.6.0.zip.

File metadata

  • Download URL: numpydoc-0.6.0.zip
  • Upload date:
  • Size: 39.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for numpydoc-0.6.0.zip
Algorithm Hash digest
SHA256 974584a8293182ae995113ee2dce9f4be939c3f40c6c2daf11f9df33f961b5cb
MD5 1ef7568d9e037eec7726c42821eaa940
BLAKE2b-256 a922e2069cf728e84dc0c7b80fc5021a4f878688e08f093a470ce4a1540cce45

See more details on using hashes here.

File details

Details for the file numpydoc-0.6.0.tar.gz.

File metadata

  • Download URL: numpydoc-0.6.0.tar.gz
  • Upload date:
  • Size: 32.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for numpydoc-0.6.0.tar.gz
Algorithm Hash digest
SHA256 1ec573e91f6d868a9940d90a6599f3e834a2d6c064030fbe078d922ee21dcfa1
MD5 5f1763c44e613850d56ba1b1cf1cb146
BLAKE2b-256 9ab0f84d0d2521686e93c7ee86fdd79142250d1ea965283ef8b31733f8a2d5f7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page