-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor - P4
-
Affects Version/s: None
-
Component/s: None
-
None
-
Not Needed
-
None
-
Fully Compatible
-
C Drivers
-
Not Needed
-
-
None
-
None
-
None
-
None
-
None
-
None
Summary
This is a minor build-time issue found by downstream packagers. When building docs with dirhtml, API changes in Sphinx 8.2 (October, 2024) cause the docs build to fail.
Environment
This does not occur if using a Poetry-installed version of Sphinx, because we have it pinned to 7.4. Installing Sphinx 8.2 or newer is required to reproduce. The issue only occurs in the dirhtml builder. The issue does not reproduce in EVG because it defaults to using the plain html builder.
How to Reproduce
Install Sphinx 8.2 or newer, and run the docs build with -b dirhtml. The build will fail in mongoc_common.py:generate_html_redirs
Additional Background
Downstream bug report: https://bugs.launchpad.net/ubuntu/+source/mongo-c-driver/+bug/2113467
Breaking Sphinx commit: https://github.com/sphinx-doc/sphinx/commit/285908aa073e5320d5f5a8b4648a2265c76a3f32
External PR: https://github.com/mongodb/mongo-c-driver/pull/2033
- is related to
-
CDRIVER-6031 Docs build uses deprecated Sphinx APIs, will likely fail in Sphinx 9.x
-
- Backlog
-