Files
releases/docs/Makefile
T
Torin Sandall bb5e30e934 Move the gh-pages target into separate Makefile
The VERSION ifdef guard was causing the Netlify build to fail. Split
the gh-pages build into a separate Makefile for now.

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2019-04-08 17:12:45 -07:00

46 lines
695 B
Makefile

clean:
rm -rf public
load-docs:
scripts/load-docs.sh
setup:
npm install
serve:
ENV=local hugo server \
--buildDrafts \
--buildFuture
docker-serve:
docker run --rm -it \
-v $(PWD):/src \
-p 1313:1313 \
-e ENV=local \
klakegg/hugo:0.53-ext server \
--buildDrafts \
--buildFuture
production-build: clean load-docs
hugo \
--contentDir generated \
--ignoreCache \
--minify
preview-build: clean
ENV=local hugo \
--baseURL $(DEPLOY_PRIME_URL) \
--buildDrafts \
--buildFuture \
--ignoreCache \
--minify
linkcheck-build:
hugo \
--baseURL "/" \
--buildDrafts \
--buildFuture
linkcheck: clean linkcheck-build
htmlproofer ./public --empty-alt-ignore