Skip to content

[code-infra] Ship docs markdown inside @mui/material package#48722

Draft
Janpot wants to merge 2 commits into
mui:masterfrom
Janpot:ship-docs-in-package
Draft

[code-infra] Ship docs markdown inside @mui/material package#48722
Janpot wants to merge 2 commits into
mui:masterfrom
Janpot:ship-docs-in-package

Conversation

@Janpot

@Janpot Janpot commented Jun 24, 2026

Copy link
Copy Markdown
Member

Adds the generated documentation markdown into the published @mui/material tarball under a docs/ folder, so consumers can read it from node_modules/@mui/material/docs/.

Mirrors the approach in mui/base-ui#4761. Built under a MUI_PUBLISH_DOCS flag so it only runs during release:build, leaving normal dev builds untouched, and so we can evaluate it before committing to it.

A few material-ui-specific notes for reviewers:

  • The staging script copies only docs/public/material-ui/**/*.md into @mui/material, so the existing llms.txt (a .txt with absolute website URLs) is not shipped. Instead the LLM docs generator now also emits an index.md with relative links, which gives the shipped docs/ folder a navigable, offline-usable entry point.
  • release:build is also run by the test_bundle_size_monitor CI job, so that job will now generate docs too — consistent with how base-ui's shared release:build behaves.

https://claude.ai/code/session_01BLXRVBESKEsbPinmik3YpD

@code-infra-dashboard

code-infra-dashboard Bot commented Jun 24, 2026

Copy link
Copy Markdown

Deploy preview

https://deploy-preview-48722--material-ui.netlify.app/

Bundle size

Bundle Parsed size Gzip size
@mui/material 0B(0.00%) 0B(0.00%)
@mui/lab 0B(0.00%) 0B(0.00%)
@mui/private-theming 0B(0.00%) 0B(0.00%)
@mui/system 0B(0.00%) 0B(0.00%)
@mui/utils 0B(0.00%) 0B(0.00%)

Details of bundle changes


Check out the code infra dashboard for more information about this PR.

Adds the generated documentation markdown into the published @mui/material
tarball under a docs/ folder, so consumers can read it from
node_modules/@mui/material/docs/.

Built under the MUI_PUBLISH_DOCS flag so we can play with it in evaluations
before committing to it.

Claude-Session: https://claude.ai/code/session_01BLXRVBESKEsbPinmik3YpD
@Janpot Janpot force-pushed the ship-docs-in-package branch from d16660b to 9499357 Compare June 24, 2026 14:16
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.

1 participant