0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-12-24 13:29:01 -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() {
var dev = grunt.option('dev');
if (dev)
grunt.registerTask('doc', function(mode) {
var isDev = (mode === 'dev'),
isRelease = (mode === 'release'),
isEdge = (mode === 'edge');
if (isEdge)
grunt.config.set('docVersion', 'edge version (master)');
grunt.task.run('yuidoc');
});