Skip to content

Commit

Permalink
Fix sphinx linkcheck
Browse files Browse the repository at this point in the history
PyPI started using <section id=""> anchor links that are not
understood by linkcheck. Ignore these URLs in the check until
they are supported.
  • Loading branch information
dnicolodi committed Dec 19, 2024
1 parent eb128f7 commit a52bc4c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,12 @@
# Avoid errors from 403/Login Redirects
r"https://(test\.)?pypi\.org/manage/project/twine/collaboration/?",
r"https://pypi\.org/manage/project/twine/collaboration/?",
# PyPI uses <section id=""> anchor links that are not understood by
# linkcheck. Ignore these link targets in the check until they are
# supported. Maybe use linkcheck_anchors_ignore_for_url configuration
# option once Sphinx 7.1 or later is used, see
# https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-linkcheck_anchors_ignore_for_url
r"https://pypi\.org/project/[^/]+/\#",
]

intersphinx_mapping = {
Expand Down

0 comments on commit a52bc4c

Please sign in to comment.