Skip to content

Commit 15f6050

Browse files
committed
Ignore GH file line-range during link-check
Allows link in simple repo API spec
1 parent 735196b commit 15f6050

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@
108108
# https://github.com/pypa/packaging.python.org/pull/1308#issuecomment-1775347690
109109
"https://www.breezy-vcs.org/*",
110110
]
111+
linkcheck_anchors_ignore_for_url = [
112+
# GitHub file line (range) references
113+
r"https://github\.com/[^/]+/\.+/blob/[^/]+/\.+",
114+
]
111115
linkcheck_retries = 5
112116

113117
# -- Options for extlinks ----------------------------------------------------------

0 commit comments

Comments
 (0)