From: Georg Brandl Date: Wed, 29 Oct 2014 09:57:01 +0000 (+0100) Subject: linkcheck: ignore issue URLs and PEP URLs (the latter until the PEPs are on www.pytho... X-Git-Tag: v2.7.9rc1~84 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cea2725736880f542acaa56bfd11db86582b0ce6;p=thirdparty%2FPython%2Fcpython.git linkcheck: ignore issue URLs and PEP URLs (the latter until the PEPs are on www.python.org again). --- diff --git a/Doc/conf.py b/Doc/conf.py index 8174032d64d3..de9d89022aac 100644 --- a/Doc/conf.py +++ b/Doc/conf.py @@ -171,6 +171,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 # ----------------------