summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2020-07-04 18:02:36 -0400
committerNed Batchelder <ned@nedbatchelder.com>2020-07-04 18:02:36 -0400
commit7f561024b27fcbd91a4de6a4445535ea14938c51 (patch)
treef8d8a327c381915523bc645d1d98e847c94ad04a
parent705c05b7f63b40a2565dc0648ad5739bbc6352a7 (diff)
downloadpython-coveragepy-git-7f561024b27fcbd91a4de6a4445535ea14938c51.tar.gz
Don't check GitHub issue or pull links, since they start to fail after too many
-rw-r--r--doc/conf.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/conf.py b/doc/conf.py
index ab18f3a8..d8c9742b 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -222,6 +222,13 @@ extlinks = {
'github': ('https://github.com/nedbat/coveragepy/issues/%s', 'issue '),
}
+# Regexes for URLs that linkcheck should skip.
+linkcheck_ignore = [
+ # We have lots of links to GitHub, and they start refusing to serve them to linkcheck,
+ # so don't bother checking them.
+ r"https://github.com/nedbat/coveragepy/(issues|pull)/\d+",
+]
+
# When auto-doc'ing a class, only write the class' docstring into the class docs,
# don't automatically include the __init__ docstring.
autoclass_content = "class"