From a7803353f03528042f15ade30462b88cb8b2ddc6 Mon Sep 17 00:00:00 2001 From: Ian Lewis Date: Thu, 24 Oct 2019 00:21:45 -0400 Subject: Added lint-md linter for markdown --- Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 818a2de5e..35b66a803 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,7 @@ GEN_SOURCE = $(wildcard cmd/generate-syscall-docs/*) APP_SOURCE = $(wildcard cmd/gvisor-website/*) # Target Go files, example: public/main.go, public/foo/bar.go. APP_TARGET = $(patsubst cmd/gvisor-website/%,public/%,$(APP_SOURCE)) +CONTENT_SOURCE = $(wildcard content/*) default: website .PHONY: default @@ -63,10 +64,17 @@ compatibility-docs: bin/generate-syscall-docs upstream/gvisor/bazel-bin/runsc/li ./upstream/gvisor/bazel-bin/runsc/linux_amd64_pure_stripped/runsc help syscalls -o json | ./bin/generate-syscall-docs -out ./content/docs/user_guide/compatibility/ .PHONY: compatibility-docs -check: website - docker run -v $(shell pwd)/public:/public gcr.io/gvisor-website/html-proofer:3.10.2 htmlproofer --disable-external --check-html public/static +check: check-markdown check-html .PHONY: check +check-markdown: node_modules $(CONTENT_SOURCE) compatibility-docs + npm run lint-md +.PHONY: check-markdown + +check-html: website + docker run -v $(shell pwd)/public:/public gcr.io/gvisor-website/html-proofer:3.10.2 htmlproofer --disable-external --check-html public/static +.PHONY: check-html + # Run a local content development server. Redirects will not be supported. devserver: all-upstream compatibility-docs $(HUGO) server -FD --port 8080 -- cgit v1.2.3