mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
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:
+5
-4
@@ -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 $*
|
||||
|
||||
Reference in New Issue
Block a user