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

[CI][i18n] Spell check content/pt, and enable other dicts #4982

Merged
Merged
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
26 changes: 7 additions & 19 deletions .cspell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@
# For settings, see
# https://www.streetsidesoftware.com/vscode-spell-checker/docs/configuration/
version: '0.2'
language: en-US
import:
- '@cspell/dict-pt-br/cspell-ext.json'
caseSensitive: true
ignorePaths:
- '*.svg'
- 'vendors.yaml'
- vendors.yaml
- content/ja
- content/zh
# words here are only listed for their spelling, if there is a certain way
# to write a word (e.g. OpenTelemetry vs Opentelemetry or cloud native vs
# cloud-native), edit the text-lint rules in .textlintrc.yml
Expand All @@ -22,22 +27,20 @@ languageSettings:
- languageId: markdown
ignoreRegExpList:
- CodeBlock
dictionaries: [pt-br, companies, cpp, dotnet, golang, node, softwareTerms]
words:
- accountingservice
- actix
- adservice
- alibaba
- Alloc
- Alolita
- APAC
- appdynamics
- appender
- appenders
- aspecto
- autoconfiguration
- autoconfigure
- autoinstrumentation
- autoload
- autoloaded
- autoloader
- autoloading
Expand All @@ -52,7 +55,6 @@ words:
- currencyservice
- daemonset
- datadog
- declarators
- discoverability
- dotnet
- Dyla
Expand All @@ -67,7 +69,6 @@ words:
- github
- gitpod
- grafana
- gzipped
- Hausenblas
- hugo
- initializers
Expand All @@ -89,14 +90,11 @@ words:
- laravel
- lifecycles
- lightstep
- linux
- Loffay
- Mancuso
- microservices
- mongodb
- mysql
- ndjson
- netlify
- Neumann
- nginx
- ocaml
Expand All @@ -113,20 +111,16 @@ words:
- otelcol
- otep
- otlp
- outro
- overridable
- packagist
- pageinfo
- Paixão
- parentbased
- Pavol
- paymentservice
- pluggable
- postgresql
- Pranay
- Prateek
- prepper
- Println
- productcatalogservice
- prometheus
- proto
Expand All @@ -139,22 +133,16 @@ words:
- redis
- relref
- Rexed
- roadmap
- runtimes
- Rynn
- semconv
- servlet
- Severin
- Sharma
- shippingservice
- shortcode
- snmp
- Socha
- sqlite
- Stalnaker
- stdoutmetric
- Strimzi
- subdir
- symfony
- tabpane
- textlint
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-spelling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
with:
# Files should be consistent with check:spelling files
files: |
content/en
content
data
layouts/**/*.md
config: .cspell.yml
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"check:links": "npm run _check:links",
"check:markdown": "scripts/check-markdown-wrapper.sh",
"check:registry": "npm run _check:registry -- ",
"check:spelling": "npx cspell --no-progress -c .cspell.yml content/en data 'layouts/**/*.md'",
"check:spelling": "npx cspell --no-progress -c .cspell.yml content data 'layouts/**/*.md'",
"check:text": "npm run _check:text -- ",
"check": "npm run seq -- $(npm run -s _list:check:*)",
"clean": "make clean",
Expand Down Expand Up @@ -109,14 +109,15 @@
"update:submodule": "set -x && git submodule update --remote ${DEPTH:- --depth 1}"
},
"devDependencies": {
"@cspell/dict-pt-br": "^2.3.0",
"ajv": "^8.17.1",
"ajv-errors": "^3.0.0",
"ajv-formats": "^3.0.1",
"autoprefixer": "^10.4.20",
"cspell": "^8.13.1",
"gulp": "^5.0.0",
"js-yaml": "^4.1.0",
"hugo-extended": "0.131.0",
"js-yaml": "^4.1.0",
"markdown-link-check": "^3.12.2",
"markdownlint": "^0.34.0",
"postcss-cli": "^11.0.0",
Expand Down
Loading