mirror of
https://github.com/liabru/matter-js.git
synced 2024-11-27 09:50:52 -05:00
updated doc build task
This commit is contained in:
parent
7f0e85c478
commit
f4dcb4bb1d
1 changed files with 7 additions and 3 deletions
10
Gruntfile.js
10
Gruntfile.js
|
@ -138,10 +138,14 @@ module.exports = function(grunt) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
grunt.registerTask('doc', function() {
|
grunt.registerTask('doc', function(mode) {
|
||||||
var dev = grunt.option('dev');
|
var isDev = (mode === 'dev'),
|
||||||
if (dev)
|
isRelease = (mode === 'release'),
|
||||||
|
isEdge = (mode === 'edge');
|
||||||
|
|
||||||
|
if (isEdge)
|
||||||
grunt.config.set('docVersion', 'edge version (master)');
|
grunt.config.set('docVersion', 'edge version (master)');
|
||||||
|
|
||||||
grunt.task.run('yuidoc');
|
grunt.task.run('yuidoc');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue