-
Notifications
You must be signed in to change notification settings - Fork 141
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
Fix links, improve docs CI, and improve external object linking #776
Conversation
Now references to packaging and filelock objects will be linked to their external documentation. Also removed urllib3 because no where does our code or docs reference it.
well now that's done ccf1e24 :) |
Codecov Report
@@ Coverage Diff @@
## master #776 +/- ##
=======================================
Coverage 79.77% 79.77%
=======================================
Files 15 15
Lines 2146 2146
Branches 312 312
=======================================
Hits 1712 1712
Misses 324 324
Partials 110 110 Continue to review full report at Codecov.
|
This commit exists because I didn't want to have to remember to run linkcheck routinely. Call me lazy if you will :P ... Well actually, running linkcheck on CI via tox is a good way to make sure links that go stale are noticed and fixed quickly. I added --keep-going because it's better to get all of the warnings in a single run then error out the build *than* only knowing that there's at least one warning somewhere. Very useful if you are looking at the CI logs as you can't just ask logs to tell what all the warnings were about ;)
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.
Awesome. Thanks @ichard26 !
@@ -14,7 +14,8 @@ extras = swift | |||
[testenv:doc_build] | |||
basepython=python3 | |||
commands = | |||
{envpython} {envbindir}/sphinx-build -a -W -b html docs docs/html | |||
{envpython} {envbindir}/sphinx-build -a -W --keep-going -b html docs docs/html | |||
{envpython} {envbindir}/sphinx-build -a -W --keep-going -b linkcheck docs docs/html |
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.
This is not lazy this is smart.
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 thought it was clear enough I was joking and being ridiculous throughout the commit messages 😅
Fix broken or redirecting links
More intersphinx linking
Now references to packaging and filelock objects will be linked to their
external documentation.
Also removed urllib3 because no where does our code or docs reference it.
Add linkcheck to tox config
This commit exists because I didn't want to have to remember to run
linkcheck routinely. Call me lazy if you will :P ... Well actually,
running linkcheck on CI via tox is a good way to make sure links
that go stale are noticed and fixed quickly.
I added --keep-going because it's better to get all of the warnings
in a single run then error out the build than only knowing that
there's at least one warning somewhere. Very useful if you are
looking at the CI logs as you can't just ask logs to tell what all the
warnings were about ;)