-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (29 loc) · 1.08 KB
/
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
GH_PAGE_IMAGE=adoyle/gh-pages:v228
.PHONY: check-links
check-links:
# https://github.com/tcort/markdown-link-check
ag --md -l | xargs -n1 markdown-link-check
.PHONY: serve
serve:
echo "You should press 'ctrl-c' when \"Auto-regeneration: enabled for '/src/site'\" appeared."
docker run -it --rm -p 4000:4000 -v "${PWD}:/src/site" ${GH_PAGE_IMAGE}
build:
docker run -it --rm -v "${PWD}:/src/site" ${GH_PAGE_IMAGE} \
build --verbose
build-gh:
docker run -it --rm -v "${PWD}:/src/site" --entrypoint github-pages ${GH_PAGE_IMAGE} \
build --verbose
http:
docker run --rm -it -p 4000:80 -v "${PWD}/_site:/usr/share/caddy:ro" caddy:2.6.3-alpine
debug-gh-pages:
docker run -it --rm -p 4000:4000 -v "${PWD}:/src/site" \
--entrypoint ash \
${GH_PAGE_IMAGE}
# NOTE: Do not use `make build-gh-pages-image`.
# Use `make image_alpine_cn` in https://github.com/adoyle-h/pages-gem/blob/adoyle/Makefile
#
# build-gh-pages-image:
# docker build -f ./.gh-pages-env/Dockerfile -t ${GH_PAGE_IMAGE} \
# --build-arg 'APK_PROXY=mirrors.ustc.edu.cn' \
# --build-arg 'GEM_PROXY=gems.ruby-china.com' \
# .