[docs-infra] Enforce Vale #226
Labels
enhancement
This is not a bug, nor a new feature
scope: docs-infra
Specific to the docs-infra product
test
Summary 💡
We now have mui/material-ui#32486 but at this stage, nothing enforces that the codebase is getting better over time.
Motivation 🔦
We don't want to have to do PRs like mui/toolpad#4347.
Solution space
We are using GitHub Action to report issues on the changes but:
continue-on-error: true
to ignore it.vale sync && git ls-files | grep -h -E ".(mdx|md)$" | xargs vale --filter='.Level=="error"'
in the CI. Now, the problem is that we import the config withPackages = Google, https://github.com/mui/material-ui/raw/HEAD/docs/mui-vale.zip
. We need to get the .zip directly from @mui/monorepo, so it's idempotent (we don't want to break other repositories' main branch when the mono repo updates the Vale rules), but then, the problem is that the vale GitHub Action would fail, we would need to install the npm dependencies.So overall, I would propose this diff:
And then, we can copy https://github.com/mui/material-ui/blob/573028441c7f21a53bdf691be71a14ff0efc261f/.circleci/config.yml#L243
Search keywords:
The text was updated successfully, but these errors were encountered: