Currently we (once #46375 is merged) depend on setuptools>=70 to allow the docs to build on Python>=3.12, because pkg_resources is now deprecated in favor of importlib.resources (but sphinxcontrib-redoc hasn't updated yet).
This issue is to track the work to find an upgrade path here. IMO there are a few options:
Make an upstream contribution to sphinxcontrib-redoc to avoid importing pkg_resources
Replace sphinxcontrib-redoc with sphinxcontrib-openapi, which has a style that matches the style of our current docs. However, we will need to make an upstream contribution to that project as well because the default HttpdomainOldRenderer doesn't seem to show request parameters, and doesn't seem to handle response types either. Additionally, the newer HttpdomainRenderer doesn't render endpoint summaries with newlines correctly, and doesn't handle response types either.
Remove all dependencies, and typeset everything ourselves
Description
Currently we (once #46375 is merged) depend on
setuptools>=70
to allow the docs to build on Python>=3.12, becausepkg_resources
is now deprecated in favor ofimportlib.resources
(butsphinxcontrib-redoc
hasn't updated yet).This issue is to track the work to find an upgrade path here. IMO there are a few options:
sphinxcontrib-redoc
to avoid importingpkg_resources
sphinxcontrib-redoc
withsphinxcontrib-openapi
, which has a style that matches the style of our current docs. However, we will need to make an upstream contribution to that project as well because the defaultHttpdomainOldRenderer
doesn't seem to show request parameters, and doesn't seem to handle response types either. Additionally, the newerHttpdomainRenderer
doesn't render endpoint summaries with newlines correctly, and doesn't handle response types either.