Skip to content

Commit 1b05b0b

Browse files
[docs] Lint markdown in the CI (#30395)
1 parent 58464a8 commit 1b05b0b

File tree

37 files changed

+994
-831
lines changed

37 files changed

+994
-831
lines changed

.circleci/config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ jobs:
202202
- run:
203203
name: Lint JSON
204204
command: yarn jsonlint
205+
- run:
206+
name: Lint Markdown
207+
command: yarn markdownlint
205208
test_static:
206209
<<: *defaults
207210
steps:

.markdownlint.jsonc

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
// MD013/line-length. Already handled by Prettier.
3+
"MD013": false,
4+
// MD033/no-inline-html. We use it from time to time, it's fine.
5+
"MD033": false,
6+
// MD034/no-bare-urls. Not a concern for us, our Markdown interpreter supports it.
7+
"MD034": false,
8+
// MD014/commands-show-output. It's OK.
9+
"MD014": false,
10+
"MD025": {
11+
// Heading level
12+
"level": 1,
13+
// RegExp for matching title in front matter
14+
"front_matter_title": ""
15+
},
16+
// MD024/no-duplicate-heading/no-duplicate-header
17+
"MD024": {
18+
"siblings_only": true
19+
},
20+
// MD036/no-emphasis-as-heading/no-emphasis-as-header. It's OK.
21+
"MD036": false,
22+
// MD029/ol-prefix. Buggy
23+
"MD029": false,
24+
// MD004/ul-style. Buggy
25+
"MD004": false
26+
}

.markdownlintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
*-zh.md
3+
*-pt.md

CHANGELOG.md

Lines changed: 36 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### [Versions](https://mui.com/versions/)
1+
# [Versions](https://mui.com/versions/)
22

33
## 5.2.7
44

@@ -1225,7 +1225,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
12251225

12261226
replace `@material-ui/*` prefix with `@mui/*`:
12271227

1228-
```
1228+
```sh
12291229
@material-ui/system -> @mui/system
12301230
@material-ui/styles -> @mui/styles
12311231
@material-ui/lab -> @mui/lab
@@ -1238,7 +1238,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
12381238

12391239
except these 3 packages that are renamed.
12401240

1241-
```
1241+
```sh
12421242
@material-ui/core => @mui/material // represents Material Design components.
12431243
@material-ui/icons => @mui/icons-material // represents Material Design icons.
12441244
@material-ui/unstyled => @mui/base // fully functional components with minimum styles.
@@ -2611,6 +2611,7 @@ A big thanks to the 16 contributors who made this release possible. Here are som
26112611
```
26122612

26132613
- &#8203;<!-- 63 -->[Autocomplete] Rename getOptionSelected to isOptionEqualToValue (#26173) @m4theushw
2614+
26142615
```diff
26152616
<Autocomplete
26162617
- getOptionSelected={(option, value) => option.title === value.title}
@@ -4184,7 +4185,7 @@ All contributors of this release in alphabetical order: @artola, @CyanoFresh, @d
41844185

41854186
## 5.0.0-alpha.23
41864187

4187-
###### _Jan 14, 2021_
4188+
_Jan 14, 2021_
41884189

41894190
A big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
41904191

@@ -4299,7 +4300,7 @@ A big thanks to the 15 contributors who made this release possible. Here are som
42994300

43004301
## 5.0.0-alpha.22
43014302

4302-
###### _Jan 4, 2021_
4303+
_Jan 4, 2021_
43034304

43044305
A big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
43054306

@@ -4351,7 +4352,7 @@ A big thanks to the 14 contributors who made this release possible. Here are som
43514352

43524353
## 5.0.0-alpha.21
43534354

4354-
###### _Dec 30, 2020_
4355+
_Dec 30, 2020_
43554356

43564357
A big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
43574358

@@ -4424,7 +4425,7 @@ A big thanks to the 14 contributors who made this release possible. Here are som
44244425

44254426
## 5.0.0-alpha.20
44264427

4427-
###### _Dec 21, 2020_
4428+
_Dec 21, 2020_
44284429

44294430
A big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
44304431

@@ -4502,7 +4503,7 @@ A big thanks to the 13 contributors who made this release possible. Here are som
45024503

45034504
## 5.0.0-alpha.19
45044505

4505-
###### _Dec 13, 2020_
4506+
_Dec 13, 2020_
45064507

45074508
A big thanks to the 24 contributors who made this release possible. Here are some highlights ✨:
45084509

@@ -4630,7 +4631,7 @@ A big thanks to the 24 contributors who made this release possible. Here are som
46304631

46314632
## 5.0.0-alpha.18
46324633

4633-
###### _Dec 3, 2020_
4634+
_Dec 3, 2020_
46344635

46354636
A big thanks to the 17 contributors who made this release possible. Here are some highlights ✨:
46364637

@@ -4722,7 +4723,7 @@ A big thanks to the 17 contributors who made this release possible. Here are som
47224723

47234724
## 5.0.0-alpha.17
47244725

4725-
###### _Nov 23, 2020_
4726+
_Nov 23, 2020_
47264727

47274728
A big thanks to the 18 contributors who made this release possible. Here are some highlights ✨:
47284729

@@ -4889,7 +4890,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
48894890

48904891
## 5.0.0-alpha.16
48914892

4892-
###### _Nov 14, 2020_
4893+
_Nov 14, 2020_
48934894

48944895
A big thanks to the 34 contributors who made this release possible. Here are some highlights ✨:
48954896

@@ -4993,7 +4994,7 @@ A big thanks to the 34 contributors who made this release possible. Here are som
49934994

49944995
## 5.0.0-alpha.15
49954996

4996-
###### _Nov 4, 2020_
4997+
_Nov 4, 2020_
49974998

49984999
A big thanks to the 20 contributors who made this release possible. Here are some highlights ✨:
49995000

@@ -5105,7 +5106,7 @@ A big thanks to the 20 contributors who made this release possible. Here are som
51055106

51065107
## 5.0.0-alpha.14
51075108

5108-
###### _Oct 23, 2020_
5109+
_Oct 23, 2020_
51095110

51105111
A big thanks to the 23 contributors who made this release possible.
51115112
Here are some highlights ✨:
@@ -5156,12 +5157,14 @@ Here are some highlights ✨:
51565157
You can read [their migration guide](https://popper.js.org/docs/v2/migration-guide/) or the following summary:
51575158

51585159
- The CSS prefixes have changed:
5160+
51595161
```diff
51605162
popper: {
51615163
zIndex: 1,
51625164
- '&[x-placement*="bottom"] $arrow': {
51635165
+ '&[data-popper-placement*="bottom"] $arrow': {
51645166
```
5167+
51655168
- Method names have changed.
51665169

51675170
```diff
@@ -5276,7 +5279,7 @@ Here are some highlights ✨:
52765279
52775280
## 5.0.0-alpha.13
52785281
5279-
###### _Oct 17, 2020_
5282+
_Oct 17, 2020_
52805283
52815284
A big thanks to the 25 contributors who made this release possible.
52825285
Here are some highlights ✨:
@@ -5402,7 +5405,7 @@ Here are some highlights ✨:
54025405

54035406
## 5.0.0-alpha.12
54045407

5405-
###### _Oct 11, 2020_
5408+
_Oct 11, 2020_
54065409

54075410
A big thanks to the 45 contributors who made this release possible.
54085411
Here are some highlights ✨:
@@ -5626,7 +5629,7 @@ Here are some highlights ✨:
56265629
56275630
## 5.0.0-alpha.11
56285631
5629-
###### _Sep 26, 2020_
5632+
_Sep 26, 2020_
56305633
56315634
A big thanks to the 29 contributors who made this release possible.
56325635
Here are some highlights ✨:
@@ -5860,7 +5863,7 @@ More documentation are coming.
58605863
58615864
## 5.0.0-alpha.10
58625865
5863-
###### _Sep 15, 2020_
5866+
_Sep 15, 2020_
58645867
58655868
A big thanks to the 16 contributors who made this release possible.
58665869
Here are some highlights ✨:
@@ -5925,13 +5928,13 @@ Here are some highlights ✨:
59255928
59265929
Before:
59275930
5928-
```
5931+
```sh
59295932
theme.spacing(2) => 16
59305933
```
59315934
59325935
After:
59335936
5934-
```
5937+
```sh
59355938
theme.spacing(2) => '16px'
59365939
```
59375940
@@ -5990,7 +5993,7 @@ Here are some highlights ✨:
59905993
59915994
## 5.0.0-alpha.9
59925995
5993-
###### _Sep 6, 2020_
5996+
_Sep 6, 2020_
59945997
59955998
A big thanks to the 14 contributors who made this release possible.
59965999
Here are some highlights ✨:
@@ -6043,7 +6046,7 @@ Here are some highlights ✨:
60436046
60446047
## 5.0.0-alpha.8
60456048
6046-
###### _Aug 31, 2020_
6049+
_Aug 31, 2020_
60476050
60486051
A big thanks to the 19 contributors who made this release possible.
60496052
Here are some highlights ✨:
@@ -6219,7 +6222,7 @@ const theme = createMuiTheme({
62196222
62206223
## 5.0.0-alpha.7
62216224
6222-
###### _Aug 22, 2020_
6225+
_Aug 22, 2020_
62236226
62246227
A big thanks to the 22 contributors who made this release possible.
62256228
Here are some highlights ✨:
@@ -6349,7 +6352,7 @@ Here are some highlights ✨:
63496352
63506353
## 5.0.0-alpha.6
63516354
6352-
###### _Aug 13, 2020_
6355+
_Aug 13, 2020_
63536356
63546357
A big thanks to the 26 contributors who made this release possible.
63556358
Here are some highlights ✨:
@@ -6392,7 +6395,7 @@ Here are some highlights ✨:
63926395
63936396
### `@material-ui/core@v5.0.0-alpha.6`
63946397
6395-
### Breaking changes
6398+
#### Breaking changes
63966399
63976400
- [Avatar] Rename variant circle -> circular for consistency (#22015) @kodai3
63986401
Rename `circle` to `circular` for consistency. The possible values should be adjectives, not nouns:
@@ -6551,7 +6554,7 @@ Here are some highlights ✨:
65516554
+},
65526555
```
65536556
6554-
### Changes
6557+
#### Changes
65556558
65566559
- [Avatar] Custom variant (#22139) @mnajdova
65576560
- [Badge] Add missing class key (#22095) @kodai3
@@ -6571,7 +6574,7 @@ Here are some highlights ✨:
65716574
65726575
### `@material-ui/lab@v5.0.0-alpha.6`
65736576
6574-
### Breaking changes
6577+
#### Breaking changes
65756578
65766579
- [Skeleton] Rename variant circle -> circular and rect -> rectangular for consistency (#22053) @kodai3
65776580
Rename `circle` to `circular` and `rect` to `rectangular` for consistency. The possible values should be adjectives, not nouns:
@@ -6583,7 +6586,7 @@ Here are some highlights ✨:
65836586
+<Skeleton variant="rectangular">
65846587
```
65856588
6586-
### Changes
6589+
#### Changes
65876590
65886591
- [Autocomplete] Add support for "{label: string}" data type as a default for "options" (#21992) @DanailH
65896592
- [TreeView] Add disabled prop (#20133) @netochaves
@@ -6635,7 +6638,7 @@ Here are some highlights ✨:
66356638
66366639
## 5.0.0-alpha.5
66376640
6638-
###### _July 28, 2020_
6641+
_July 28, 2020_
66396642
66406643
A big thanks to the 18 contributors who made this release possible.
66416644
@@ -6706,7 +6709,7 @@ A big thanks to the 18 contributors who made this release possible.
67066709

67076710
## 5.0.0-alpha.4
67086711

6709-
###### _July 19, 2020_
6712+
_July 19, 2020_
67106713

67116714
A big thanks to the 11 contributors who made this release possible.
67126715

@@ -6748,7 +6751,7 @@ A big thanks to the 11 contributors who made this release possible.
67486751
67496752
## 5.0.0-alpha.3
67506753
6751-
###### _July 12, 2020_
6754+
_July 12, 2020_
67526755
67536756
A big thanks to the 14 contributors who made this release possible.
67546757
@@ -6797,7 +6800,7 @@ A big thanks to the 14 contributors who made this release possible.
67976800

67986801
## 5.0.0-alpha.2
67996802

6800-
###### _July 4, 2020_
6803+
_July 4, 2020_
68016804

68026805
A big thanks to the 16 contributors who made this release possible.
68036806

@@ -6859,7 +6862,7 @@ A big thanks to the 16 contributors who made this release possible.
68596862

68606863
## 5.0.0-alpha.1
68616864

6862-
###### _June 27, 2020_
6865+
_June 27, 2020_
68636866

68646867
A big thanks to the 33 contributors who made this release possible. Here are some highlights ✨:
68656868

@@ -6975,6 +6978,7 @@ A big thanks to the 33 contributors who made this release possible. Here are som
69756978
```
69766979
69776980
- [Accordion] typescript: The `event` in `onChange` is no longer typed as a `React.ChangeEvent` but `React.SyntheticEvent`.
6981+
69786982
```diff
69796983
-<Accordion onChange={(event: React.ChangeEvent<{}>, expanded: boolean) => {}} />
69806984
+<Accordion onChange={(event: React.SyntheticEvent, expanded: boolean) => {}} />

0 commit comments

Comments
 (0)