The API documentation generator: walks a package’s src, extracts every documentable exported declaration via ts-morph, and writes Starlight-compatible MDX pages plus a sidebar JSON. The output tree mirrors the package’s module structure: a type’s namespace is its source path relative to src, which is also its import subpath.
| Function |
Description |
| generateApiDocs |
Generates the API reference pages and the sidebar. Skips the work when neither the sources, the settings nor the generator changed since the last run. |