Home

Awesome

builddocs

This is a utility that transforms code documented with getdocs-style doc comments into HTML.

It exports the following values:

build: (config: Object, items: ?Object) → string

Build the documentation for a given set of files. The configuration object may have the following fields:

The second parameter, items, can be used if the JSON data for the module has already been read. By default, build will read it using getdocs-ts.

read: (config: Object) → Object

Read types and comments from a given set of files. config has the same shape as the argument to build (though only files and order will be read by this function).

The function returns the data returned by getdocs-ts, an object containing metadata for each of the items documented in the source files.

browserImports: Object<string>

An object mapping the types available in the browser (such as Document and Blob) to their MDN URLs. Useable with the imports or qualifiedImports options.

License

This software is released under an MIT open-source license.