webapi-eca/create_doc.js

51 lines
1 KiB
JavaScript
Raw Normal View History

/*
* # docco Documentation
* Create the documentation to be displayed through the webserver.
*/
// var glob = require("glob"),
// docco = require('docco'),
// opt = ["", "", "--output", "webpages/doc"],
// files = [
// "README.md",
// "LICENSE.md",
// "create_doc.js",
// "coffee/*.coffee",
// "mod_actions/**/*.js",
// "mod_events/**/*.js"
// ];
//
// var semaphore = files.length;
// for(var i = 0; i < files.length; i++) {
// glob(files[i], null, function (er, files) {
// if(!er) {
// opt = opt.concat(files);
// } else {
// console.error(er);
// }
// if(--semaphore === 0) {
// docco.run(opt);
// }
// });
// }
/*
* # groc Documentation
* Create the documentation to be displayed through the webserver.
*/
//
2013-11-14 14:06:10 +00:00
require('groc').CLI(
[
"README.md",
"LICENSE.md",
"coffee/*.coffee",
2013-11-14 14:06:10 +00:00
"mod_actions/**/*.js",
"mod_events/**/*.js",
"-o./webpages/doc"
],
2013-11-14 14:06:10 +00:00
function(err) {
if (err) console.error(err);
else console.log('Done!');
}
);