From 366dae9e1c8b95f107286f7907202ac38df71980 Mon Sep 17 00:00:00 2001 From: s-weigand Date: Sun, 19 Jan 2020 22:28:53 +0100 Subject: [PATCH] Added some link patterns which should be ignored by linkcheck --- docs/conf.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index cd28af13a32..383750c8c12 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -103,6 +103,15 @@ def get_version():

Try using the search box or go to the homepage.

''', } +linkcheck_ignore = [ + r'^https?\://127\.0\.0\.1.*', + r'^https?\://localhost.*', + r'^https?\://yourproject\.readthedocs\.io.*', + r'^https?\://docs\.example\.com.*', + r'^https?\://foo\.readthedocs\.io/projects.*', + r'^https?\://github\.com.+?#L\d+(-L\d+)?', + r'^https://$', +] def setup(app):