diff options
author | Ian Lewis <ianmlewis@gmail.com> | 2019-10-24 00:21:45 -0400 |
---|---|---|
committer | Ian Lewis <ianmlewis@gmail.com> | 2019-10-24 02:35:07 -0400 |
commit | a7803353f03528042f15ade30462b88cb8b2ddc6 (patch) | |
tree | 55c458e60a77efb17ef2af9cbb79f7f38b33296a /Makefile | |
parent | cf240fdf731ff631a37e1a35e6b4e4f2c4203a2d (diff) |
Added lint-md linter for markdown
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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 |