@@ -375,7 +375,16 @@ def docs(session):
375375
376376 session .install ("-e" , "." )
377377 session .install (
378- "sphinx==4.0.1" ,
378+ # We need to pin to specific versions of the `sphinxcontrib-*` packages
379+ # which still support sphinx 4.x.
380+ # See https://github.com/googleapis/sphinx-docfx-yaml/issues/344
381+ # and https://github.com/googleapis/sphinx-docfx-yaml/issues/345.
382+ "sphinxcontrib-applehelp==1.0.4" ,
383+ "sphinxcontrib-devhelp==1.0.2" ,
384+ "sphinxcontrib-htmlhelp==2.0.1" ,
385+ "sphinxcontrib-qthelp==1.0.3" ,
386+ "sphinxcontrib-serializinghtml==1.1.5" ,
387+ "sphinx==4.5.0" ,
379388 "alabaster" ,
380389 "recommonmark" ,
381390 )
@@ -401,6 +410,15 @@ def docfx(session):
401410
402411 session .install ("-e" , "." )
403412 session .install (
413+ # We need to pin to specific versions of the `sphinxcontrib-*` packages
414+ # which still support sphinx 4.x.
415+ # See https://github.com/googleapis/sphinx-docfx-yaml/issues/344
416+ # and https://github.com/googleapis/sphinx-docfx-yaml/issues/345.
417+ "sphinxcontrib-applehelp==1.0.4" ,
418+ "sphinxcontrib-devhelp==1.0.2" ,
419+ "sphinxcontrib-htmlhelp==2.0.1" ,
420+ "sphinxcontrib-qthelp==1.0.3" ,
421+ "sphinxcontrib-serializinghtml==1.1.5" ,
404422 "gcp-sphinx-docfx-yaml" ,
405423 "alabaster" ,
406424 "recommonmark" ,
0 commit comments