Closed maxrjones closed 3 years ago
Relevant issue: https://github.com/sphinx-doc/sphinx/issues/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.
Tried napoleon_use_rtype = True
, it gives:
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.
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:
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.
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 https://github.com/GenericMappingTools/pygmt/pull/930#discussion_r579526151