Warning
This is an internal project, and is not intended for public use. No support or stability guarantees are provided.
Build-time optimized documentation infrastructure for React and Next.js sites. This package powers MUI's documentation with syntax-highlighted code demos, auto-extracted TypeScript API references, and client-side search.
New to the codebase? Start with the Architecture page to understand how the build-time optimization, factory pattern, and data flows work together.
pnpm install @mui/internal-docs-infraThen configure your Next.js app with withDocsInfra:
import { withDocsInfra } from '@mui/internal-docs-infra/withDocsInfra';
export default withDocsInfra()(nextConfig);
CodeHighlighter, CodeProvider, context providersuseCode, useDemo, useTypes, useSearchcreateDemo, createTypesMeta, factory patternsSee the Contributing guide.
This project is licensed under the MIT License.
Warning
This is an internal project, and is not intended for public use. No support or stability guarantees are provided.