Skip to content

Commit 5945603

Browse files
committed
🔧 Update linkcheck configuration
1 parent cff6525 commit 5945603

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/conf.py

+6
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,8 @@ def setup(app: Sphinx) -> Dict[str, Any]:
358358
}
359359

360360

361+
# -- linkcheck options ---------------------------------------------------------
362+
361363
linkcheck_anchors_ignore = [
362364
# match any anchor that starts with a '/' since this is an invalid HTML anchor
363365
r"\/.*",
@@ -399,3 +401,7 @@ def setup(app: Sphinx) -> Dict[str, Any]:
399401
r"http://www.yahoo.com": "https://www.yahoo.com/",
400402
r"https://feature-engine.readthedocs.io/": "https://feature-engine.trainindata.com/en/latest/",
401403
}
404+
405+
# we have had issues with linkcheck timing and retries on www.gnu.org
406+
linkcheck_retries = 3
407+
linkcheck_timeout = 50

0 commit comments

Comments
 (0)