Skip to content

Commit

Permalink
[chore] Merge remote-tracking branch 'origin/master' into feature/acc…
Browse files Browse the repository at this point in the history
…ordion_a11y
  • Loading branch information
ilyabrower committed Jul 4, 2024
2 parents 4be3769 + a0db33f commit 1024740
Show file tree
Hide file tree
Showing 210 changed files with 1,013 additions and 627 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: actions/setup-node@v4.0.1
with:
node-version: 20
- uses: pnpm/action-setup@v2.2.4
- uses: pnpm/action-setup@v4.0.0
name: Install pnpm
id: pnpm-install
with:
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:
uses: actions/setup-node@v4.0.1
with:
node-version: 20
- uses: pnpm/action-setup@v2.2.4
- uses: pnpm/action-setup@v4.0.0
name: Install pnpm
id: pnpm-install
with:
Expand Down Expand Up @@ -96,6 +96,15 @@ jobs:
pnpm install --frozen-lockfile
- name: Lint
run: pnpm --filter intergalactic-migrate run build && pnpm lint
docs-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- uses: errata-ai/vale-action@reviewdog
name: Run Vale
continue-on-error: true
with:
files: README.md CONTRIBUTING.md semcore/*/README.md semcore/*/CHANGELOG.md website/docs
unit-tests:
runs-on: ubuntu-latest
needs: build
Expand All @@ -106,7 +115,7 @@ jobs:
uses: actions/setup-node@v4.0.1
with:
node-version: 20
- uses: pnpm/action-setup@v2.2.4
- uses: pnpm/action-setup@v4.0.0
name: Install pnpm
id: pnpm-install
with:
Expand Down Expand Up @@ -164,7 +173,7 @@ jobs:
uses: actions/setup-node@v4.0.1
with:
node-version: 20
- uses: pnpm/action-setup@v2.2.4
- uses: pnpm/action-setup@v4.0.0
name: Install pnpm
id: pnpm-install
with:
Expand Down Expand Up @@ -234,7 +243,7 @@ jobs:
needs: build
steps:
- uses: actions/checkout@v4.1.1
- uses: pnpm/action-setup@v2.2.4
- uses: pnpm/action-setup@v4.0.0
with:
version: 8
run_install: false
Expand All @@ -259,7 +268,7 @@ jobs:
needs: build
steps:
- uses: actions/checkout@v4.1.1
- uses: pnpm/action-setup@v2.2.4
- uses: pnpm/action-setup@v4.0.0
with:
version: 8
run_install: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/init-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
with:
token: ${{ secrets.BOT_ACCOUNT_GITHUB_TOKEN }}
fetch-depth: 0
- uses: pnpm/action-setup@v2.2.4
- uses: pnpm/action-setup@v4.0.0
name: Install pnpm
id: pnpm-install
with:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/publish-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: actions/setup-node@v4.0.1
with:
node-version: 20
- uses: pnpm/action-setup@v2.2.4
- uses: pnpm/action-setup@v4.0.0
name: Install pnpm
id: pnpm-install
with:
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
uses: actions/setup-node@v4.0.1
with:
node-version: 20
- uses: pnpm/action-setup@v2.2.4
- uses: pnpm/action-setup@v4.0.0
name: Install pnpm
id: pnpm-install
with:
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
uses: actions/setup-node@v4.0.1
with:
node-version: 20
- uses: pnpm/action-setup@v2.2.4
- uses: pnpm/action-setup@v4.0.0
name: Install pnpm
id: pnpm-install
with:
Expand Down Expand Up @@ -179,7 +179,7 @@ jobs:
with:
token: ${{ secrets.BOT_ACCOUNT_GITHUB_TOKEN }}
fetch-depth: 0
- uses: pnpm/action-setup@v2.2.4
- uses: pnpm/action-setup@v4.0.0
name: Install pnpm
id: pnpm-install
with:
Expand Down Expand Up @@ -235,7 +235,7 @@ jobs:
needs: build
steps:
- uses: actions/checkout@v4.1.1
- uses: pnpm/action-setup@v2.2.4
- uses: pnpm/action-setup@v4.0.0
with:
version: 8
run_install: false
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-unlocked-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
uses: actions/setup-node@v4.0.1
with:
node-version: 20
- uses: pnpm/action-setup@v2.2.4
- uses: pnpm/action-setup@v4.0.0
name: Install pnpm
id: pnpm-install
with:
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
with:
token: ${{ secrets.BOT_ACCOUNT_GITHUB_TOKEN }}
fetch-depth: 0
- uses: pnpm/action-setup@v2.2.4
- uses: pnpm/action-setup@v4.0.0
name: Install pnpm
id: pnpm-install
with:
Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
- uses: actions/checkout@v4.1.1
with:
token: ${{ secrets.BOT_ACCOUNT_GITHUB_TOKEN }}
- uses: pnpm/action-setup@v2.2.4
- uses: pnpm/action-setup@v4.0.0
name: Install pnpm
id: pnpm-install
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v4.1.1
with:
token: ${{ secrets.BOT_ACCOUNT_GITHUB_TOKEN }}
- uses: pnpm/action-setup@v2.2.4
- uses: pnpm/action-setup@v4.0.0
name: Install pnpm
id: pnpm-install
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/slack-updates-broadcast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
uses: actions/setup-node@v4.0.1
with:
node-version: 20
- uses: pnpm/action-setup@v2.2.4
- uses: pnpm/action-setup@v4.0.0
name: Install pnpm
id: pnpm-install
with:
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
uses: actions/setup-node@v4.0.1
with:
node-version: 20
- uses: pnpm/action-setup@v2.2.4
- uses: pnpm/action-setup@v4.0.0
name: Install pnpm
id: pnpm-install
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/slack-updates-pre-broadcast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: actions/setup-node@v4.0.1
with:
node-version: 20
- uses: pnpm/action-setup@v2.2.4
- uses: pnpm/action-setup@v4.0.0
name: Install pnpm
id: pnpm-install
with:
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
uses: actions/setup-node@v4.0.1
with:
node-version: 20
- uses: pnpm/action-setup@v2.2.4
- uses: pnpm/action-setup@v4.0.0
name: Install pnpm
id: pnpm-install
with:
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ semcore/illustration/**/*.d.ts
!semcore/icon/FeauturedImage/**
!semcore/icon/FeauturedVideo/**
.pnpm-store
.vale

# Playwright
test-results
Expand Down
11 changes: 11 additions & 0 deletions .vale.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
StylesPath = .vale

MinAlertLevel = suggestion

IgnoredScopes = link, code

[formats]
mdx = md

[*.md]
BasedOnStyles = DevDocs
12 changes: 12 additions & 0 deletions .vale/DevDocs/ArticlesHeadings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
message: "Consider removing the '%s' article from the heading for readability."
extends: existence
ignorecase: true
action:
name: remove
scope:
- heading
level: suggestion
tokens:
- a
- an
- the
30 changes: 30 additions & 0 deletions .vale/DevDocs/Contractions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Recommends using contracted forms of verbs with 'not'
extends: substitution
message: "It's okay to use the contracted form '%s' instead of '%s'."
level: suggestion
ignorecase: true
action:
name: replace
swap:
are not: aren't
cannot: can't
could not: couldn't
did not: didn't
do not: don't
does not: doesn't
has not: hasn't
have not: haven't
how is: how's
is not: isn't
it is: it's
should not: shouldn't
that is: that's
they are: they're
was not: wasn't
we are: we're
we have: we've
were not: weren't
what is: what's
when is: when's
where is: where's
will not: won't
8 changes: 8 additions & 0 deletions .vale/DevDocs/DateFormat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
extends: existence
message: "Use the '<Month> DD, YYYY' format, not '%s'."
ignorecase: true
level: error
nonword: true
tokens:
- '\d{1,2}(?:\.|/)\d{1,2}(?:\.|/)\d{4}'
- '\d{1,2} (?:Jan(?:uary)?|Feb(?:ruary)?|Mar(?:ch)?|Apr(?:il)|May|Jun(?:e)|Jul(?:y)|Aug(?:ust)|Sep(?:tember)?|Oct(?:ober)|Nov(?:ember)?|Dec(?:ember)?) \d{4}'
8 changes: 8 additions & 0 deletions .vale/DevDocs/ExtraSpace.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Suggests to remove an extra space
extends: existence
message: "Remove the extra space in '%s'."
level: error
nonword: true
tokens:
- '[\w.?!,\(\)\-":] {2,}[\w.?!,\(\)\-":]'
- '[\w.?!,\(\)\-":]. {2,}'
22 changes: 22 additions & 0 deletions .vale/DevDocs/Gender.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Suggests gender-neutral pronouns
extends: substitution
message: "Use gender-neutral pronouns when you talk about any person. Use '%s' instead of '%s'."
level: error
ignorecase: true
# nonword: true
action:
name: replace
swap:
he: they
him: them
his: their
she: they
her: their
hers: theirs
s/he: they
he/she: they
she/he: they
he or she: they
she or he: they
# Temporarily off. When it's on and the `nonword` option is `true`, Vale finds `he` and `his` in `the` and `this`.
# '\B\(s\)he\b': they
9 changes: 9 additions & 0 deletions .vale/DevDocs/HeadingLevel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Checks that there are no H4–H6 headings
extends: existence
message: "Avoid using H4–H6 headings. Consider refactoring the information or splitting it into several pages."
# Vale doesn't ignore this rule when H4 headings are marked as exceptions.
# Change the level back to "error" when this bug is fixed.
level: warning
scope: raw
raw:
- '(?<=\n)#{4,}\s.*'
9 changes: 9 additions & 0 deletions .vale/DevDocs/Judgements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Recommends to avoid unnecessary value judgments in technical docs
extends: existence
message: "Avoid using '%s' in technical documentation."
ignorecase: true
action:
name: remove
level: warning
tokens:
- '\b(?:eas(?:y|ily)|simpl(?:e|y)|obvious(?:ly)?)\b'
12 changes: 12 additions & 0 deletions .vale/DevDocs/Latin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Checks that there are no Latin terms and abbreviations
extends: substitution
message: "Avoid Latin words and expressions. Use '%s' instead of '%s'."
ignorecase: true
level: error
nonword: true
action:
name: replace
swap:
# Regular spellchecker adds a comma after e.g./i.e.
'\b(?:eg|e\.g\.)': for example|such as
'\b(?:ie|i\.e\.)': that's|namely|specifically
8 changes: 8 additions & 0 deletions .vale/DevDocs/Master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
extends: substitution
message: "Use '%s' instead of '%s'. For branch names, use code font."
level: error
ignorecase: true
action:
name: replace
swap:
master: primary|main|controller
17 changes: 17 additions & 0 deletions .vale/DevDocs/MeaningfulLink.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Checks that links have meaningful text

extends: existence
message: "Use meaningful link text rather than '%s'."
level: error
scope: raw
nonword: true
ignorecase: true
tokens:
- \[here\]\(.*\)
- \[this\]\(.*\)
- \[this page\]\(.*\)
- \[this link\]\(.*\)
- \[link\]\(.*\)
- \[click here\]\(.*\)
- \[click this\]\(.*\)
- \[click that\]\(.*\)
Loading

0 comments on commit 1024740

Please sign in to comment.