Skip to content

Move from numpydoc to sphinxcontrib-napoleon #5731

Closed

Description

@mdboom

napoleon is a more general replacement for numpydoc docstring support and ships with Sphinx since 1.3.

There seem to be subtle differences, however, and so it will take some manual updating to our docstrings to get this to work.

Activity

  1. added
    Difficulty: Easyhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issues
    on Dec 23, 2015
  2. added this to the milestone on Dec 23, 2015
  3. QuLogic commented on Dec 24, 2015

    @QuLogic
    Member

    Google or NumPy style? There are some inconsistencies in at least axes/_axes.py that are causing it to choke.

  4. tacaswell commented on Dec 24, 2015

    @tacaswell
    Member

    We should definitely stick with numpydoc style (and put in the effort to pull all of our docstrings up to standards).

  5. self-assigned this
    on Dec 24, 2015
  6. mdboom commented on Dec 29, 2015

    @mdboom
    MemberAuthor

    Just a ditto for Numpydoc style -- that's the more prevalent one in the "scipy ecosystem". Though my sense of napoleon is that it's a bit stricter than numpydoc and will probably find some problems in our docstrings.

  7. modified the milestones: , on Jan 25, 2016
  8. modified the milestones: , on Oct 3, 2017
  9. dstansby commented on Feb 14, 2018

    @dstansby
    Member

    I think we're pretty much using numpydoc everywhere now, so I'll close this. Feel free to re-open if I'm wrong.

  10. QuLogic commented on Feb 15, 2018

    @QuLogic
    Member

    This is about using the Sphinx-provided napoleon extension instead of the external numpydoc one; I don't know if we still want to do that.

  11. removed this from the future releases milestone on Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Difficulty: Easyhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesDocumentation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions