@@ -350,7 +350,16 @@ def docs(session):
350350
351351 session.install("-e", ".")
352352 session.install(
353- "sphinx==4.0.1",
353+ # We need to pin to specific versions of the `sphinxcontrib-*` packages
354+ # which still support sphinx 4.x.
355+ # See https://github.com/googleapis/sphinx-docfx-yaml/issues/344
356+ # and https://github.com/googleapis/sphinx-docfx-yaml/issues/345.
357+ "sphinxcontrib-applehelp==1.0.4",
358+ "sphinxcontrib-devhelp==1.0.2",
359+ "sphinxcontrib-htmlhelp==2.0.1",
360+ "sphinxcontrib-qthelp==1.0.3",
361+ "sphinxcontrib-serializinghtml==1.1.5",
362+ "sphinx==4.5.0",
354363 "alabaster",
355364 "recommonmark",
356365 )
@@ -376,6 +385,15 @@ def docfx(session):
376385
377386 session.install("-e", ".")
378387 session.install(
388+ # We need to pin to specific versions of the `sphinxcontrib-*` packages
389+ # which still support sphinx 4.x.
390+ # See https://github.com/googleapis/sphinx-docfx-yaml/issues/344
391+ # and https://github.com/googleapis/sphinx-docfx-yaml/issues/345.
392+ "sphinxcontrib-applehelp==1.0.4",
393+ "sphinxcontrib-devhelp==1.0.2",
394+ "sphinxcontrib-htmlhelp==2.0.1",
395+ "sphinxcontrib-qthelp==1.0.3",
396+ "sphinxcontrib-serializinghtml==1.1.5",
379397 "gcp-sphinx-docfx-yaml",
380398 "alabaster",
381399 "recommonmark",
0 commit comments