Skip to content

Commit c260fa6

Browse files
committed
Add API doc generation with updated docs
1 parent b6c3743 commit c260fa6

File tree

4 files changed

+640
-13
lines changed

4 files changed

+640
-13
lines changed

Gruntfile.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,20 @@ module.exports = function (grunt) {
7979
sourceMap: true
8080
}
8181
}
82+
},
83+
84+
yuidoc: {
85+
dist: {
86+
version: "<%= pkg.version %>",
87+
name: "cmi5.js",
88+
description: "JavaScript implementation of cmi5 AU runtime",
89+
url: "http://rusticisoftware.github.io/cmi5.js/",
90+
options: {
91+
paths: "src/",
92+
outdir: "build/doc/api/"
93+
},
94+
logo: "https://cloud.githubusercontent.com/assets/1656316/9965238/bc9deb2c-5de9-11e5-9954-63aa03873f88.png"
95+
}
8296
}
8397
}
8498
);
@@ -89,7 +103,8 @@ module.exports = function (grunt) {
89103
"fileExists",
90104
"eslint",
91105
"concat",
92-
"uglify"
106+
"uglify",
107+
"yuidoc"
93108
]
94109
);
95110
grunt.registerTask("default", "build");

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"grunt-contrib-concat": "1.0.1",
2323
"grunt-contrib-uglify": "2.1.0",
2424
"grunt-contrib-watch": "1.0.0",
25+
"grunt-contrib-yuidoc": "1.0.0",
2526
"grunt-eslint": "19.0.0",
2627
"grunt-file-exists": "0.1.4"
2728
},

0 commit comments

Comments
 (0)