Skip to content

Commit 49c3968

Browse files
committed
made the changes
1 parent 02bef69 commit 49c3968

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

noxfile.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ def build(session, autobuild=False):
1414
session.env["SPHINXOPTS"] = "-W"
1515

1616
shutil.rmtree("build", ignore_errors=True)
17-
1817
if autobuild:
19-
session.run("sphinx-autobuild","-H0.0.0.0", "-W", "-b", "html", "source", "build")
18+
command = "sphinx-autobuild"
19+
extra_args = "-H", "0.0.0.0"
2020
else:
21-
session.run("sphinx-build", "-W", "-b", "html", "source", "build")
21+
command = "sphinx-build"
22+
extra_args = ()
23+
session.run(command, *extra_args, "-W", "-b", "html", "source", "build")
2224

2325

2426
@nox.session(py="3")

0 commit comments

Comments
 (0)