build-doc.js
function generateCodeDocs() {
  config.codeFiles.forEach(function (jsFile) {
    var jf = [jsFile];
    documentation(jf, {}, function (err, result) {
      documentation.formats.md(result, {}, function (err, md) {
        // Write to file
        fs.writeFile(path.resolve(__dirname, config.docFolder + "/" + jsFile + ".md"), md);
      });
    });
  });
}
function generateCodeDocs() {
  config.codeFiles.forEach(function (jsFile) {
    var jf = [jsFile];
    documentation(jf, {}, function (err, result) {
      documentation.formats.md(result, {}, function (err, md) {
        // Write to file
        fs.writeFile(path.resolve(__dirname, config.docFolder + "/" + jsFile + ".md"), md);
      });
    });
  });
}
function generateCodeDocs ( ) { config . codeFiles . forEach ( function ( jsFile ) { var jf = [ jsFile ] ; documentation ( jf , { } , function ( err , result ) { documentation . formats . md ( result , { } , function ( err , md ) { // Write to file fs . writeFile ( path . resolve ( __dirname , config . docFolder + "/" + jsFile + ".md" ) , md ) ; } ) ; } ) ; } ) ; }
Generate documentation for code files. It reads the JSDoc comments and generate markdown files for them. One markdown file is generated for each code file.
Generate documentation for code files . It reads the JSDoc comments and generate markdown files for them . One markdown file is generated for each code file .