Skip to content

Conversation

@FFY00
Copy link
Member

@FFY00 FFY00 commented Nov 12, 2025

This PR restores the linkcheck functionality for https://packaging.python.org/en/latest/... links.

It does so by adding a Sphinx plugin that hooks into the linkcheck-process-uri event and replaces the original URLs with the corresponding local path.

We've had a couple issues with schema links, which need to be specified via the full remote URL (eg. #1889 (comment)). We currently need to ignore them in linkcheck as it fails to take into account local changes. With this PR, the ability to catch these issues during lint is restored.


📚 Documentation preview 📚: https://python-packaging-user-guide--1950.org.readthedocs.build/en/1950/

Signed-off-by: Filipe Laíns <lains@riseup.net>
@FFY00 FFY00 requested a review from ncoghlan November 12, 2025 14:23
@FFY00 FFY00 mentioned this pull request Nov 12, 2025
@webknjaz
Copy link
Member

Wow, that's a nice idea. Might be useful as an external project too. Though, it looks like the linkcheck job is failing due to this?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants