Auto-generate JS component Dependencies tables - #42725
Merged
Merged
Conversation
mdo
force-pushed
the
mdo/js-dependencies-tables
branch
from
July 28, 2026 05:36
0c4cfea to
3c02814
Compare
Derive each docs "Dependencies" table from the component's real import graph (site/src/libs/js-dependencies.ts) via a new <JsDependencies> shortcode, so the tables stay in sync with the source automatically instead of being hand-maintained. Add the table to every JavaScript- backed component page and migrate the existing tooltip, popover, and menu tables onto the shortcode.
mdo
force-pushed
the
mdo/js-dependencies-tables
branch
from
July 28, 2026 06:05
3c02814 to
bd9059f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
site/src/libs/js-dependencies.ts, which resolves a component's dependency list by walking its realimportgraph fromjs/src/<component>.ts(skipping type-only imports); the docs tables now stay in sync with the source automatically.<JsDependencies component="…" />shortcode that renders theFile/Descriptiontable, matching the existingBsTablemarkup and.table-stackedbehavior.### Dependenciessection to every JavaScript-backed component page (alert, button, carousel, chips, collapse, combobox, datepicker, dialog, drawer, nav-overflow, otp-input, range, scrollspy, password-strength, tab, toasts, toggler).data.ts,config.ts,selector-engine.ts).AGENTS.md; the build throws if a new source file or package lacks a description label.Stacked on #42724 (the tables reference the
.tssources introduced there); retarget tov6-devonce that merges.