[Pkg-mozext-commits] [adblock-plus] 386/464: Switched to using node.js as runtime for JSDoc Toolkit
David Prévot
taffit at moszumanska.debian.org
Tue Jul 22 20:44:36 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository adblock-plus.
commit ab85fc1f285c6b1d3e7cfd894df41d9aff7ea215
Author: Wladimir Palant <trev at adblockplus.org>
Date: Wed Jul 3 14:38:44 2013 +0200
Switched to using node.js as runtime for JSDoc Toolkit
--HG--
extra : rebase_source : d4372d9be08b457863c7b9db47cb1794710c2aaa
---
build.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/build.py b/build.py
index f8e4b83..6bef565 100644
--- a/build.py
+++ b/build.py
@@ -367,15 +367,15 @@ def generateDocs(baseDir, scriptName, opts, args, type):
if not os.path.exists(toolkit):
subprocess.Popen(['hg', 'clone', 'https://hg.adblockplus.org/jsdoc-toolkit/', toolkit]).communicate()
- command = [sys.executable,
- os.path.join(toolkit, 'jsrun.py'),
+ command = [os.path.join(toolkit, 'jsrun.js'),
'-t=' + os.path.join(toolkit, 'templates', 'jsdoc'),
'-d=' + targetDir,
'-a',
'-p',
'-x=js,jsm',
os.path.join(baseDir, 'modules'),
- os.path.join(baseDir, 'components')]
+ os.path.join(baseDir, 'components'),
+ os.path.join(baseDir, 'lib')]
subprocess.Popen(command).communicate()
@@ -468,8 +468,8 @@ with addCommand(showDescriptions, 'showdesc') as command:
command.supportedTypes = ('gecko')
with addCommand(generateDocs, 'docs') as command:
- command.shortDescription = 'Generate documentation'
- command.description = 'Generate documentation files and write them into the specified directory.'
+ command.shortDescription = 'Generate documentation (requires node.js)'
+ command.description = 'Generate documentation files and write them into the specified directory. This operation requires node.js to be installed.'
command.addOption('JsDoc Toolkit location', short='t', long='toolkit', value='dir')
command.params = '[options] <directory>'
command.supportedTypes = ('gecko')
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git
More information about the Pkg-mozext-commits
mailing list