Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
4629a60
Pin docs migration dependencies
brijeshb42 Oct 16, 2026
5eca166
Wire docs demo infrastructure
brijeshb42 Oct 16, 2026
084ff9a
Verify migrated demos and performance
brijeshb42 Oct 16, 2026
c3fb2be
Render demo toolbars from first paint
brijeshb42 Oct 16, 2026
5cd4594
Adopt released docs-infra fixes
brijeshb42 Oct 30, 2026
d8b238a
Adopt current core-docs preview
brijeshb42 Nov 5, 2026
7d4f9a1
Verify migrated demo interactions
brijeshb42 Nov 9, 2026
ee863eb
Use core-docs preview and trim tooling
brijeshb42 Nov 9, 2026
3f01282
Adopt demo hydration performance fixes
brijeshb42 Nov 10, 2026
45a65e8
Adopt the updated content frame API
brijeshb42 Nov 11, 2026
ea3c7a6
Use the released docs-infra package
brijeshb42 Nov 11, 2026
2a2e1ed
Wait for chart exports inside React act
brijeshb42 Nov 11, 2026
bca78d9
Migrate all docs demos
brijeshb42 Oct 30, 2026
50d582c
Adopt optimized demo frame preview
brijeshb42 Nov 12, 2026
f6e3b05
Update core docs editing activation
brijeshb42 Nov 13, 2026
6badc33
[docs] Defer source editing startup
brijeshb42 Nov 13, 2026
a2e7ab6
[docs] Adopt released docs-infra fix
brijeshb42 Nov 13, 2026
0e78962
Align docs runtime and defer closed overlays
brijeshb42 Nov 13, 2026
eb54817
Use released docs packages
brijeshb42 Nov 19, 2026
d9714b5
Document how to create docs demos
brijeshb42 Nov 19, 2026
d200515
Remove redundant docs-infra override
brijeshb42 Nov 19, 2026
8440474
Remove obsolete demo preview generation
brijeshb42 Nov 19, 2026
e68d6f5
Use fallback line layout preview
brijeshb42 Nov 20, 2026
64c949a
Use published docs-infra canary
brijeshb42 Nov 20, 2026
e4a714a
Use core-docs source layout fix
brijeshb42 Nov 23, 2026
0ab298c
Load deferred demo metadata as JSON assets
brijeshb42 Nov 23, 2026
9ad32c2
Use released docs packages
brijeshb42 Nov 24, 2026
ac35215
Remove obsolete migration scaffolding
brijeshb42 Nov 24, 2026
574d505
Use docs-infra canary 39
brijeshb42 Nov 24, 2026
1b764ca
Cover keyboard tooltip positioning
brijeshb42 Nov 24, 2026
8a185df
Use core-docs tooltip fix preview
brijeshb42 Nov 24, 2026
0ebca7a
Use released core-docs canary
brijeshb42 Nov 25, 2026
19c3f74
Preserve demo state and fix source controls
brijeshb42 Nov 25, 2026
57d0f29
Cover source colors after editing and switching
brijeshb42 Nov 25, 2026
d6a514b
Use docs-infra canary 40
brijeshb42 Nov 25, 2026
39a07d2
Adopt idle editor preview packages
brijeshb42 Nov 25, 2026
0eadc54
Restore native lockfile formatting
brijeshb42 Nov 25, 2026
db315f7
Refresh core-docs preview pin
brijeshb42 Nov 25, 2026
483281f
Adopt consumer-scheduled editor preparation
brijeshb42 Nov 26, 2026
aa1a19d
Wait for editor readiness in demo test
brijeshb42 Nov 27, 2026
c97ffbe
Refresh rebased docs previews
brijeshb42 Nov 27, 2026
4682bac
[docs] Adopt stable source inputs
brijeshb42 Nov 27, 2026
171e5f5
[docs] Adopt cold editor fixes
brijeshb42 Nov 27, 2026
dffa8c8
Refresh lockfile after rebase
brijeshb42 Dec 4, 2026
bfe6da8
Restore checkMaterialVersion to master
brijeshb42 Dec 4, 2026
fe77b15
Use rebased docs-infra and core-docs previews
brijeshb42 Dec 5, 2026
6e8cfe0
Mount source editors on interaction
brijeshb42 Dec 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
78 changes: 78 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,84 @@ There are, however, a few differences:
- You would need to sign a contributor license agreement (CLA) if the PR changes code located in the following folders: `x-data-grid-pro`, `x-data-grid-premium`, `x-date-pickers-pro`
- Testing see [/test/README.md](test/README.md) for details.

## Adding documentation demos

Demos use [`@mui/internal-docs-infra`](https://mui-internal.netlify.app/docs-infra/).
Author demos in TypeScript; JavaScript and code previews are generated automatically.
Do not add `.js` or `.preview` files.

### 1. Create the demo folder

Create a kebab-case folder under `demos/`, next to the Markdown page:

```text
docs/data/charts/bars/
├── bars.md
└── demos/
└── custom-bars/
├── CustomBars.tsx
├── client.ts
└── index.ts
```

### 2. Write the demo

In `CustomBars.tsx`, mark the code to display with focus comments:

```tsx
import { BarChart } from '@mui/x-charts/BarChart';

export default function CustomBars() {
return (
// @focus-start
<BarChart xAxis={[{ data: ['A', 'B', 'C'] }]} series={[{ data: [4, 3, 5] }]} height={300} />
// @focus-end
);
}
```

Use `{/* @focus-start */}` and `{/* @focus-end */}` when placing markers inside JSX.
ESLint can add missing markers with `--fix`.

### 3. Add the entry points

In `client.ts`:

```ts
'use client';

import { createDemoClient } from '@mui/internal-core-docs/utils/createDemoClient';

export default createDemoClient(import.meta.url);
```

In `index.ts`:

```ts
import { createDemo } from '@mui/internal-core-docs/utils/createDemo';
import CustomBars from './CustomBars';
import ClientProvider from './client';

export default createDemo(import.meta.url, CustomBars, { ClientProvider });
```

### 4. Reference the demo from Markdown

Add this to `bars.md`. The `file://` path is relative to the Markdown file:

```md
{{"component": "file://./demos/custom-bars/index.ts"}}
```

Options such as `defaultCodeOpen`, `bg`, and `height` go in the same JSON object.
See [`DemoOptions`](https://github.com/mui/material-ui/blob/master/packages-internal/core-docs/src/DemoContent/DemoContent.tsx) for supported options.

### 5. Check the demo

Run `pnpm docs:dev` and open <http://localhost:3001/x/react-charts/bars/>.
Check the rendered demo, code viewer, live editor, and sandbox exports.
Run ESLint on the new files and `pnpm valelint` before submitting your PR.

## Experiments

Run `pnpm docs:dev` and open <http://localhost:3001/x/experiments/>.
Expand Down
77 changes: 0 additions & 77 deletions docs/data/charts/accessibility/KeyboardActivation.js

This file was deleted.

161 changes: 0 additions & 161 deletions docs/data/charts/accessibility/KeyboardNavigation.js

This file was deleted.

Loading
Loading