docify

Drop-in customizable project page, API documentation, and Github Pages support for your npm module.

docify Defined in lib/build.js

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.

build (options)

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.

Example

import docify from 'docify';

docify({
  src: 'docs',
  dest: 'docs-dist'
}).then((outputDir) => {
  // outputDir = 'docs-dist'
});

Arguments

Returns

(Promise)

Resolves to the output directory containing the built docs