Skip to content

Commit

Permalink
Merge pull request #1767 from ncoghlan/disable-pypi-link-anchor-checks
Browse files Browse the repository at this point in the history
Ignore PyPI anchors when checking links
  • Loading branch information
webknjaz authored Dec 23, 2024
2 parents 13308d5 + 085b29c commit 5f8ec55
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,13 @@
"https://anaconda.org",
]
linkcheck_retries = 5
# Ignore anchors for links to GitHub project pages -- GitHub adds anchors from
# README.md headings through JavaScript, so Sphinx's linkcheck can't find them
# in the HTML.
# Ignore anchors for common targets when we know they likely won't be found
linkcheck_anchors_ignore_for_url = [
# GitHub synthesises anchors in JavaScript, so Sphinx can't find them in the HTML
r"https://github\.com/",
# While PyPI has its botscraping defenses active, Sphinx can't resolve the anchors
# https://github.com/pypa/packaging.python.org/issues/1744
r"https://pypi\.org/",
]

# -- Options for extlinks ----------------------------------------------------------
Expand Down

0 comments on commit 5f8ec55

Please sign in to comment.