Giter VIP home page Giter VIP logo

numpydoc's Introduction

image

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.

numpydoc's People

Contributors

pv avatar charris avatar chebee7i avatar takluyver avatar stefanv avatar tacaswell avatar endolith avatar raghavrv avatar dlax avatar espdev avatar njsmith avatar seberg avatar esc avatar relentlessidiot avatar rgommers avatar certik avatar mdboom avatar larsmans avatar juliantaylor avatar jonwaltman avatar jenshnielsen avatar metakermit avatar

Watchers

Ariel Rokem avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.