chore: replace custom makefile with vale packages

This commit is contained in:
jo 2022-09-22 12:51:47 +02:00 committed by Kyle Robbertze
parent c354fea55d
commit 31e09401bb
4 changed files with 6 additions and 20 deletions

View File

@ -1,18 +0,0 @@
.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

@ -48,5 +48,5 @@ jobs:
- name: Run Vale - name: Run Vale
run: | run: |
make -C .github/vale/styles vale sync
vale --output line docs website/src/pages || true vale --output line docs website/src/pages || true

View File

@ -1,6 +1,10 @@
StylesPath = .github/vale/styles StylesPath = .github/vale/styles
MinAlertLevel = warning MinAlertLevel = warning
Packages = \
https://github.com/errata-ai/Google/releases/latest/download/Google.zip, \
https://github.com/errata-ai/Microsoft/releases/latest/download/Microsoft.zip
Vocab = Docs Vocab = Docs
[*.md] [*.md]

View File

@ -43,5 +43,5 @@ clean:
git clean -xdf */ git clean -xdf */
docs-lint: docs-lint:
$(MAKE) -C .github/vale/styles vale sync
vale docs website/src/pages vale docs website/src/pages