-
-
Notifications
You must be signed in to change notification settings - Fork 2.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
Added link checking to tox and release.py #5614
Conversation
e0bff16
to
5ee8e58
Compare
Hi, First of all thanks @steffenschroeder for the work on this! We appreciate it. I've just tried this branch and there are still link check errors. It takes a while, but the worst part is that it doesn't really show a summary of the broken links, forcing me to scroll and hunt for the missing ones on the terminal. Am I missing something? Executing
A lot of those seem to me to come from old CHANGELOG entries or the CHANGELOG itself, which I'm not sure how valuable it is in practice to fix links on the entry for really old releases such as 2.0.0. An idea: would it be possible to only check links in the actual documentation? Those definitely should be up-to-date. |
The verbose output (showing working links) can be suppressed by adding ‘-q’ to the call of the sphinx-build. I had that initially but removed per per previous suggestion. |
FWIW I'd prefer fixing the links everywhere (or removing them if they aren't relevant anymore) |
Indeed: #5614 (comment). Personally I prefer Also we need volunteers to fix the broken links before we can merge this. |
I already fixed a couple of broken links with another PR. |
03f97d3
to
9b440a0
Compare
Removed the verbose output (only broken links are shown) and fixed the remaining broken links. |
adcc602
to
75d7234
Compare
Hi, I fixed again all broken links and updated this PR. For me, I see the following options to continue:
All of the above is fine for me and if there is some follow up, I'm happy to work and that. |
cf3ebd4
to
5477cbe
Compare
Can you rebase it to have green CI at least for now? |
@steffenschroeder thanks again for your patience on this! 👍 I've tested the branch just now and I propose we merge this (after rebasing as suggested by @blueyed) and see how it fits on the release process, as it is not something we can't rethink later. |
5477cbe
to
ceeb7bd
Compare
Thanks for considering this to merge. |
Close-and-reopening to restart CI... |
Thanks again @steffenschroeder! This is a really useful change which will help the many people who read our docs, and I really admire your persistence in seeing it through ❤️ |
Thanks indeed! Just for reference, since I've tried it:
|
Fixes #1722 by checking all links in documentation during the release process.
Should only be merged after all broken links are fixed (#5613)
It's running during release in release.py or can be triggered manually by executing
tox -e docs-checklinks
.False positives can be added to list
linkcheck_ignore
indoc/en/conf.py
.