From b5012e869b992e4904a27e1a41b7ffc2478c3049 Mon Sep 17 00:00:00 2001 From: Viktor van Wijk Date: Fri, 17 Jan 2025 12:38:00 +0100 Subject: [PATCH] :green_heart: Ignore GitHub links with anchors in linkcheck Fixes documentation build. Linkcheck doesn't like GitHub anchors, see https://github.com/pypa/packaging.python.org/issues/1272 and https://github.com/sphinx-doc/sphinx/issues/9016 --- docs/conf.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 401d56c6ef..7d0bc69f39 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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"),