From c8889d302af29016c015b67aeeca4981d0678e2d Mon Sep 17 00:00:00 2001 From: Richard Wall Date: Sun, 22 Aug 2010 12:20:34 +0100 Subject: Remove the existing docs before generating new ones, remove timestamps from documentation templates --- jarmonbuild/commands.py | 3 +++ jarmonbuild/yuidoc_template/main.tmpl | 8 ++++---- 2 files changed, 7 insertions(+), 4 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(( diff --git a/jarmonbuild/yuidoc_template/main.tmpl b/jarmonbuild/yuidoc_template/main.tmpl index 74de127..d21fd0a 100644 --- a/jarmonbuild/yuidoc_template/main.tmpl +++ b/jarmonbuild/yuidoc_template/main.tmpl @@ -6,11 +6,11 @@ API: $modulename #if $classname# $classname #end if# #if $filename# $filename #end if# - - + + - - + + -- cgit v1.2.3