-
-
Notifications
You must be signed in to change notification settings - Fork 26k
MNT Configure sphinx linkcheck to be more useful #23577
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
Conversation
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.
Thank you for working on this.
When running this locally, there are quite a few errors for redirects. Moving forward, should we update those links with the URL it ended up redirecting to?
The alternative would be to add a bunch more links into linkcheck_allowed_redirects
.
I think that by defining Overall I think broken links should be fixed first. I find redirect links tolerable and I would avoid writing complex An example of not worth fixing redirects:
Examples of maybe worth fixing redirects:
|
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.
I tried the PR locally and it runs as expected. +1 for merging this an open follow-up PRs to deal with the contextual redirects we want to ignore and fix the broken links or update the permanent redirects in our doc.
r"https://github.com/conda-forge/miniforge#miniforge", | ||
r"https://stackoverflow.com/questions/5836335/" | ||
"consistently-create-same-random-numpy-array/5837352#comment6712034_5837352", | ||
] |
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.
We might want to do a separate PR to remove testimonials of organizations that no longer exist.
I merged without waiting for @thomasjpfan +1 because this PR itself is a net improvement that does not directly impact the scikit-learn users and we can better address suggestions for improvement in follow-up PR. |
You are correct, I see warnings and not errors. |
Right now, we rarely run
make linkcheck
because there is too much noise in the output and it takes a while.Here are the list of changes that this PR introduces:
target
). There may be a better way but I have not found it ...