From 82de56ea2c7d8d47fdd16c89568e852be70cdce6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sat, 23 Jan 2016 19:48:41 +0100 Subject: [PATCH] Render paper.js version number as part of the docs. --- gulp/jsdoc | 2 +- gulp/tasks/docs.js | 6 ++++-- ...sdoc-toolkit.sublime-project => jsdoc.sublime-project} | 8 ++++---- projects/paperjs.sublime-project | 1 + 4 files changed, 10 insertions(+), 7 deletions(-) rename projects/{jsdoc-toolkit.sublime-project => jsdoc.sublime-project} (65%) diff --git a/gulp/jsdoc b/gulp/jsdoc index ac3fe634..373551ba 160000 --- a/gulp/jsdoc +++ b/gulp/jsdoc @@ -1 +1 @@ -Subproject commit ac3fe634b7203a7436641bd51ef92e4cced4ab10 +Subproject commit 373551baf9f3ea3c5b9e3559ea42b20f473a56ff diff --git a/gulp/tasks/docs.js b/gulp/tasks/docs.js index d7c56d08..7d41b7cf 100644 --- a/gulp/tasks/docs.js +++ b/gulp/tasks/docs.js @@ -12,7 +12,8 @@ var gulp = require('gulp'), del = require('del'), - shell = require('gulp-shell'); + shell = require('gulp-shell'), + options = require('../utils/options.js'); var docOptions = { local: 'docs', // Generates the offline docs @@ -22,7 +23,8 @@ var docOptions = { Object.keys(docOptions).forEach(function(name) { gulp.task('docs:' + name, ['clean:docs'], shell.task([ 'java -cp jsrun.jar:lib/* JsRun app/run.js -c=conf/' + name + '.conf ' + - '-D="renderMode:' + docOptions[name] + '"', + '-D="renderMode:' + docOptions[name] + '" ' + + '-D="version:' + options.version + '"' ], { cwd: 'gulp/jsdoc' })); diff --git a/projects/jsdoc-toolkit.sublime-project b/projects/jsdoc.sublime-project similarity index 65% rename from projects/jsdoc-toolkit.sublime-project rename to projects/jsdoc.sublime-project index b9cd30ab..e331a70f 100644 --- a/projects/jsdoc-toolkit.sublime-project +++ b/projects/jsdoc.sublime-project @@ -2,16 +2,16 @@ "folders": [ { - "path": "../build/jsdoc-toolkit/app" + "path": "../gulp/jsdoc/app" }, { - "path": "../build/jsdoc-toolkit/templates" + "path": "../gulp/jsdoc/templates" }, { - "path": "../build/jsdoc-toolkit/conf" + "path": "../gulp/jsdoc/conf" }, { - "path": "../build/jsdoc-toolkit", + "path": "../gulp/jsdoc", "name": "root", "folder_exclude_patterns": ["*"], "file_exclude_patterns": [ "*.jar" ] diff --git a/projects/paperjs.sublime-project b/projects/paperjs.sublime-project index ec04dbbb..4a2f86c5 100644 --- a/projects/paperjs.sublime-project +++ b/projects/paperjs.sublime-project @@ -12,6 +12,7 @@ }, { "path": "../gulp", + "folder_exclude_patterns": ["jsdoc"] }, { "path": "..",