-
-
Notifications
You must be signed in to change notification settings - Fork 32k
RFE: Run linkchecker on documentation on the CI #84947
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
Comments
In Fedora, we run the following check when we build Python documentation: # Verify that all of the local links work
#
# (we can't check network links, as we shouldn't be making network connections
# within a build. Also, don't bother checking the .txt source files; some
# contain example URLs, which don't work)
linkchecker \
--ignore-url=^mailto: --ignore-url=^http --ignore-url=^ftp \
--ignore-url=.txt\$ --no-warnings \
Doc/build/html/index.html From time to time, it discovers broken links: It would be really nice if this check run as part of the CI that builds the documentation. |
Side note: linkchecker can be installed via pip, but the released version is not Python 3 compatible. In Fedora, we package it from git. |
Note: I would gladly contribute this check, but I have no idea where should I do that. |
On Thu, May 28, 2020 at 3:13 PM Miro Hrončok <[email protected]> wrote:
I don't know either. I suspect it will have to be with one of the I _think_ it uses three: Beyond that no idea. I fear I am also blind here. Still google is my friend. |
Some high-level questions to consider:
I am not familiar with the current documentation build process, so forgive me if these are already answered somehow. I'm not looking for answers myself, but providing suggestions. |
I think our CI checks already take too long to run and use possibly more than our fair share of global open source resources (provided by GitHub, Travis, MS Azure) especially considering how infrequently you would expect to find a problem and the low severity of missing one immediately. I think a more appropriate choice would be to set up a buildbot to do such a check, perhaps weekly is often enough, not more than daily. Julien, what do you think? |
Something rebuilds the online docs once a day. That same something might be appropriate for running a link checker (including external links) once a week, say. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: