ITADN

Support for static assets copying in web generator for SSG support

#748Openmoshams272 创建于 2026-04-03
good first issue
M
moshams272commented
### **Description:** As doc-kit moves towards SSG, we need to handle static assets like logos, so when any project use doc-kit, like webpack, can have its images. now, doc-kit don't handle that so the images crash. ### **Solution:** Add `staticDir` option in configration file, so doc-kit can enter that file and copy recursively every folders and static assets. Copying phase will be in file [generate.mjs](https://github.com/nodejs/doc-kit/blob/main/src/generators/web/generate.mjs) after CSS bundle line.
12 条评论