@@ -123,7 +123,20 @@ def docs(session):
123
123
124
124
session .install ("." , "grpcio >= 1.8.2" , "grpcio-gcp >= 0.2.2" )
125
125
session .install ("-e" , "." )
126
- session .install ("sphinx==4.0.1" , "alabaster" , "recommonmark" )
126
+ session .install (
127
+ # We need to pin to specific versions of the `sphinxcontrib-*` packages
128
+ # which still support sphinx 4.x.
129
+ # See https://github.com/googleapis/sphinx-docfx-yaml/issues/344
130
+ # and https://github.com/googleapis/sphinx-docfx-yaml/issues/345.
131
+ "sphinxcontrib-applehelp==1.0.4" ,
132
+ "sphinxcontrib-devhelp==1.0.2" ,
133
+ "sphinxcontrib-htmlhelp==2.0.1" ,
134
+ "sphinxcontrib-qthelp==1.0.3" ,
135
+ "sphinxcontrib-serializinghtml==1.1.5" ,
136
+ "sphinx==4.5.0" ,
137
+ "alabaster" ,
138
+ "recommonmark" ,
139
+ )
127
140
128
141
shutil .rmtree (os .path .join ("docs" , "_build" ), ignore_errors = True )
129
142
session .run (
@@ -145,7 +158,20 @@ def docfx(session):
145
158
"""Build the docfx yaml files for this library."""
146
159
147
160
session .install ("-e" , "." )
148
- session .install ("gcp-sphinx-docfx-yaml" , "alabaster" , "recommonmark" )
161
+ session .install (
162
+ # We need to pin to specific versions of the `sphinxcontrib-*` packages
163
+ # which still support sphinx 4.x.
164
+ # See https://github.com/googleapis/sphinx-docfx-yaml/issues/344
165
+ # and https://github.com/googleapis/sphinx-docfx-yaml/issues/345.
166
+ "sphinxcontrib-applehelp==1.0.4" ,
167
+ "sphinxcontrib-devhelp==1.0.2" ,
168
+ "sphinxcontrib-htmlhelp==2.0.1" ,
169
+ "sphinxcontrib-qthelp==1.0.3" ,
170
+ "sphinxcontrib-serializinghtml==1.1.5" ,
171
+ "gcp-sphinx-docfx-yaml" ,
172
+ "alabaster" ,
173
+ "recommonmark" ,
174
+ )
149
175
150
176
shutil .rmtree (os .path .join ("docs" , "_build" ), ignore_errors = True )
151
177
session .run (
0 commit comments