diff options
author | Richard Wall <richard@aziz> | 2010-08-22 12:20:34 +0100 |
---|---|---|
committer | Richard Wall <richard@aziz> | 2010-08-22 12:20:34 +0100 |
commit | c8889d302af29016c015b67aeeca4981d0678e2d (patch) | |
tree | f212c8625c9b9d07fc0a8cf28a9211543661713e | |
parent | a6d2d76abf5b5e601fc5512929ef5d7efb217641 (diff) |
Remove the existing docs before generating new ones, remove timestamps from documentation templates
-rw-r--r-- | jarmonbuild/commands.py | 3 | ||||
-rw-r--r-- | 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 @@ <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>API: $modulename #if $classname# $classname #end if# #if $filename# $filename #end if#</title> - <link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css?stamp=$timestamp" /> - <link rel="stylesheet" type="text/css" href="assets/api.css?stamp=$timestamp" /> + <link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css" /> + <link rel="stylesheet" type="text/css" href="assets/api.css" /> - <script type="text/javascript" src="assets/api-js?stamp=$timestamp"></script> - <script type="text/javascript" src="assets/ac-js?stamp=$timestamp"></script> + <script type="text/javascript" src="assets/api-js"></script> + <script type="text/javascript" src="assets/ac-js"></script> </head> <body id="yahoo-com"> |