Skip to content

Commit

Permalink
doc: Clear gh-pages folder before build
Browse files Browse the repository at this point in the history
* Clear the `gh-pages` folder before build to avoid committing stale
  files.
  • Loading branch information
n-riesco committed Feb 9, 2016
1 parent b38c91e commit 2e2c2de
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions scripts/doc-build.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,16 +132,17 @@ def render_css(outfilename):


def make_folders():
paths = [
if os.path.exists(config["out"]):
shutil.rmtree(config["out"])

for path in [
config["out"],
config["out_doc"],
config["out_jsdoc"],
config["out_js"],
config["out_css"],
]
for path in paths:
if not os.path.exists(path):
os.mkdir(path)
]:
os.mkdir(path)


def copy_images():
Expand Down

0 comments on commit 2e2c2de

Please sign in to comment.