Skip to content

Commit 67df28c

Browse files
committed
ci: fix docs build
1 parent cd01dd7 commit 67df28c

File tree

1 file changed

+1
-34
lines changed

1 file changed

+1
-34
lines changed

noxfile.py

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def blacken(session):
206206
def docs(session):
207207
"""Build the docs."""
208208

209-
session.install("ipython", "recommonmark", "sphinx", "sphinx_rtd_theme")
209+
session.install("ipython", "recommonmark", "sphinx<3.0.0", "sphinx_rtd_theme")
210210
session.install("google-cloud-storage")
211211
session.install("-e", ".[all]")
212212

@@ -223,36 +223,3 @@ def docs(session):
223223
os.path.join("docs", ""),
224224
os.path.join("docs", "_build", "html", ""),
225225
)
226-
227-
228-
@nox.session(python="3.8")
229-
def docfx(session):
230-
"""Build the docfx yaml files for this library."""
231-
232-
session.install("-e", ".")
233-
session.install("sphinx", "alabaster", "recommonmark", "sphinx-docfx-yaml")
234-
235-
shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True)
236-
session.run(
237-
"sphinx-build",
238-
"-T", # show full traceback on exception
239-
"-N", # no colors
240-
"-D",
241-
(
242-
"extensions=sphinx.ext.autodoc,"
243-
"sphinx.ext.autosummary,"
244-
"docfx_yaml.extension,"
245-
"sphinx.ext.intersphinx,"
246-
"sphinx.ext.coverage,"
247-
"sphinx.ext.napoleon,"
248-
"sphinx.ext.todo,"
249-
"sphinx.ext.viewcode,"
250-
"recommonmark"
251-
),
252-
"-b",
253-
"html",
254-
"-d",
255-
os.path.join("docs", "_build", "doctrees", ""),
256-
os.path.join("docs", ""),
257-
os.path.join("docs", "_build", "html", ""),
258-
)

0 commit comments

Comments
 (0)