summaryrefslogtreecommitdiff
path: root/jarmonbuild/commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'jarmonbuild/commands.py')
-rw-r--r--jarmonbuild/commands.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/jarmonbuild/commands.py b/jarmonbuild/commands.py
index 2c43caa..6deac32 100644
--- a/jarmonbuild/commands.py
+++ b/jarmonbuild/commands.py
@@ -72,6 +72,9 @@ class BuildApidocsCommand(object):
zip.extractall(
tmpdir, (m for m in zip.namelist() if m.startswith('yuidoc')))
+ # Remove any existing apidocs so that we can track removed files
+ shutil.rmtree(os.path.join(workingbranch_dir, 'docs', 'apidocs'))
+
# Use the yuidoc script that we just extracted to generate new docs
self.log('Running YUI Doc')
check_call((