@@ -351,7 +351,7 @@ def cover(session):
351351 session .run ("coverage" , "erase" )
352352
353353
354- @nox .session (python = DEFAULT_PYTHON_VERSION )
354+ @nox .session (python = "3.10" )
355355def docs (session ):
356356 """Build the docs for this library."""
357357
@@ -361,12 +361,12 @@ def docs(session):
361361 # which still support sphinx 4.x.
362362 # See https://github.com/googleapis/sphinx-docfx-yaml/issues/344
363363 # and https://github.com/googleapis/sphinx-docfx-yaml/issues/345.
364- # "sphinxcontrib-applehelp==1.0.4",
365- # "sphinxcontrib-devhelp==1.0.2",
366- # "sphinxcontrib-htmlhelp==2.0.1",
367- # "sphinxcontrib-qthelp==1.0.3",
368- # "sphinxcontrib-serializinghtml==1.1.5",
369- "sphinx" ,
364+ "sphinxcontrib-applehelp==1.0.4" ,
365+ "sphinxcontrib-devhelp==1.0.2" ,
366+ "sphinxcontrib-htmlhelp==2.0.1" ,
367+ "sphinxcontrib-qthelp==1.0.3" ,
368+ "sphinxcontrib-serializinghtml==1.1.5" ,
369+ "sphinx==4.5.0 " ,
370370 "alabaster" ,
371371 "recommonmark" ,
372372 )
@@ -386,13 +386,12 @@ def docs(session):
386386 )
387387
388388
389- @nox .session (python = DEFAULT_PYTHON_VERSION )
389+ @nox .session (python = "3.10" )
390390def docfx (session ):
391391 """Build the docfx yaml files for this library."""
392392
393393 session .install ("-e" , "." )
394- session .install (
395- # We need to pin to specific versions of the `sphinxcontrib-*` packages
394+ session .install ( # We need to pin to specific versions of the `sphinxcontrib-*` packages
396395 # which still support sphinx 4.x.
397396 # See https://github.com/googleapis/sphinx-docfx-yaml/issues/344
398397 # and https://github.com/googleapis/sphinx-docfx-yaml/issues/345.
0 commit comments