lib/docs
lib/docs.js
Functions(2)
async
Extract documentation models from an array of file paths.
All files are attempted; failures are logged to stderr and omitted from results.
Uses Promise.allSettled so a single bad file never aborts the batch.
| Parameter | Type | Optional | Description |
|---|---|---|---|
files | string[] |
Returns:
Promise<object[]> Signature
async extractModules(files: any): any
async
One-shot convenience: collect files, extract docs, build HTML site.
| Parameter | Type | Optional | Description |
|---|---|---|---|
inputPaths | string|string[] | Source file or directory paths | |
options | object | yes | Same options as buildSite() |
Returns:
Promise<Array<{path:string,html:string}>> Signature
async generateSite(inputPaths: any, options: any): any
Variables & Constants(11)
const { collectFiles, DEFAULT_EXTENSIONS, DEFAULT_IGNORE_DIRS }: any
constSignature
const { collectFiles, DEFAULT_EXTENSIONS, DEFAULT_IGNORE_DIRS }: anyconst { buildSite, moduleLabel, moduleHtmlPath }: any
constSignature
const { buildSite, moduleLabel, moduleHtmlPath }: any