How to use the documentation.formats.html function in documentation

To help you get started, we’ve selected a few documentation 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 sergioramos / apr / scripts / build-docs.js View on Github external
const website = async () => {
  const ast = await build(
    files,
    Object.assign(options, {
      config: tocPath
    })
  );

  const source = await formats.html(ast, {
    name: apr.name
  });

  const _files = streamArray(source);
  const _dest = vfs.dest(path.join(__dirname, '../docs'));

  await onFinish(_files, _dest);
};