website: Replace homepage with new version

This integrates the new https://openpolicyagent.org/ home page
contents into the site build.

Signed-off-by: Patrick East <east.patrick@gmail.com>
This commit is contained in:
Patrick East
2019-11-13 15:27:00 -08:00
parent e7387f6279
commit 418d7334ea
99 changed files with 29873 additions and 1366 deletions
+5 -4
View File
@@ -1,3 +1,5 @@
DEPLOY_PRIME_URL ?= "http://localhost:8888"
.PHONY: clean
clean:
rm -rf ${CURDIR}/website/data/releases.yaml
@@ -49,19 +51,18 @@ hugo-production-build:
production-build: clean generate hugo-production-build live-blocks-inject
.PHONY: preview-build
preview-build: clean generate
preview-build:
hugo \
--source $(CURDIR)/website \
--contentDir generated \
--baseURL $(DEPLOY_PRIME_URL) \
--buildDrafts \
--buildFuture \
--ignoreCache \
--minify
--ignoreCache
make live-blocks-inject
# The live-blocks-% pattern target will shim to the
# npm scripts in ./website/scripts/live-blocks
.PHONY: live-blocks-%
live-blocks-%:
cd $(CURDIR)/website/scripts/live-blocks && npm run --silent $*
cd $(CURDIR)/website/scripts/live-blocks && npm run --silent $*