builder/docgen.js
// create CONTENTS.md for Markdown docs
create CONTENTS.md for Markdown docs
create CONTENTS . md for Markdown docs
function categmd(catgs) {
    var categorical = "## Contents\n\n";
    categorical += Object.keys(catgs).sort().map(function(a) {
      var fn = catgs[a];
      return '### ' + a + '\n\n' +
      Object.keys(fn).sort().map(function(b) {
        return '- [' + fn[b].name + '](/doc' + fn[b].link + ')' + ' - ' + fn[b].summary;
      }).join('\n') + '\n';
    }).join('\n');
    fs.writeFileSync(mainpath + 'doc/contents.md',categorical);
  }
function categmd ( catgs ) { var categorical = "## Contents\n\n" ; categorical += Object . keys ( catgs ) . sort ( ) . map ( function ( a ) { var fn = catgs [ a ] ; return '### ' + a + '\n\n' + Object . keys ( fn ) . sort ( ) . map ( function ( b ) { return '- [' + fn [ b ] . name + '](/doc' + fn [ b ] . link + ')' + ' - ' + fn [ b ] . summary ; } ) . join ( '\n' ) + '\n' ; } ) . join ( '\n' ) ; fs . writeFileSync ( mainpath + 'doc/contents.md' , categorical ) ; }
create CONTENTS.md for Markdown docs
create CONTENTS . md for Markdown docs