Drop-in customizable project page, API documentation, and Github Pages support for your npm module.
This module is the main entry point for docify when used programmatically. It exposes a function which will build the docs for a project, and returns a Promise that resolves to the output directory.
Docify uses Broccoli.js as a build tool to compile the docs. This function runs Broccoli with the options you supply.
Create a Broccoli.js Builder and build the project's documentation. Returns a promise which resolves to the output directory that contains the built docs.
import docify from 'docify';
docify({
src: 'docs',
dest: 'docs-dist'
}).then((outputDir) => {
// outputDir = 'docs-dist'
});
the docs folder to build, defaults to "./docs"
the destination folder to write the docs to
a directory containing a theme to use instead of the default "minimal" theme.
the root folder for the package being documented (defaults to process.cwd()
)
Resolves to the output directory containing the built docs