-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
do linkchecks for changelog lint #1722
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
Does anyone have a suggestion on how to do this? I took a look at rst-lint we use and it does not have that option. |
LinkChecker maybe? Hopefully it also runs locally over the generated HTML files. If we do this with Travis we probably shouldn't do it on every push though. |
Hmm sounds good. Why do you say we shouldn't do it on every push? So people's PRs are not blocked if some unrelated link is broken?
Sad panda is sad. |
No, because it's not very nice to do dozens (hundreds?) of HTTP request with every push 😉 I guess we could use Travis' cron feature? |
should we make it part of the pre-release process? |
Heh, right. 😝
Good idea. A simple environment on tox that should be part of the release process sounds good, executed locally. |
In case it saves you a few minutes, https://github.com/jenca-cloud/jenca-authentication/blob/master/.travis.yml#L16 is a |
Thanks @adamtheturtle! |
Seems like Sphinx also has a linkcheck builder built-in. |
An easy contribution would be to run the Sphinx |
Anyone working on this ? I would like to work on this. I'm a first time contributor, and may require a bit of help, especially how to test the change etc. (Relevant code snippet and possible solution already provided by @Zac-HD - Thanks.) |
I don't think anyone is working on it.. go ahead :) |
I'm assuming once broken links are reported, someone needs to fix those (There seem to be a lot, right now when I was testing my changes) I'm thinking of the following : diff --git a/tox.ini b/tox.ini
index 7e5b182f6..129dabb96 100644
--- a/tox.ini
+++ b/tox.ini
@@ -66,6 +66,7 @@ changedir = doc/en
deps = -r{toxinidir}/doc/en/requirements.txt
commands =
+ sphinx-build -b linkcheck . _build
sphinx-build -W -b html . _build
[testenv:doctesting] This will be called when building documentation locally, and provides opportunity to fix the broken links (if they choose) Downsides :
Please suggest. |
I think a separate toxenv would be good, which could inject args into the existing one using a tox env (see related hacks there already), e.g.
Then running Not sure about if that should run on CI always - quite unnecessary, especially with non-doc changes. |
Probably not a good idea to run too often, as a Ideally we'd have a new tox env that just does the linkcheck, which can be run before making a release. And add this to the release checklist! |
Understood. I can do what @blueyed suggested.
Do you mean update |
@mandarvaze just call it from |
Following pytest-dev#1722 this will check all links in documentation.
started to working on this during EuroPython2019 sprint. (with the help of @The-Compiler)
|
Is https://docs.pytest.org/en/latest/adopt.html ( |
@steffenschroeder I'd keep it around - it's nice to know it was a thing that happened, and we should probably do that again some day! Which of the links is broken? The two form links I see there seem to work fine. I'd probably just remove the link and maybe strike through the text or so. |
@The-Compiler the |
Following pytest-dev#1722 this will check all links in documentation.
Following pytest-dev#1722 this will check all links in documentation.
@steffenschroeder Odd, that link seems to be okay - it leads to a The form "Request a helper for your open source project, for "adopt pytest month"" is no longer accepting responses.-page, but that's not a 404 or anything, so I wonder why linkcheck complains about it. Either way, seems fine to remove the text. |
Following pytest-dev#1722 this will check all links in documentation.
@The-Compiler although the link works in the browser,
For this particular case, I removed it. |
Following pytest-dev#1722 this will check all links in documentation.
#1721 showed that we don't check those and mistakes happen, #1720 related
The text was updated successfully, but these errors were encountered: