Skip to content

Commit

Permalink
[CI][i18n] Spell check content/pt, and enable other dicts (open-telem…
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin authored Aug 7, 2024
1 parent 7ac35d6 commit 65fd0c2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 22 deletions.
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

0 comments on commit 65fd0c2

Please sign in to comment.