v5.0.5
Local images now resolve from every prose source, plus JSDoc staticFiles support and a generated sitemap.xml. Parity across the JSDoc and TypeDoc bridges.
Images
- Local images referenced from tutorials, the README, and JSDoc / TypeScript doc comments (previously only
opts.docs) are copied into the content-hashed_assets/pipeline and the reference is rewritten — both Markdownand raw<img>. Comment images resolve against each symbol's own source file; SVGs are inlined so light/dark follows the theme toggle. - JSDoc
templates.default.staticFilesis honored: included files are copied verbatim to the output root, and the include directories become fallback search roots, so a bare reference likeresolves and is hashed — no need to rewrite existing comments or tutorials. A file already served from_assets/is not duplicated at the root. - Image syntax shown inside code spans / fenced blocks is left literal — no spurious copy, rewrite, or "could not read image" warning.
Sitemap
- New
siteUrloption: when set, the build emitssitemap.xmlat the output root with one<loc>per non-hidden page. Only the URL's origin is used; the deploy sub-path comes frombasePath, so the two never double-count.
Security
- No runtime security-surface changes. Image and
staticFilesresolution runs at build time over author-declared paths only — no runtime evaluation and no new network access;siteUrlis used solely to compose the absolute<loc>URLs insitemap.xml.
Full changelog: v5.0.4...v5.0.5