forked from grpc/grpc.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (31 loc) · 886 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
HUGO_VERSION = 0.70.0
DOCKER_IMG := klakegg/hugo:$(HUGO_VERSION)-ext
SERVE_CMD = server --buildDrafts --buildFuture --disableFastRender --ignoreCache
clean:
rm -rf public resources
serve:
@./check_hugo.sh
hugo server \
--buildDrafts \
--buildFuture \
--disableFastRender
docker-serve:
docker run --rm -it -v $(CURDIR):/src -p 1313:1313 $(DOCKER_IMG) $(SERVE_CMD)
production-build: clean
@./check_hugo.sh
hugo \
--minify
preview-build: clean
@./check_hugo.sh
hugo \
--baseURL $(DEPLOY_PRIME_URL) \
--buildDrafts \
--buildFuture \
--minify
link-checker-setup:
curl https://raw.githubusercontent.com/wjdp/htmltest/master/godownloader.sh | bash
run-link-checker:
bin/htmltest
check-internal-links: production-build link-checker-setup run-link-checker
check-all-links: production-build link-checker-setup
bin/htmltest --conf .htmltest.external.yml