]> granicus.if.org Git - python/commitdiff
linkcheck: ignore issue URLs and PEP URLs (the latter until the PEPs are on www.pytho...
authorGeorg Brandl <georg@python.org>
Wed, 29 Oct 2014 09:57:01 +0000 (10:57 +0100)
committerGeorg Brandl <georg@python.org>
Wed, 29 Oct 2014 09:57:01 +0000 (10:57 +0100)
Doc/conf.py

index e6f22a3528a689dd696dab25ceb7a016298eab05..f803de238e7ca98e1258818727b955624c76cab7 100644 (file)
@@ -172,6 +172,16 @@ coverage_ignore_c_items = {
 #    'cfunction': [...]
 }
 
+
+# Options for the link checker
+# ----------------------------
+
+# Ignore certain URLs.
+linkcheck_ignore = [r'https://bugs.python.org/(issue)?\d+',
+                    # Ignore PEPs for now, they all have permanent redirects.
+                    r'http://www.python.org/dev/peps/pep-\d+']
+
+
 # Options for extensions
 # ----------------------