Skip to content
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

Merged
merged 3 commits into from
Dec 21, 2020

Conversation

ichard26
Copy link
Member

@ichard26 ichard26 commented Dec 20, 2020

  • 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 ;)

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.
@ichard26
Copy link
Member Author

ichard26 commented Dec 20, 2020

Hm, I should probably add a step to CI that runs linkcheck so I don't have to remember to run this.

well now that's done ccf1e24 :)

@codecov
Copy link

codecov bot commented Dec 20, 2020

Codecov Report

Merging #776 (ccf1e24) into master (6560e88) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6560e88...ccf1e24. Read the comment docs.

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 ;)
@ichard26 ichard26 changed the title Fix links and improve external object linking Fix links, improve docs CI, and improve external object linking Dec 21, 2020
Copy link
Contributor

@cooperlees cooperlees left a 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
Copy link
Contributor

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.

Copy link
Member Author

@ichard26 ichard26 Dec 21, 2020

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 😅

@cooperlees cooperlees merged commit 49bac2e into pypa:master Dec 21, 2020
@ichard26 ichard26 deleted the better_linking branch December 21, 2020 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants