mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-28 17:02:24 -05:00
Render paper.js version number as part of the docs.
This commit is contained in:
parent
79a6915a7e
commit
82de56ea2c
4 changed files with 10 additions and 7 deletions
|
@ -1 +1 @@
|
||||||
Subproject commit ac3fe634b7203a7436641bd51ef92e4cced4ab10
|
Subproject commit 373551baf9f3ea3c5b9e3559ea42b20f473a56ff
|
|
@ -12,7 +12,8 @@
|
||||||
|
|
||||||
var gulp = require('gulp'),
|
var gulp = require('gulp'),
|
||||||
del = require('del'),
|
del = require('del'),
|
||||||
shell = require('gulp-shell');
|
shell = require('gulp-shell'),
|
||||||
|
options = require('../utils/options.js');
|
||||||
|
|
||||||
var docOptions = {
|
var docOptions = {
|
||||||
local: 'docs', // Generates the offline docs
|
local: 'docs', // Generates the offline docs
|
||||||
|
@ -22,7 +23,8 @@ var docOptions = {
|
||||||
Object.keys(docOptions).forEach(function(name) {
|
Object.keys(docOptions).forEach(function(name) {
|
||||||
gulp.task('docs:' + name, ['clean:docs'], shell.task([
|
gulp.task('docs:' + name, ['clean:docs'], shell.task([
|
||||||
'java -cp jsrun.jar:lib/* JsRun app/run.js -c=conf/' + name + '.conf ' +
|
'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'
|
cwd: 'gulp/jsdoc'
|
||||||
}));
|
}));
|
||||||
|
|
|
@ -2,16 +2,16 @@
|
||||||
"folders":
|
"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",
|
"name": "root",
|
||||||
"folder_exclude_patterns": ["*"],
|
"folder_exclude_patterns": ["*"],
|
||||||
"file_exclude_patterns": [ "*.jar" ]
|
"file_exclude_patterns": [ "*.jar" ]
|
|
@ -12,6 +12,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "../gulp",
|
"path": "../gulp",
|
||||||
|
"folder_exclude_patterns": ["jsdoc"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "..",
|
"path": "..",
|
||||||
|
|
Loading…
Reference in a new issue