Skip to content

Commit e875393

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

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 = [
112+
"^!", # default
113+
r"L\d+(-L\d+)?", # GitHub file line (range) references
114+
]
111115
linkcheck_retries = 5
112116

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

0 commit comments

Comments
 (0)