From e8753935a0c15a020efda29a9015c35a0bf872c3 Mon Sep 17 00:00:00 2001 From: Laurie O Date: Tue, 2 Jan 2024 14:31:16 +1000 Subject: [PATCH] Ignore GH file line-range during link-check Allows link in simple repo API spec --- source/conf.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/conf.py b/source/conf.py index 6daeba245f..ac5a51069b 100644 --- a/source/conf.py +++ b/source/conf.py @@ -108,6 +108,10 @@ # https://github.com/pypa/packaging.python.org/pull/1308#issuecomment-1775347690 "https://www.breezy-vcs.org/*", ] +linkcheck_anchors_ignore = [ + "^!", # default + r"L\d+(-L\d+)?", # GitHub file line (range) references +] linkcheck_retries = 5 # -- Options for extlinks ----------------------------------------------------------