Skip to content

Commit 6742d3a

Browse files
Merge pull request #22 from testthedocs/refactor
Add actions and merge various small changes
2 parents b66914a + 17a8edf commit 6742d3a

File tree

13 files changed

+53
-38
lines changed

13 files changed

+53
-38
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ python:
44
- "3.6"
55
install:
66
# Install the latest release of Vale:
7-
- wget https://github.com/errata-ai/vale/releases/download/v2.0.0-beta.2/vale_2.0.0-beta.2_Linux_64-bit.tar.gz
8-
- mkdir bin && tar -xvzf vale_2.0.0-beta.2_Linux_64-bit.tar.gz -C bin
7+
- wget https://github.com/errata-ai/vale/releases/download/v3.4.2/vale_3.4.2_Linux_64-bit.tar.gz
8+
- mkdir bin && tar -xvzf vale_3.4.2_Linux_64-bit.tar.gz -C bin
99
- export PATH=./bin:"$PATH"
1010

1111
- bundle install --jobs=3

Openly/A11Y.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@ extends: substitution
33
message: Consider using '%s' instead of '%s'
44
ignorecase: true
55
level: error
6+
action:
7+
name: replace
68
swap:
79
(?:click|press): "'select'"

Openly/But.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,10 @@ extends: existence
33
message: "Do not start a paragraph with a 'but'."
44
level: error
55
scope: paragraph
6+
action:
7+
name: remove
8+
params:
9+
- remove
10+
- '.?!'
611
tokens:
712
- ^But

Openly/GenderBias.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ extends: substitution
33
message: Consider using '%s' instead of '%s'
44
ignorecase: true
55
level: error
6+
action:
7+
name: replace
68
swap:
79
(?:alumna|alumnus): graduate
810
(?:alumnae|alumni): graduates

Openly/Hyphens.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
extends: substitution
33
message: Use '%s' instead of '%s'
44
level: warning
5+
action:
6+
name: replace
57
swap:
68
African-American: African American
79
Asian-American: Asian American

Openly/Punctuation.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ level: error
55
scope: text
66
ignorecase: false
77
nonword: true
8+
action:
9+
name: replace
810
swap:
911
e\.g\.: eg
1012
i\.e\.: ie

Openly/Quotes.yml

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

Openly/Readability.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
---
2-
extends: readability
3-
message: "Grade level (%s) too high!"
4-
level: warning
5-
grade: 10
6-
metrics:
7-
- Flesch-Kincaid
8-
- Gunning Fog
9-
- Coleman-Liau
10-
- SMOG
11-
- Automated Readability
1+
extends: metric
2+
message: "Try to keep the Flesch reading ease score (%s) above 70."
3+
link: https://en.wikipedia.org/wiki/Flesch%E2%80%93Kincaid_readability_tests
4+
5+
formula: |
6+
206.835 - (1.015 * (words / sentences)) - (84.6 * (syllables / words))
7+
8+
condition: "< 70"

Openly/So.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,10 @@ extends: existence
33
message: "Don't start a sentence with '%s'"
44
ignorecase: true
55
level: error
6+
action:
7+
name: edit
8+
params:
9+
- remove
10+
- '.?!'
611
raw:
7-
- '(?<=[.;?!]\s)(?:[.-]?\s*)so\b'
12+
- '(?<=[.;?!]\s)(?:[.-]?\s*)so\b'

Openly/Spelling.yml

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,24 @@ extends: spelling
33
message: "Did you really mean '%s'?"
44
level: error
55
code: false
6+
action:
7+
name: suggest
8+
params:
9+
- spellings
610
ignore:
7-
- Openly/tech-terms/security.txt
8-
- Openly/tech-terms/blockchain.txt
9-
- Openly/tech-terms/devops.txt
10-
- Openly/tech-terms/general.txt
11-
- Openly/tech-terms/techwriting.txt
12-
- Openly/tech-terms/mobile.txt
13-
- Openly/tech-terms/java.txt
14-
- Openly/tech-terms/linux.txt
15-
- Openly/tech-terms/tech-slang.txt
16-
- Openly/tech-terms/csharp.txt
17-
- Openly/tech-terms/ddd.txt
18-
- Openly/tech-terms/business.txt
19-
- Openly/tech-terms/monitoring.txt
20-
- Openly/tech-terms/apis.txt
11+
- openly/tech-terms/security.txt
12+
- openly/tech-terms/blockchain.txt
13+
- openly/tech-terms/devops.txt
14+
- openly/tech-terms/general.txt
15+
- openly/tech-terms/techwriting.txt
16+
- openly/tech-terms/mobile.txt
17+
- openly/tech-terms/java.txt
18+
- openly/tech-terms/linux.txt
19+
- openly/tech-terms/tech-slang.txt
20+
- openly/tech-terms/csharp.txt
21+
- openly/tech-terms/ddd.txt
22+
- openly/tech-terms/business.txt
23+
- openly/tech-terms/monitoring.txt
24+
- openly/tech-terms/apis.txt
25+
- openly/tech-terms/geospatial.txt
26+
- openly/tech-terms/javascript.txt

0 commit comments

Comments
 (0)