-
-
Notifications
You must be signed in to change notification settings - Fork 167
Links in docstrings are broken #116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Could be related to #114. |
it's unrelated. The issue is that sections like attributes aren't parsed
directly as ReST. so if you put the target definition in notes etc it
should work. I agree this is a bit of an issue and numpydoc should pass
through lines beginning ..
|
OK, in fact moving the target to a different section does seem to work: class SDSSMuNu(ac.BaseCoordinateFrame):
"""SDSS Great Circle Coordinates
Attributes
----------
stripe
SDSS `Stripe Number`_ .
node
Node of the great circle with respect to the celestial equator.
In SDSS, this is almost always RA = 95.0 degrees.
incl
Inclination of the great circle with respect to the celestial
equator.
phi
Counter-clockwise position angle w.r.t. north for an arc
in the +nu direction.
Parameters
----------
mu : :class:`~astropy.coordinates.Angle`
Angle corresponding to longitude measured along a stripe.
nu : :class:`~astropy.coordinates.Angle`
Angle corresponding to latitude measured perpendicular to a stripe.
Notes
-----
http://www.sdss.org/dr12/algorithms/surveycoords/
.. _`Stripe Number`: http://www.sdss.org/dr14/help/glossary/#stripe
""" This is a good enough workaround for me to keep working, but this could trip up lots of people, and still should be fixed. |
it's not so easy to fix elegantly for all cases...
|
OK, fair enough, but it should be easy to document this as a known issue at least. |
Good point; I think we answer enough |
Btw, you could have also put the link definition within the description of We now have docs local to the repository. Please feel free to submit a PR modifying https://github.com/numpy/numpydoc/blob/master/doc/format.rst |
Uh oh!
There was an error while loading. Please reload this page.
Consider this docstring:
Using numpydoc v0.7, I get the following warning when building documentation:
As far as I can tell the link "Stripe Number" is perfectly valid reStructuredText.
The text was updated successfully, but these errors were encountered: