Automated TypeScript API documentation generator for webpack. Extracts type definitions from webpack's types.d.ts and produces Markdown and HTML documentation, deployed to GitHub Pages.
- TypeDoc reads webpack's TypeScript type definitions
- Custom plugins process the output (namespace merging, type mapping, themed rendering)
- @node-core/doc-kit converts Markdown to HTML
- GitHub Actions deploys the result to GitHub Pages
The HEAD_COMMIT file pins the exact webpack/webpack commit used for doc generation. A scheduled GitHub Action runs every 24 hours to:
- Fetch the latest webpack
mainbranch HEAD - Update
HEAD_COMMIT - Regenerate documentation
- Push the changes to this repository
This ensures documentation stays in sync with upstream webpack without manual intervention.
├── generate-md.mjs # TypeDoc entry point
├── plugins/
│ ├── processor.mjs # Namespace merging + type-map generation
│ └── theme/ # Custom doc-kit theme
├── HEAD_COMMIT # Pinned webpack commit SHA
├── .github/workflows/
│ ├── ci.yml # Lint + doc generation check
│ ├── deploy.yml # Build HTML + deploy to GitHub Pages
│ └── sync.yml # Daily webpack sync
└── package.json
| Script | Description |
|---|---|
npm run generate-docs |
Generate Markdown from webpack types |
npm run build-html |
Convert Markdown to HTML |
npm run build |
Generate docs + build HTML |
npm run lint |
Run ESLint |
npm run format:check |
Check Prettier formatting |
When making changes to documentation generation (plugins, generate-md.mjs, tsconfig.json), ensure the docs can still be generated successfully. CI will verify this on every pull request.
See the webpack project for license details.