Skip to content

Commit

Permalink
💚 Ignore GitHub links with anchors in linkcheck
Browse files Browse the repository at this point in the history
Fixes documentation build. Linkcheck doesn't like GitHub anchors, see pypa/packaging.python.org#1272 and
sphinx-doc/sphinx#9016

(cherry picked from commit b5012e8)
  • Loading branch information
viktorvanwijk authored and sergei-maertens committed Jan 17, 2025
1 parent 96e29f6 commit 502aafa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@
r"https://www\.miniwebtool\.com/django-secret-key-generator/", # seems to block the requests user agent
]

linkcheck_anchors_ignore_for_url = [
r"https://.*github.*",
]

extlinks = {
"backend": ("https://github.com/open-formulieren/open-forms/issues/%s", "#%s"),
"sdk": ("https://github.com/open-formulieren/open-forms-sdk/issues/%s", "#%s"),
Expand Down

0 comments on commit 502aafa

Please sign in to comment.