Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs-infra] Add vale for style-guide lint on docs #3178

Merged
merged 17 commits into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
16 changes: 0 additions & 16 deletions .github/styles/Blog/BrandName.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/styles/Blog/ComponentNaming.yml

This file was deleted.

14 changes: 0 additions & 14 deletions .github/styles/Blog/ComposedWords.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/styles/Blog/NamingConventions.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/styles/Blog/NoCompanyName.yml

This file was deleted.

10 changes: 0 additions & 10 deletions .github/styles/Blog/Typos.yml

This file was deleted.

3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,4 @@ test-results
/test/regressions/screenshots/**

# vale downloaded config
.github/styles/*
!.github/styles/Blog
.github/styles/
14 changes: 8 additions & 6 deletions .vale.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,21 @@
StylesPath = .github/styles
MinAlertLevel = suggestion

# Run `vale sync` to include packages: https://vale.sh/hub/google/
Packages = Google
# To update writing-rules package:
# 1. Go on material-ui repo on 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 by the file path of the generated zip
Packages = Google, https://github.com/mui/material-ui/raw/master/docs/writing-rules.zip
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have no guarantees that master is the active branch:

Suggested change
Packages = Google, https://github.com/mui/material-ui/raw/master/docs/writing-rules.zip
Packages = Google, https://github.com/mui/material-ui/raw/HEAD/docs/writing-rules.zip

handled in #3293.


[*.md]
# Ignore code injection which start with {{...
BlockIgnores = {{.*

# Custom syle
# BasedOnStyles = Blog
BasedOnStyles = writing-rules


Blog.ComposedWords = YES
Blog.NamingConventions = YES
Blog.Typos = YES

# Google:
Google.FirstPerson = YES # Avoid first-person pronouns such as I, me, ...'.
Expand Down
Loading