@@ -182,7 +182,19 @@ def docs(session):
182182
183183 session .install ("-e" , ".[tracing]" )
184184 session .install (
185- "sphinx==4.0.1" , "alabaster" , "recommonmark" , "django==2.2"
185+ # We need to pin to specific versions of the `sphinxcontrib-*` packages
186+ # which still support sphinx 4.x.
187+ # See https://github.com/googleapis/sphinx-docfx-yaml/issues/344
188+ # and https://github.com/googleapis/sphinx-docfx-yaml/issues/345.
189+ "sphinxcontrib-applehelp==1.0.4" ,
190+ "sphinxcontrib-devhelp==1.0.2" ,
191+ "sphinxcontrib-htmlhelp==2.0.1" ,
192+ "sphinxcontrib-qthelp==1.0.3" ,
193+ "sphinxcontrib-serializinghtml==1.1.5" ,
194+ "sphinx==4.5.0" ,
195+ "alabaster" ,
196+ "recommonmark" ,
197+ "django==2.2"
186198 )
187199
188200 shutil .rmtree (os .path .join ("docs" , "_build" ), ignore_errors = True )
@@ -207,6 +219,15 @@ def docfx(session):
207219
208220 session .install ("-e" , ".[tracing]" )
209221 session .install (
222+ # We need to pin to specific versions of the `sphinxcontrib-*` packages
223+ # which still support sphinx 4.x.
224+ # See https://github.com/googleapis/sphinx-docfx-yaml/issues/344
225+ # and https://github.com/googleapis/sphinx-docfx-yaml/issues/345.
226+ "sphinxcontrib-applehelp==1.0.4" ,
227+ "sphinxcontrib-devhelp==1.0.2" ,
228+ "sphinxcontrib-htmlhelp==2.0.1" ,
229+ "sphinxcontrib-qthelp==1.0.3" ,
230+ "sphinxcontrib-serializinghtml==1.1.5" ,
210231 "gcp-sphinx-docfx-yaml" ,
211232 "alabaster" ,
212233 "recommonmark" ,
0 commit comments