Skip to content

Commit 81ccb60

Browse files
[docs-infra] Fix Vale no longer working (#17602)
Co-authored-by: Olivier Tassinari <[email protected]>
1 parent de97e59 commit 81ccb60

File tree

7 files changed

+39
-8
lines changed

7 files changed

+39
-8
lines changed

.github/workflows/vale-action.yml

+8
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,17 @@ jobs:
1313
pull-requests: write
1414
steps:
1515
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
16+
- name: Extract Vale version from pnpm-lock.yaml
17+
id: vale-version
18+
run: |
19+
# Extract version from lock file
20+
VERSION=$(awk -F"@|'" '/@vvago\/vale@/ {print $4}' pnpm-lock.yaml | head -n1)
21+
echo "Extracted Vale version: $VERSION"
22+
echo "vale_version=$VERSION" >> $GITHUB_OUTPUT
1623
- uses: errata-ai/vale-action@d89dee975228ae261d22c15adcd03578634d429c # v2.1.1
1724
continue-on-error: true # GitHub Action flag needed until https://github.com/errata-ai/vale-action/issues/89 is fixed
1825
with:
26+
version: ${{ steps.vale-version.outputs.vale_version }}
1927
# Errors should be more visible
2028
fail_on_error: true
2129
# The other reports don't work, not really https://github.com/reviewdog/reviewdog#reporters

.gitignore

+2-4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,5 @@ node_modules
2222
size-snapshot.json
2323
performance-snapshot.json
2424
# vale downloaded config
25-
.github/styles/Google
26-
.github/styles/MUI
27-
.github/styles/.vale-config
28-
test-results
25+
.github/styles/
26+
test-results

docs/data/charts/gauge/gauge.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ waiAria: https://www.w3.org/WAI/ARIA/apg/patterns/meter/
99

1010
# Charts - Gauge
1111

12-
<p class="description">Gauge chart let the user evaluate metrics.</p>
12+
<p class="description">Gauge let the user evaluate metrics.</p>
1313

1414
{{"component": "@mui/docs/ComponentLinkHeader", "design": false}}
1515

docs/data/charts/treemap/treemap.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ productId: x-charts
55

66
# Charts - Treemap 🚧
77

8-
<p class="description">Treemap chart allows to display data with a hierarchical structure.</p>
8+
<p class="description">Treemap allows to display data with a hierarchical structure.</p>
99

1010
:::warning
1111
The Treemap component isn't available yet, but you can upvote [**this GitHub issue**](https://github.com/mui/mui-x/issues/7924) to see it arrive sooner.

docs/src/modules/components/WhatsNewLayout.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ const entries = [
273273
url: 'https://mui.com/blog/mui-x-end-v6-features/#column-autosizing',
274274
},
275275
{
276-
title: 'Sparkline Charts on the Data Grid ',
276+
title: 'Sparkline charts on the Data Grid ',
277277
url: 'https://mui.com/blog/mui-x-end-v6-features/#sparkline-as-a-column-type',
278278
},
279279
],

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"eslint:fix": "pnpm eslint --fix",
2626
"eslint:ci": "eslint . --report-unused-disable-directives --ext .js,.ts,.tsx --max-warnings 0",
2727
"markdownlint": "markdownlint-cli2 \"**/*.md\"",
28-
"valelint": "git ls-files | grep -h \".md$\" | xargs vale --filter='.Level==\"error\"'",
28+
"valelint": "pnpm vale sync && git ls-files | grep -h \".md$\" | xargs pnpm vale --filter='.Level==\"error\"'",
2929
"prettier": "pretty-quick --branch master --ignore-path .eslintignore",
3030
"prettier:all": "prettier --write . --ignore-path .eslintignore",
3131
"prettier:check": "prettier --check . --ignore-path .eslintignore",
@@ -111,6 +111,7 @@
111111
"@types/yargs": "^17.0.33",
112112
"@typescript-eslint/eslint-plugin": "^8.31.0",
113113
"@typescript-eslint/parser": "^8.31.0",
114+
"@vvago/vale": "^3.11.2",
114115
"autoprefixer": "^10.4.21",
115116
"axe-core": "4.10.3",
116117
"babel-loader": "^10.0.0",

pnpm-lock.yaml

+24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)