Skip to content

Commit e93b092

Browse files
authored
ci: migrate to cspell for spell checking (thegeeklab#1099)
1 parent 8ecc97a commit e93b092

File tree

19 files changed

+92
-88
lines changed

19 files changed

+92
-88
lines changed

.cspell.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"version": "0.2",
3+
"language": "en",
4+
"dictionaries": ["en_us", "softwareTerms", "companies", "bash", "html", "css", "typescript"],
5+
"words": [
6+
"geekdoc",
7+
"katex",
8+
"flexsearch",
9+
"pygments",
10+
"Geekdocs",
11+
"goldmark",
12+
"THEMEDIR",
13+
"gohugo",
14+
"canonify",
15+
"codecopy",
16+
"lstore",
17+
"lntable",
18+
"lastmod",
19+
"Preproc",
20+
"lntd",
21+
"Emph",
22+
"anchorwrap",
23+
"languagecode",
24+
"relref",
25+
"linenos",
26+
"admonitionblock",
27+
"uuidv4",
28+
"cfworker",
29+
"readmore",
30+
"editpage",
31+
"codecontainer",
32+
"necolas",
33+
"Shpak",
34+
"Kaussow"
35+
],
36+
"ignorePaths": [
37+
".woodpecker",
38+
".cspell.json",
39+
".git",
40+
".gitignore",
41+
".vscode",
42+
"*.svg",
43+
"renovate.json",
44+
"package.json",
45+
"config.yaml",
46+
"webpack.config.js",
47+
"theme.toml",
48+
"svgsprite.config.json",
49+
"i18n/*"
50+
],
51+
52+
"ignoreRegExpList": ["&\\S+;", "{{.+}}"]
53+
}

.dictionary

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/settings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ branches:
5252
required_status_checks:
5353
strict: false
5454
contexts:
55-
- ci/woodpecker/pr/test
55+
- ci/woodpecker/pr/static
5656
- ci/woodpecker/pr/build-package
5757
- ci/woodpecker/pr/docs
5858
enforce_admins: false

.woodpecker/build-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ steps:
4949
- event: [tag]
5050

5151
depends_on:
52-
- test
52+
- static

.woodpecker/docs.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,6 @@ when:
66
- ${CI_REPO_DEFAULT_BRANCH}
77

88
steps:
9-
- name: markdownlint
10-
image: quay.io/thegeeklab/markdownlint-cli
11-
commands:
12-
- markdownlint 'exampleSite/content/**/*.md' 'README.md' 'CONTRIBUTING.md'
13-
14-
- name: spellcheck
15-
image: quay.io/thegeeklab/alpine-tools
16-
commands:
17-
- spellchecker --files 'exampleSite/content/**/*.md' 'README.md' -d .dictionary -p spell indefinite-article syntax-urls frontmatter --frontmatter-keys title
18-
environment:
19-
FORCE_COLOR: "true"
20-
219
- name: assets
2210
image: docker.io/library/node:lts
2311
commands:

.woodpecker/notify.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.woodpecker/test.yml renamed to .woodpecker/static.yaml

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,37 @@ when:
88
steps:
99
- name: eslint
1010
image: docker.io/library/node:lts
11+
depends_on: []
1112
commands:
1213
- npm install --quiet --no-progress
1314
- npm run lint:js
1415
environment:
1516
FORCE_COLOR: "true"
1617

18+
- name: markdownlint
19+
image: quay.io/thegeeklab/markdownlint-cli
20+
depends_on: []
21+
commands:
22+
- markdownlint 'exampleSite/content/**/*.md' 'README.md' 'CONTRIBUTING.md'
23+
24+
- name: spellcheck
25+
image: ghcr.io/streetsidesoftware/cspell
26+
depends_on: []
27+
commands:
28+
- cspell-cli lint . --gitignore --color
29+
30+
- name: link-validation
31+
image: docker.io/lycheeverse/lychee
32+
depends_on: []
33+
commands:
34+
- lychee --no-progress --format detailed exampleSite/content/ README.md
35+
environment:
36+
GITHUB_TOKEN:
37+
from_secret: github_token_ro
38+
1739
- name: assets
1840
image: docker.io/library/node:lts
19-
depends_on: [eslint]
41+
depends_on: [eslint, markdownlint, spellcheck, link-validation]
2042
commands:
2143
- npm install --quiet --no-progress
2244
- npm run build
@@ -39,15 +61,6 @@ steps:
3961
environment:
4062
FORCE_COLOR: "true"
4163

42-
- name: link-validation
43-
image: docker.io/lycheeverse/lychee
44-
depends_on: [testbuild]
45-
commands:
46-
- lychee --no-progress --format detailed exampleSite/content/ README.md
47-
environment:
48-
GITHUB_TOKEN:
49-
from_secret: github_token_ro
50-
5164
- name: page-validation
5265
image: quay.io/thegeeklab/lhci:0.15
5366
depends_on: [testbuild]

exampleSite/config/_default/params.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
# cspell:ignore socialmedia2
3+
24
description: >
35
Geekdoc is a simple Hugo theme for documentations. It is intentionally designed as a fast and lean theme
46
and may not fit the requirements of complex projects. If a more feature-complete theme is required

exampleSite/content/en/asciidoc/admonitions.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
title = "Admonitions"
33
+++
44

5+
// cspell:ignore toclevels
6+
57
:toc:
68
:toclevels: 2
79

exampleSite/content/en/features/icon-sets.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: Icon Sets
3+
# cSpell:ignore svgsprit.es
34
---
45

56
{{< toc >}}

0 commit comments

Comments
 (0)