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

georg.brandl python-checkins at python.org
Wed Oct 29 10:57:59 CET 2014


https://hg.python.org/cpython/rev/1137f2579422
changeset:   93248:1137f2579422
branch:      3.4
parent:      93243:2e45b6079a42
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
@@ -172,6 +172,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