Skip to content

Commit ca6b5b4

Browse files
[docs-infra] Simplify docs demo (#42016)
1 parent afffc2f commit ca6b5b4

File tree

5 files changed

+17
-7
lines changed

5 files changed

+17
-7
lines changed

docs/pages/experiments/docs/DemoInDocs.js

-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import Stack from '@mui/material/Stack';
55
export default function DemoInDocs() {
66
return (
77
<Stack sx={{ width: '100%' }} spacing={2}>
8-
<Alert severity="error">This is an error alert — check it out!</Alert>
9-
<Alert severity="warning">This is a warning alert — check it out!</Alert>
108
<Alert severity="info">This is an info alert — check it out!</Alert>
119
<Alert severity="success">This is a success alert — check it out!</Alert>
1210
</Stack>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
<Alert severity="error">This is an error alert — check it out!</Alert>
2-
<Alert severity="warning">This is a warning alert — check it out!</Alert>
31
<Alert severity="info">This is an info alert — check it out!</Alert>
42
<Alert severity="success">This is a success alert — check it out!</Alert>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import * as React from 'react';
2+
import Alert from '@mui/material/Alert';
3+
import Stack from '@mui/material/Stack';
4+
5+
export default function DemoInDocs() {
6+
return (
7+
<Stack sx={{ width: '100%' }} spacing={2}>
8+
<Alert severity="info">This is an info alert — check it out!</Alert>
9+
<Alert severity="success">This is a success alert — check it out!</Alert>
10+
</Stack>
11+
);
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<Alert severity="info">This is an info alert — check it out!</Alert>
2+
<Alert severity="success">This is a success alert — check it out!</Alert>

docs/pages/experiments/docs/demos.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ So, it renders the "outlined" background variant.
2727

2828
## "hideToolbar": true
2929

30-
{{"demo": "DemoInDocs.js", "hideToolbar": true}}
30+
{{"demo": "DemoInDocsNotEditable.js", "hideToolbar": true}}
3131

3232
## "hideToolbar": true, "bg": true
3333

34-
{{"demo": "DemoInDocs.js", "hideToolbar": true, "bg": true}}
34+
{{"demo": "DemoInDocsNotEditable.js", "hideToolbar": true, "bg": true}}
3535

3636
## "hideToolbar": true, "bg": "inline"
3737

38-
{{"demo": "DemoInDocs.js", "hideToolbar": true, "bg": "inline"}}
38+
{{"demo": "DemoInDocsNotEditable.js", "hideToolbar": true, "bg": "inline"}}
3939

4040
## Multiple Tabs demo
4141

0 commit comments

Comments
 (0)