Skip to content

Commit

Permalink
Remove old build directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Lehmann authored and Patrick Lehmann committed Dec 21, 2016
1 parent 01107f9 commit 8421c2e
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
'autoapi.sphinx',
# 'changelog',
# local extensions (patched)
'autoprogram', #'sphinxcontrib.autoprogram',
'autoprogram', #'sphinxcontrib.autoprogram',
# local extensions
'DocumentMember',
'poc'
Expand All @@ -70,11 +70,21 @@
# if (not (tags.has('PoCExternal') or tags.has('PoCInternal'))):
# tags.add('PoCExternal')

from pathlib import Path
from pathlib import Path
from shutil import rmtree as shutil_rmtree

buildDirectory = Path("_build")
print("Removing old build directory '{0!s}'...".format(buildDirectory))
shutil_rmtree(str(buildDirectory))

pyInfrastructureDirectory = Path("PyInfrastructure")
print("Removing created files from '{0!s}'...".format(pyInfrastructureDirectory))
for path in pyInfrastructureDirectory.iterdir():
if (path.name != "index.rst"):
print(" {0!s}".format(path))
path.unlink()
print()


autodoc_member_order = "bysource"

Expand Down

0 comments on commit 8421c2e

Please sign in to comment.