-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Resolve intersphinx to astropy as current build #11690
Changes from all commits
dc46993
81aa1e7
6e2d101
81f2f66
f7d2f81
470d1ba
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1035,7 +1035,7 @@ def separation(self, other): | |
not give the same answer in this case. | ||
|
||
For more on how to use this (and related) functionality, see the | ||
examples in :doc:`/coordinates/matchsep`. | ||
examples in :doc:`astropy:/coordinates/matchsep`. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I haven't been following the various conversation on Sphinx xref and just by looking at this diff, I don't understand why this is needed in the core repo. Why not use the built-in Sphinx There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The link is to a
In this case, for subclassing SkyCoord. Both I hope this PR will enable astropy to provide more links in docstrings and affiliate packages won't have to worry about a thing. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I cannot find any documentation of As for As for referring to page vs section, I don't see the point of the former. Why not have a Sorry if all these had been discussed before. If so, please point me to the old discussions. Thanks for your patience! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually, I do remember discussion quite a while ago that docstrings should use proper http links so that people who see them in an interactive session can actually follow them.... But in that respect the scheme with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. One question: is the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the explanation. It makes sense now. The whole sphinx stuff remains a bit of black magic to me... Not sure that expanding the changelog will be needed; if anything, we'd need some docs for affiliate package maintainers, but not clear how they would find that... So, let's just stick with fixing a possible bug with subclassing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Allowing a project to refer to itself via intersphinx seems generically useful for protecting from docstring inheritance. I wish sphinx did this automatically. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, I think I get it now. I was thinking about Is this PR standalone or it depends on the other PR you opened over at There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This PR is standalone in that it works and does the docs stuff independently. It's definitely part of a larger push to make intersphinx and particularly xref useful for downstream packages. In some respects, this PR is the foundation on which future PRs can be built since all the downstream packages need astropy xref links to be intersphinxed, but without this PR, those links wouldn't work inside of Astropy. Now sphinx-astropy will work equally well for both Astropy and downstream packages. |
||
|
||
Parameters | ||
---------- | ||
|
@@ -1081,7 +1081,7 @@ def separation_3d(self, other): | |
and another. | ||
|
||
For more on how to use this (and related) functionality, see the | ||
examples in :doc:`/coordinates/matchsep`. | ||
examples in :doc:`astropy:/coordinates/matchsep`. | ||
|
||
Parameters | ||
---------- | ||
|
@@ -1259,7 +1259,7 @@ def match_to_catalog_sky(self, catalogcoord, nthneighbor=1): | |
catalog coordinates. | ||
|
||
For more on how to use this (and related) functionality, see the | ||
examples in :doc:`/coordinates/matchsep`. | ||
examples in :doc:`astropy:/coordinates/matchsep`. | ||
|
||
Parameters | ||
---------- | ||
|
@@ -1324,7 +1324,7 @@ def match_to_catalog_3d(self, catalogcoord, nthneighbor=1): | |
``catalogcoord`` object. | ||
|
||
For more on how to use this (and related) functionality, see the | ||
examples in :doc:`/coordinates/matchsep`. | ||
examples in :doc:`astropy:/coordinates/matchsep`. | ||
|
||
Parameters | ||
---------- | ||
|
@@ -1389,7 +1389,7 @@ def search_around_sky(self, searcharoundcoords, seplimit): | |
`~astropy.coordinates.SkyCoord.separation`. | ||
|
||
For more on how to use this (and related) functionality, see the | ||
examples in :doc:`/coordinates/matchsep`. | ||
examples in :doc:`astropy:/coordinates/matchsep`. | ||
|
||
Parameters | ||
---------- | ||
|
@@ -1448,7 +1448,7 @@ def search_around_3d(self, searcharoundcoords, distlimit): | |
`~astropy.coordinates.SkyCoord.separation_3d`. | ||
|
||
For more on how to use this (and related) functionality, see the | ||
examples in :doc:`/coordinates/matchsep`. | ||
examples in :doc:`astropy:/coordinates/matchsep`. | ||
|
||
Parameters | ||
---------- | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These
astropy:astropy
references are unfortunate. I won't ask you to change them, but I wonder why those labels contained "astropy-" in the first place. Seems redundant. We can deal with that in a follow-up, if at all.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. I didn't like those either. And they're now doubly redundant.