summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jarmonbuild/commands.py3
-rw-r--r--jarmonbuild/yuidoc_template/main.tmpl8
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">