0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-11-30 10:20:52 -05:00

updated doc build task

This commit is contained in:
liabru 2014-03-23 23:07:04 +00:00
parent 7f0e85c478
commit f4dcb4bb1d

View file

@ -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');
}); });