forked from etcd-io/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (18 loc) · 785 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
DOCKER_IMG = klakegg/hugo:ext-alpine
DRAFT_ARGS = --buildDrafts --buildFuture --buildExpired
production-build:
npm run production-build
docker-serve:
docker run --rm -it -v $(PWD):/src -p 1313:1313 $(DOCKER_IMG) server $(DRAFT_ARGS)
link-checker-setup:
# https://wjdp.uk/work/htmltest/
curl https://htmltest.wjdp.uk | bash
run-link-checker:
bin/htmltest
check-links: production-build link-checker-setup run-link-checker
ci-check-links: link-checker-setup run-link-checker
# Adding additional link checks based on https://github.com/grpc/grpc.io/blob/main/Makefile
check-internal-links: production-build link-checker-setup run-link-checker
bin/htmltest --conf .htmltest.yml
check-all-links: production-build link-checker-setup
bin/htmltest --conf .htmltest.external.yml