Skip to content
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

change RST links to get ride of redundant “astropy” in links #11769

Closed
wants to merge 1 commit into from

Conversation

nstarman
Copy link
Member

@nstarman nstarman commented May 21, 2021

Signed-off-by: Nathaniel Starkman (@nstarman) nstarkman@protonmail.com

I changed the links and then modified line breaks according to the line length.

tags: no-changelog-entry-needed ?
request review: @embray

Fixes #11690 (comment)

Signed-off-by: Nathaniel Starkman (@nstarman) <nstarkman@protonmail.com>
mhvk
mhvk previously approved these changes May 21, 2021
Copy link
Contributor

@mhvk mhvk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, so approving, though it would be best for @embray to have a quick look too.

Also, the readthedocs build has been problematic yet for something like this we want to be sure it passed. Did you try locally?

@ayshih
Copy link
Contributor

ayshih commented May 22, 2021

Oof, I get why this is being done, but can there be a deprecation period where the old anchors still exist for a while? SunPy docs has links to a couple of places in Astropy docs, and I think it'd make our lives a little easier when dealing with this change.

Actually, looking through our docs, we specifically link to:

  • astropy-coordinates
  • astropy-coordinates-representations
  • astropy-coordinates-transforming

However, while each of the above are also used as link targets within Astropy docs (see below), none of these have been "fixed" by this PR. Is that an oversight? Or do I not understand why only certain links/anchors were changed?

Examples:
https://github.com/astropy/astropy/blame/91bb666ca4d3a89423075a91a528ff85477bbe2e/docs/io/asdf-schemas.rst#L18
https://github.com/astropy/astropy/blame/91bb666ca4d3a89423075a91a528ff85477bbe2e/docs/coordinates/frames.rst#L158
https://github.com/astropy/astropy/blame/91bb666ca4d3a89423075a91a528ff85477bbe2e/docs/coordinates/skycoord.rst#L615

@ayshih
Copy link
Contributor

ayshih commented May 22, 2021

Oh, I think I get it now. However, if you're going to do this, you really should change all potential link targets to maintain consistency, and not change solely the ones that are currently being used by docstrings/examples.

@mhvk mhvk dismissed their stale review May 22, 2021 01:45

Other people are using these links

@mhvk
Copy link
Contributor

mhvk commented May 22, 2021

Oops, that is something we should have thought about, that our docs may be linked to. Maybe this is not quite worth the hassle?

@nstarman
Copy link
Member Author

nstarman commented May 22, 2021

That could well be the case. I think I'll close this PR. It's purely aesthetic and not worth making people change their docs.

@nstarman nstarman closed this May 22, 2021
@nstarman nstarman deleted the docs_doubly_redundant branch May 22, 2021 04:11
@pllim
Copy link
Member

pllim commented May 22, 2021

Thanks for trying! At least now we have a record that we tried for future reference. 😸

@embray
Copy link
Member

embray commented May 26, 2021

That's what I meant by "if at all" because I worried that changing this could break existing intersphinx links in other docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants