Skip to content

Fix broken documentation links and add a linkcheck env#2134

Merged
bboe merged 1 commit into
mainfrom
fix-broken-doc-links
Jun 10, 2026
Merged

Fix broken documentation links and add a linkcheck env#2134
bboe merged 1 commit into
mainfrom
fix-broken-doc-links

Conversation

@bboe

@bboe bboe commented Jun 10, 2026

Copy link
Copy Markdown
Member

A Sphinx linkcheck run (never done before) surfaced three genuinely dead external links, now fixed:

  • PRAW 7 migration guide (praw8_migration.rst) — the /en/v7.8.1/ URL 404s (the page was dropped in 7.8.x builds); pinned to /en/v7.7.1/, which still serves it.
  • requests 'advanced usage' page (configuration.rst, ×2) — moved from /en/main/ to /en/latest/ (the #proxies and #ssl-cert-verification anchors).

Also adds a linkcheck tox env to catch future link rot. It's intentionally kept out of the default envlist because external links are flaky (e.g. the Reddit Help support site bot-blocks with 403s, and sites go down transiently) — it's a manual/periodic check, not a PR gate. Configured linkcheck to skip:

  • client-side GitHub wiki/file anchors (linkcheck can't see JS-rendered anchors)
  • the Reddit Help / Zendesk support domains (return 403 to automated requests)

After these changes tox -e linkcheck reports zero broken links.

@bboe bboe force-pushed the fix-broken-doc-links branch 3 times, most recently from 66febfb to e58d68a Compare June 10, 2026 05:58
A Sphinx linkcheck surfaced dead links and stale redirects:

- Fix three broken links: the PRAW 7 migration guide (pin to v7.8.2,
  which still serves the page) and the requests 'advanced usage' page
  (moved to /en/stable/).
- Update stale redirects to their final URLs: the archived
  reddit/reddit repo and wikis (now reddit-archive/reddit and
  /r/reddit.com/wiki/), the Reddit Help support site, and the Python
  installation guide. Point bare requests/Async PRAW doc URLs at
  /en/stable/.
- Add a 'linkcheck' tox env (kept out of the default envlist, since
  external links are flaky) and configure linkcheck to skip client-side
  GitHub anchors and the bot-blocking Reddit Help support site.

Auth-walled (prefs/apps), short-link (redd.it), and historical
changelog URLs are intentionally left as-is.
@bboe bboe force-pushed the fix-broken-doc-links branch from e58d68a to f559244 Compare June 10, 2026 06:03
@bboe bboe merged commit a1c8cca into main Jun 10, 2026
13 checks passed
@bboe bboe deleted the fix-broken-doc-links branch June 10, 2026 06:23
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.

1 participant