ci: setup docs prose linting with vale
- only deploy if prose lint passes - rework styles download - add vale anotations matcher - set MinAlertLevel to warning - add website pages to the prose linter - do not fail on docs linting
This commit is contained in:
parent
2d644561bf
commit
75e3760f2e
9 changed files with 81 additions and 0 deletions
4
.github/vale/styles/.gitignore
vendored
Normal file
4
.github/vale/styles/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
*
|
||||
!Makefile
|
||||
!LibreTime
|
||||
!Vocab
|
6
.github/vale/styles/LibreTime/NameCasing.yml
vendored
Normal file
6
.github/vale/styles/LibreTime/NameCasing.yml
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
extends: substitution
|
||||
message: Consider using '%s'
|
||||
level: warning
|
||||
ignorecase: false
|
||||
swap:
|
||||
Libretime: LibreTime
|
18
.github/vale/styles/Makefile
vendored
Normal file
18
.github/vale/styles/Makefile
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
.PHONY: all
|
||||
|
||||
SHELL = bash
|
||||
|
||||
%.zip:
|
||||
wget -q $(URL) -O $@
|
||||
|
||||
Google.zip: URL=https://github.com/errata-ai/Google/releases/latest/download/Google.zip
|
||||
Microsoft.zip: URL=https://github.com/errata-ai/Microsoft/releases/latest/download/Microsoft.zip
|
||||
|
||||
%: %.zip
|
||||
unzip -qq $<
|
||||
touch $@
|
||||
|
||||
STYLES := ./Microsoft ./Google
|
||||
STYLES_ZIP := $(addsuffix .zip,$(STYLES))
|
||||
|
||||
all: $(STYLES)
|
0
.github/vale/styles/Vocab/Docs/accept.txt
vendored
Normal file
0
.github/vale/styles/Vocab/Docs/accept.txt
vendored
Normal file
0
.github/vale/styles/Vocab/Docs/reject.txt
vendored
Normal file
0
.github/vale/styles/Vocab/Docs/reject.txt
vendored
Normal file
Loading…
Add table
Add a link
Reference in a new issue