mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
bb5e30e934
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>
46 lines
695 B
Makefile
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
|