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:
jo 2022-02-06 15:39:09 +01:00 committed by Jonas L
parent 2d644561bf
commit 75e3760f2e
9 changed files with 81 additions and 0 deletions

4
.github/vale/styles/.gitignore vendored Normal file
View file

@ -0,0 +1,4 @@
*
!Makefile
!LibreTime
!Vocab

View 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
View 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)

View file

View file