Skip to content

Commit 8c712ba

Browse files
committed
update docfx session
1 parent f2dd076 commit 8c712ba

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

noxfile.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,31 @@ def docfx(session):
176176
"recommonmark",
177177
)
178178

179+
shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True)
180+
session.run(
181+
"sphinx-build",
182+
"-T", # show full traceback on exception
183+
"-N", # no colors
184+
"-D",
185+
(
186+
"extensions=sphinx.ext.autodoc,"
187+
"sphinx.ext.autosummary,"
188+
"docfx_yaml.extension,"
189+
"sphinx.ext.intersphinx,"
190+
"sphinx.ext.coverage,"
191+
"sphinx.ext.napoleon,"
192+
"sphinx.ext.todo,"
193+
"sphinx.ext.viewcode,"
194+
"recommonmark"
195+
),
196+
"-b",
197+
"html",
198+
"-d",
199+
os.path.join("docs", "_build", "doctrees", ""),
200+
os.path.join("docs", ""),
201+
os.path.join("docs", "_build", "html", ""),
202+
)
203+
179204

180205
@nox.session(python="pypy")
181206
def pypy(session):

0 commit comments

Comments
 (0)