Skip to content

Commit ec94b75

Browse files
authored
1 parent 4961742 commit ec94b75

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

noxfile.py

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,20 @@ def docs(session):
217217
"""Build the docs for this library."""
218218

219219
session.install("-e", ".[grpc]")
220-
session.install("sphinx==4.2.0", "alabaster", "recommonmark")
220+
session.install(
221+
# We need to pin to specific versions of the `sphinxcontrib-*` packages
222+
# which still support sphinx 4.x.
223+
# See https://github.com/googleapis/sphinx-docfx-yaml/issues/344
224+
# and https://github.com/googleapis/sphinx-docfx-yaml/issues/345.
225+
"sphinxcontrib-applehelp==1.0.4",
226+
"sphinxcontrib-devhelp==1.0.2",
227+
"sphinxcontrib-htmlhelp==2.0.1",
228+
"sphinxcontrib-qthelp==1.0.3",
229+
"sphinxcontrib-serializinghtml==1.1.5",
230+
"sphinx==4.5.0",
231+
"alabaster",
232+
"recommonmark",
233+
)
221234

222235
shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True)
223236
session.run(
@@ -239,7 +252,20 @@ def docfx(session):
239252
"""Build the docfx yaml files for this library."""
240253

241254
session.install("-e", ".")
242-
session.install("alabaster", "recommonmark", "gcp-sphinx-docfx-yaml")
255+
session.install(
256+
# We need to pin to specific versions of the `sphinxcontrib-*` packages
257+
# which still support sphinx 4.x.
258+
# See https://github.com/googleapis/sphinx-docfx-yaml/issues/344
259+
# and https://github.com/googleapis/sphinx-docfx-yaml/issues/345.
260+
"sphinxcontrib-applehelp==1.0.4",
261+
"sphinxcontrib-devhelp==1.0.2",
262+
"sphinxcontrib-htmlhelp==2.0.1",
263+
"sphinxcontrib-qthelp==1.0.3",
264+
"sphinxcontrib-serializinghtml==1.1.5",
265+
"gcp-sphinx-docfx-yaml",
266+
"alabaster",
267+
"recommonmark",
268+
)
243269

244270
shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True)
245271
session.run(

0 commit comments

Comments
 (0)