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.
opt-in `rootDir` (task-arch-04): when provided, `getAllFacts(rootDir)` is
computed and passed through as `facts` so the generated site includes the
Architecture page. Omitted/falsy `rootDir` (every pre-task-arch-04 caller)
leaves `facts` undefined -- `buildSite()` treats that as "no Architecture
page", so this is fully backward-compatible.
| Parameter | Type | Optional | Description |
|---|---|---|---|
inputPaths | string|string[] | Source file or directory paths | |
options | object | yes | Same options as buildSite(), plus an |
Returns:
Promise<Array<{path:string,html:string}>> Signature
async generateSite(inputPaths: any, options: any): any
Variables & Constants(13)
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