Skip to content

feat: adopt upstream doc-kit prerequisites for webpack integration (#13)#62

Closed
soumyarajbag wants to merge 1 commit intowebpack:mainfrom
soumyarajbag:feat/upstream-prerequisites
Closed

feat: adopt upstream doc-kit prerequisites for webpack integration (#13)#62
soumyarajbag wants to merge 1 commit intowebpack:mainfrom
soumyarajbag:feat/upstream-prerequisites

Conversation

@soumyarajbag
Copy link
Copy Markdown

Summary

Resolves #13 — three of the four upstream nodejs/doc-kit prerequisites for webpack's
production adoption have now been merged and released. This PR updates the dependency and
wires up the newly available capabilities.

  • Support TypeScript types nodejs/doc-kit#666 (TypeScript generics) — merged in @node-core/doc-kit@1.2.0 via PR
    #668. Generic types like {Set}, {Map<string, RegExp>}, {Iterable<Module, any,
    any>} (which appear extensively in the generated webpack API pages) now resolve to
    properly linked Markdown.
  • Custom Theming Components nodejs/doc-kit#665 (Custom theming components) — merged in @node-core/doc-kit@1.2.0 via
    PR #677. Introduces #theme/Logo, #theme/Navigation, #theme/Sidebar, #theme/Footer, and
    #theme/Layout aliases that consuming projects can override via web.imports in their
    config.
  • Preserve Directory Structure nodejs/doc-kit#662 (Preserve directory structure) — merged in @node-core/doc-kit@1.2.0
    via PR #672. Output files now mirror the input glob's directory hierarchy instead of
    being flattened.

nodejs/doc-kit#332 (Generification) remains open as a long-term goal and is not addressed
here.


What kind of change does this PR introduce?

feat — dependency update + new webpack-specific Logo component + configuration of the
custom theming layer.


Did you add tests for your changes?

No. The changes are a dependency bump, a config update, and a UI component. The theming
override can be validated visually by running npm run build-html.


Does this PR introduce a breaking change?

No. The web.imports block is additive and only affects the #theme/Logo alias. All other
theme components continue to use their built-in defaults.


If relevant, what needs to be documented once your changes are merged or what have you
already documented?

The web.imports keys (#theme/Navigation, #theme/Sidebar, #theme/Footer, #theme/Layout)
remain available for future customization in Milestone 2, when the webpack visual design
is finalized. No additional documentation is required at this stage.


Use of AI

Claude (claude-sonnet-4-6 via Claude Code CLI) was used to assist with researching the
upstream PRs, understanding the doc-kit configuration schema, and generating the initial
implementation. All generated code was reviewed, verified against the installed source,
and formatted with Prettier before committing, in accordance with the webpack AI policy https://github.com/webpack/governance/blob/main/AI_POLICY.md).

@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla bot commented Mar 29, 2026

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: soumyarajbag / name: Soumyaraj Bag (2c51cc9)

@soumyarajbag soumyarajbag force-pushed the feat/upstream-prerequisites branch from aa84d34 to 2c51cc9 Compare March 29, 2026 10:23
@avivkeller
Copy link
Copy Markdown
Member

We aren't accepting PRs for milestone 1 at the moment

@avivkeller avivkeller closed this Mar 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upstream Issues

2 participants