Skip to content

Commit 68b8370

Browse files
authored
Merge pull request #1364 from jeanas/incremental-build
Allow Sphinx to do incremental builds
2 parents 43c451f + 3d5a5ef commit 68b8370

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

noxfile.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ def build(session, autobuild=False):
3333
"""
3434
session.install("-r", "requirements.txt")
3535

36-
target_build_dir = "build"
37-
38-
shutil.rmtree(target_build_dir, ignore_errors=True)
39-
4036
if autobuild:
4137
command = "sphinx-autobuild"
4238
extra_args = "--host", "0.0.0.0"
@@ -57,7 +53,7 @@ def build(session, autobuild=False):
5753
"-W", # Treat warnings as errors.
5854
*session.posargs,
5955
"source", # where the rst files are located
60-
target_build_dir, # where to put the html output
56+
"build", # where to put the html output
6157
)
6258

6359

0 commit comments

Comments
 (0)