Browse code

set the number of retries when running linkcheck to 5

Retrying > once should increase the specificity of the check a lot.

Joseph Weston authored on 15/11/2019 14:09:34
Showing 1 changed files
... ...
@@ -272,6 +272,10 @@ def setup(app):
272 272
 
273 273
 # IOP times out on check but the link verified and correct.
274 274
 linkcheck_ignore = [r'https://iopscience.iop.org/1367-2630/16/6/063065/article']
275
+# By default linkcheck only tries once, but experience has shown us that this test is
276
+# very non-specific for detecting dead links. Trying a few times should significantly
277
+# lower the probability of false positives.
278
+linkcheck_retries = 5
275 279
 
276 280
 nitpick_ignore = [('py:class', 'Warning'), ('py:class', 'Exception'),
277 281
                   ('py:class', 'object'), ('py:class', 'tuple'),