How to use doc-tree - 1 common examples

To help you get started, we’ve selected a few doc-tree 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 fortunejs / fortune / website / build.js View on Github external
const outputDoc = doc => {
  const buffer = fs.readFileSync(path.join(apiPath, doc))
  const output = DocTree.parse(buffer).output({ render })
  return output
}

doc-tree

Documentation generating tool for JavaScript that matches comments to AST nodes.

GPL-3.0
Latest version published 3 years ago

Package Health Score

45 / 100
Full package analysis

Popular doc-tree functions