From 7e19515d7b6a85de80e58b199d28e808db8e8df8 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Wed, 11 Jun 2025 10:44:46 -0500 Subject: [PATCH] PYTHON-5393 Make link checking more robust (#2374) --- doc/changelog.rst | 3 +-- doc/conf.py | 5 ++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/changelog.rst b/doc/changelog.rst index c44cfb41a..d729f9afe 100644 --- a/doc/changelog.rst +++ b/doc/changelog.rst @@ -1700,8 +1700,7 @@ Changes in Version 3.8.0 (2019/04/22) ------------------------------------- .. warning:: PyMongo no longer supports Python 2.6. RHEL 6 users should install - Python 2.7 or newer from `Red Hat Software Collections - `_. + Python 2.7 or newer from Red Hat Software Collections. CentOS 6 users should install Python 2.7 or newer from `SCL `_ diff --git a/doc/conf.py b/doc/conf.py index 387b93934..a9711d259 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -82,7 +82,7 @@ pygments_style = "sphinx" # Options for link checking # The anchors on the rendered markdown page are created after the fact, # so those link results in a 404. -# wiki.centos.org has been flakey. +# wiki.centos.org has been flaky. # sourceforge.net is giving a 403 error, but is still accessible from the browser. linkcheck_ignore = [ "https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-monitoring.md#requesting-an-immediate-check", @@ -91,6 +91,9 @@ linkcheck_ignore = [ r"https://sourceforge.net/", ] +# Allow for flaky links. +linkcheck_retries = 3 + # -- Options for extensions ---------------------------------------------------- autoclass_content = "init"