Skip to content

Intersphinx mapping not working in Returns #937

Closed

Description

@maxrjones

Description of the problem

The intersphinx mapping to pandas.DataFrame does not seem to be working in the Returns section of the docstrings. See blockmedian for an example.

Originally posted by @weiji14 in #930 (comment)

Activity

  1. added
    bug
    on Feb 20, 2021
  2. maxrjones commented on Feb 20, 2021

    @maxrjones
    MemberAuthor

    Relevant issue: sphinx-doc/sphinx#8290

    Seems the options here are to either set napoleon_use_rtype = True in doc/conf.py, manually define the links, or wait for a bug fix.

  3. seisman commented on Feb 20, 2021

    @seisman
    Member

    Tried napoleon_use_rtype = True, it gives:

    image

  4. seisman commented on Feb 20, 2021

    @seisman
    Member

    napoleon_use_rtype = True gives inconsistent rendering for returns and parameters. I don't think this is what we want. I think we should manually define the links or just ignore them.

  5. maxrjones commented on Feb 22, 2021

    @maxrjones
    MemberAuthor

    My preference would be to ignore the missing links in the rtypes (seems like an upstream bug to me) and manually define the links in the bullet lists (if present) below the rtypes (which would not be automatically linked regardless of the bug). These are the module docstrings which would need to be updated if we chose this solution:

    • blockmedian.py (L61)
    • grdcut.py (L85)
    • grdfilter.py (L119)
    • grdtrack.py (L66)
    • info.py (L66)
  6. seisman commented on Feb 22, 2021

    @seisman
    Member

    My preference would be to ignore the missing links in the rtypes (seems like an upstream bug to me) and manually define the links in the bullet lists (if present) below the rtypes (which would not be automatically linked regardless of the bug).

    Sounds good.

  7. added this to the 0.3.1 milestone on Feb 22, 2021
  8. added
    documentation
    on Feb 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdocumentation

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions