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 all moved headings to rubrics #10913

Merged
merged 1 commit into from
Jun 10, 2022

Conversation

pradyunsg
Copy link
Member

This is a follow up to #10899.


Build System Interface
======================
.. _`2-build-system-interface`:
Copy link
Member Author

Choose a reason for hiding this comment

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

These start-with-a-number references are here to let the anchors generated by Sphinx be the same (#build-system-interface) while allowing various instances of a rubric with the same content have the same anchor tag.

We could do this with :name: as well, but this felt more explicit and more as something we'd want to remove in, like, 1-2 years.

@pradyunsg pradyunsg marked this pull request as ready for review June 10, 2022 10:26
This ensures that they don't show up in the table of contents sidebar,
which is part of the point of moving this content into dedicated pages.
@pradyunsg pradyunsg force-pushed the remove-moved-headings-from-toc branch from dfa4bf2 to 347e724 Compare June 10, 2022 10:29
@pradyunsg pradyunsg added the skip news Does not need a NEWS file entry (eg: trivial changes) label Jun 10, 2022
@pradyunsg
Copy link
Member Author

I'm gonna merge this without reviews, since I reckon this is either (a) non-controversial or (b) something that people don't care strongly about. In either case, if I'm wrong, holler here with an @pradyunsg if you have a problem with this change and I'd be happy to revert. :)

@pradyunsg pradyunsg merged commit dc7abca into pypa:main Jun 10, 2022
@pradyunsg pradyunsg deleted the remove-moved-headings-from-toc branch June 10, 2022 11:22
@pradyunsg
Copy link
Member Author

@henryiii see this PR.

@henryiii
Copy link
Contributor

to let the anchors generated by Sphinx be the same (#build-system-interface)

But they are not. Now I have to add 0- to link to pip:repeatability. That seems to be the only one... Maybe because it was renamed to Ensuring Repeatability (so the rubric changed)? Though I thought I tried pip:ensuring-repeatability too.

@pradyunsg
Copy link
Member Author

pradyunsg commented Jun 16, 2022

The content was moved in a previous PR, and I wanted to remove the moved content’s headings from the sidebar of the page, so I’ve changed it from the headings to rubrics.

The rubrics generates an anchor tag that behaves the same as Sphinx would generate for the headings, so URLs aren’t broken. The intersphinx for these was unintentionally broken, although it would be better to reinstate those to point at the new location for the content instead of anyone using the integer-prefixed names.

I didn’t really think that we cared about strict backwards compatibility on intersphinx references (this content moved months ago so it’s an outdated link anyway), but we can reinstate this one in the new place if needs be. :)

I’ll do that once my work day is over/tomorrow. If someone wants to file a PR before I can, please feel welcome to.

@henryiii
Copy link
Contributor

I don't have a preference, I'm just trying to un-break packaging.python.org. I'm happy to point at whatever is the most stable. Since the page moved once, maybe a proper intersphinx reference would be best, just in case it ever moves again?

@pradyunsg
Copy link
Member Author

CI passed the build in pypa/packaging.python.org#1031, so the concern that @henryiii raised has been resolved. :)

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
skip news Does not need a NEWS file entry (eg: trivial changes)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants