How to use the docco.run function in docco

To help you get started, we’ve selected a few docco examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github btford / socketron / gen-docs.js View on Github external
if (toHighlight.hasOwnProperty(id)) {
      highlight(toHighlight[id], function (output) {
        readme = readme.replace('//js:' + id, output);
        delete toHighlight[id];
        highlightSnippets();
      });
      return;
    }
  }
  writeIndex();
};

highlightSnippets();

// run docco for libs
require('docco').run([
  '', '',
  '--css',      'site/main.css',
  '--template', 'site/docco.jst',
  'lib/*.js']);

// run docco for unit tests
require('docco').run([
  '', '',
  '--css',      'site/main.css',
  '--template', 'site/docco.jst',
  '--output',   'docs/test/',
  'test/*.js']);

docco

The Quick and Dirty Literate Programming Documentation Generator

MIT
Latest version published 3 years ago

Package Health Score

53 / 100
Full package analysis

Popular docco functions