summaryrefslogtreecommitdiff
path: root/jarmonbuild/commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'jarmonbuild/commands.py')
-rw-r--r--jarmonbuild/commands.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/jarmonbuild/commands.py b/jarmonbuild/commands.py
index 87b9a22..e4c20ca 100644
--- a/jarmonbuild/commands.py
+++ b/jarmonbuild/commands.py
@@ -24,10 +24,12 @@ import pkg_resources
JARMON_PROJECT_TITLE = 'Jarmon'
JARMON_PROJECT_URL = 'http://www.launchpad.net/jarmon'
+JARMON_COPYRIGHT = 'Richard Wall'
-YUIDOC_URL = 'http://yui.zenfs.com/releases/yuidoc/yuidoc_1.0.0b1.zip'
-YUIDOC_MD5 = 'cd5545d2dec8f7afe3d18e793538162c'
-YUIDOC_DEPENDENCIES = ['setuptools', 'pygments', 'cheetah']
+YUIDOC_URL = 'https://github.com/yui/yuidoc/archive/yuidoc-50.zip'
+YUIDOC_DIR = 'yuidoc-yuidoc-50'
+YUIDOC_MD5 = '725fc7cdf349f8dfd20d487841e9d3b9'
+YUIDOC_DEPENDENCIES = ['pygments', 'cheetah']
class BuildError(Exception):
@@ -130,14 +132,14 @@ class BuildApidocsCommand(BuildCommand):
# Remove any existing apidocs so that we can track removed files
shutil.rmtree(os.path.join(build_dir, 'docs', 'apidocs'), True)
- yuidoc_dir = os.path.join(build_dir, 'yuidoc')
+ yuidoc_dir = os.path.join(build_dir, YUIDOC_DIR)
# extract yuidoc folder from the downloaded zip file
self.log.debug(
'Extracting YUI Doc from %s to %s' % (yuizip_path, yuidoc_dir))
zip = ZipFile(yuizip_path)
zip.extractall(
- build_dir, (m for m in zip.namelist() if m.startswith('yuidoc')))
+ build_dir, (m for m in zip.namelist() if m.startswith(YUIDOC_DIR)))
# Use the yuidoc script that we just extracted to generate new docs
self.log.debug('Running YUI Doc')
@@ -155,6 +157,7 @@ class BuildApidocsCommand(BuildCommand):
'--version=%s' % (buildversion,),
'--project=%s' % (JARMON_PROJECT_TITLE,),
'--projecturl=%s' % (JARMON_PROJECT_URL,),
+ '--copyright=%s.' % (JARMON_COPYRIGHT,),
), stdout=PIPE, stderr=PIPE,)
shutil.rmtree(yuidoc_dir)