summaryrefslogtreecommitdiff
path: root/jarmonbuild/commands.py
diff options
context:
space:
mode:
authorRichard Wall <richard@aziz>2010-08-22 12:20:34 +0100
committerRichard Wall <richard@aziz>2010-08-22 12:20:34 +0100
commitc8889d302af29016c015b67aeeca4981d0678e2d (patch)
treef212c8625c9b9d07fc0a8cf28a9211543661713e /jarmonbuild/commands.py
parenta6d2d76abf5b5e601fc5512929ef5d7efb217641 (diff)
Remove the existing docs before generating new ones, remove timestamps from documentation templates
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((