Skip to content

Rely on Sphinx' "any" role to make docstrings more legible #7502

Closed

Description

@anntzer

Sphinx >=1.3 has the "any" role (http://www.sphinx-doc.org/en/1.4.8/markup/inline.html#role-any) which allows one to write e.g.

`Axes`

instead of

:class:`Axes`

and will automatically figure out the proper markup role (and warn if there is an ambiguity).

This would make non-rendered docstrings quite more readable.

Activity

  1. QuLogic commented on Nov 22, 2016

    @QuLogic
    Member

    Doc's current requirements are sphinx>1.0, so that will need updating.

  2. added this to the milestone on Nov 24, 2016
  3. tacaswell commented on Nov 24, 2016

    @tacaswell
    Member

    Doesn't that cause there to be a tremendous number of warning again?

    Also 👍 to bumping the minimal version of sphinx.

  4. modified the milestones: , on Sep 24, 2017
  5. modified the milestones: , on Oct 9, 2017
  6. jklymak commented on Dec 11, 2017

    @jklymak
    Member

    This happens now, so I am closing. If I've misunderstood, please re-open....

  7. timhoffm commented on Dec 13, 2017

    @timhoffm
    Member

    Note: we are using the "obj" role, not the "any" role right now. But that is equally good for the above purpose. IMO closing is fine.

  8. modified the milestones: , v2.2.0 on Feb 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions