Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
os: [macos-latest, windows-latest, ubuntu-latest]
permissions:
contents: read
pull-requests: write
steps:
- run: echo '${{ github.actor }}'
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand Down Expand Up @@ -66,3 +67,21 @@ jobs:
- name: Debug export-detail.json on when pnpm docs:build fails with EMFILE error
if: failure()
run: cat ./docs/.next/export-detail.json || true
- name: Extract Vale version
if: ${{ matrix.os == 'ubuntu-latest' }}
id: vale-version
run: |
VERSION=$(pnpm code-infra vale --get-version)
echo "vale_version=$VERSION" >> $GITHUB_OUTPUT
- uses: vale-cli/vale-action@d89dee975228ae261d22c15adcd03578634d429c # v2.1.1
continue-on-error: true # GitHub Action flag needed until https://github.com/errata-ai/vale-action/issues/89 is fixed
if: ${{ matrix.os == 'ubuntu-latest' }}
with:
version: ${{ steps.vale-version.outputs.vale_version }}
# Errors should be more visible
fail_on_error: true
# The other reports don't work, not really https://github.com/reviewdog/reviewdog#reporters
reporter: github-pr-check
# Required, set by GitHub actions automatically:
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
token: ${{secrets.GITHUB_TOKEN}}
7 changes: 1 addition & 6 deletions .vale.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@
StylesPath = .github/styles
MinAlertLevel = warning

# To update mui-vale package:
# 1. Go to the docs folder
# 2. Update/create YAML files
# 3. Run `pnpm docs:zipRules` to generate the zip files
# 4. You can test locally by replacing the url with the file path of the generated zip
Packages = Google, docs/mui-vale.zip
Packages = Google, ./node_modules/@mui/internal-code-infra/vale

[formats]
mdx = md
Expand Down
Binary file removed docs/mui-vale.zip
Binary file not shown.
2 changes: 0 additions & 2 deletions docs/mui-vale/.vale.ini

This file was deleted.

43 changes: 0 additions & 43 deletions docs/mui-vale/styles/MUI/CorrectReferenceAllCases.yml

This file was deleted.

14 changes: 0 additions & 14 deletions docs/mui-vale/styles/MUI/CorrectRererenceCased.yml

This file was deleted.

11 changes: 0 additions & 11 deletions docs/mui-vale/styles/MUI/GoogleLatin.yml

This file was deleted.

22 changes: 0 additions & 22 deletions docs/mui-vale/styles/MUI/MuiBrandName.yml

This file was deleted.

112 changes: 0 additions & 112 deletions docs/mui-vale/styles/MUI/NoBritish.yml

This file was deleted.

17 changes: 0 additions & 17 deletions docs/mui-vale/styles/MUI/NoCompanyName.yml

This file was deleted.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,13 @@
"docs:typescript:formatted": "tsx ./docs/scripts/formattedTSDemos",
"docs:sync-team": "tsx ./docs/scripts/syncTeamMembers.ts && pnpm prettier",
"docs:mdicons:synonyms": "cross-env BABEL_ENV=development babel-node --extensions \".tsx,.ts,.js,.mjs\" ./docs/scripts/updateIconSynonyms && pnpm prettier",
"docs:zipRules": "cd docs && rm mui-vale.zip && zip -r mui-vale.zip mui-vale && cd ../ && pnpm vale sync",
"extract-error-codes": "code-infra extract-error-codes --errorCodesPath docs/public/static/error-codes.json --skip @mui/core-downloads-tracker @mui/envinfo @mui/internal-core-docs @mui/codemod @mui/icons-material",
"template:screenshot": "cross-env BABEL_ENV=development babel-node --extensions \".tsx,.ts,.js\" ./docs/scripts/generateTemplateScreenshots",
"eslint": "eslint . --cache --report-unused-disable-directives --max-warnings 0",
"eslint:ci": "eslint . --report-unused-disable-directives --max-warnings 0",
"stylelint": "stylelint --reportInvalidScopeDisables --reportNeedlessDisables \"docs/**/*.?(c|m)[jt]s?(x)\" \"docs/**/*.css\" --ignore-path .lintignore",
"markdownlint": "markdownlint-cli2 \"**/*.md\"",
"valelint": "pnpm dlx --package @vvago/vale vale sync && git ls-files | grep -E \"\\.(md|mdx)$\" | xargs pnpm dlx --package @vvago/vale vale --filter='.Level==\"error\"'",
"valelint": "pnpm code-infra vale sync && git ls-files | grep -E \"\\.(md|mdx)$\" | xargs pnpm code-infra vale --filter='.Level==\"error\"'",
"prettier": "pretty-quick --ignore-path .lintignore --branch master",
"prettier:all": "prettier --write . --ignore-path .lintignore",
"size:snapshot": "pnpm -F ./test/bundle-size check",
Expand Down Expand Up @@ -97,7 +96,7 @@
"@mui-internal/api-docs-builder-core": "workspace:^",
"@mui/internal-babel-plugin-minify-errors": "2.0.8-canary.24",
"@mui/internal-bundle-size-checker": "1.0.9-canary.70",
"@mui/internal-code-infra": "0.0.4-canary.14",
"@mui/internal-code-infra": "https://pkg.pr.new/mui/mui-public/@mui/internal-code-infra@e9658c5",
"@mui/internal-docs-utils": "workspace:^",
"@mui/internal-netlify-cache": "0.0.3-canary.3",
"@mui/internal-scripts": "workspace:^",
Expand Down
46 changes: 32 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading