types.d.ts and produces Markdown and HTML documentation. The output is automatically deployed to GitHub Pages and kept in sync with upstream webpack — no manual intervention required.
webpack-doc-kit tracks the exact webpack commit used for each doc generation run. The
HEAD_COMMIT file always reflects the pinned commit SHA, so docs are reproducible and auditable.How it works
The pipeline runs in four stages:- TypeDoc reads webpack’s TypeScript type definitions from
webpack/types.d.ts - Custom plugins process the output —
plugins/processor.mjshandles namespace merging and type-map generation, andplugins/theme/applies a custom doc-kit theme - @node-core/doc-kit converts the generated Markdown into HTML
- GitHub Actions deploys the result to GitHub Pages on every push to
main
HEAD_COMMIT tracking
TheHEAD_COMMIT file pins the exact webpack/webpack commit SHA used for doc generation. A scheduled GitHub Actions workflow (sync.yml) runs every 24 hours at 04:00 UTC and:
- Fetches the latest commit from the webpack
mainbranch - Compares it against the current value of
HEAD_COMMIT - If a new commit is detected, checks out webpack at that commit, regenerates docs, updates
HEAD_COMMIT, and pushes the changes
The current pinned webpack commit is
214f361891d8f51f41bafb2e760cb3240d6014be.Key features
Automated sync
A daily scheduled workflow checks for new webpack commits and regenerates docs automatically.
TypeDoc-powered
Extracts type information directly from webpack’s
types.d.ts using TypeDoc with the typedoc-plugin-markdown plugin.Custom plugins
plugins/processor.mjs merges namespaces and generates a type map. A custom doc-kit theme controls rendering output.GitHub Pages deployment
The
deploy.yml workflow builds HTML with @node-core/doc-kit and publishes the out/ directory to GitHub Pages on every push to main.CI validation
Pull requests are checked to ensure the
pages/ directory is up to date. CI fails if generated docs don’t match what’s committed.Reproducible builds
All workflows pin webpack to the exact commit in
HEAD_COMMIT, and all GitHub Actions are pinned to specific SHAs.Next steps
- Follow the Quickstart to set up and run the generator locally.
- Read the How It Works section for a deeper look at the plugin pipeline and TypeDoc configuration.