Skip to content

Commit e6eb26c

Browse files
author
Andrew Welch
committed
Add textlint
1 parent a0f877e commit e6eb26c

File tree

5 files changed

+2028
-16
lines changed

5 files changed

+2028
-16
lines changed

docs/.textlint.terms.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[
2+
"Stylus",
3+
"VuePress",
4+
[
5+
"front[- ]matter",
6+
"frontmatter"
7+
]
8+
]

docs/.textlintrc.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
module.exports = {
2+
rules: {
3+
'@textlint-rule/no-unmatched-pair': true,
4+
apostrophe: true,
5+
'common-misspellings': true,
6+
diacritics: true,
7+
'en-capitalization': {
8+
allowHeading: false
9+
},
10+
'stop-words': {
11+
severity: 'warning'
12+
},
13+
terminology: {
14+
terms: `${__dirname}/.textlint.terms.json`
15+
},
16+
'write-good': {
17+
severity: 'warning'
18+
}
19+
},
20+
filters: {
21+
comments: true
22+
}
23+
}

docs/Makefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ DOCKERRUN=docker container run \
77
-t \
88
-v `pwd`:/app \
99
${CONTAINER}:${TAG}
10-
DOCSDEST?=../../../sites/nystudio107/web/docs/transcoder
10+
DOCSDEST?=../../../sites/nystudio107/web/docs/vite
1111

12-
.PHONY: docker build dev install update npm
12+
.PHONY: docker build dev fix install lint update npm
1313

1414
docker:
1515
docker build \
@@ -25,9 +25,15 @@ build: docker install update
2525
dev: docker install
2626
${DOCKERRUN} \
2727
run docs:dev
28+
fix: docker install
29+
${DOCKERRUN} \
30+
run docs:fix
2831
install: docker
2932
${DOCKERRUN} \
3033
install
34+
lint: docker install
35+
${DOCKERRUN} \
36+
run docs:lint
3137
update: docker
3238
${DOCKERRUN} \
3339
update

0 commit comments

Comments
 (0)