[Python-checkins] cpython (2.7): linkcheck: ignore issue URLs and PEP URLs (the latter until the PEPs are on

georg.brandl python-checkins at python.org
Wed Oct 29 11:00:03 CET 2014


https://hg.python.org/cpython/rev/15acbb1b35fb
changeset:   93251:15acbb1b35fb
branch:      2.7
parent:      93247:7cd861d90b54
user:        Georg Brandl <georg at python.org>
date:        Wed Oct 29 10:57:01 2014 +0100
summary:
  linkcheck: ignore issue URLs and PEP URLs (the latter until the PEPs are on www.python.org again).

files:
  Doc/conf.py |  10 ++++++++++
  1 files changed, 10 insertions(+), 0 deletions(-)


diff --git a/Doc/conf.py b/Doc/conf.py
--- a/Doc/conf.py
+++ b/Doc/conf.py
@@ -171,6 +171,16 @@
 #    '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
 # ----------------------
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list