mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
9daad4b718
* Revert "docs: Update hugo version"
This reverts commit 1891734c06.
Signed-off-by: Charlie Egan <charlie@styra.com>
* docs: add warning note about hugo upgrades
Signed-off-by: Charlie Egan <charlie@styra.com>
* docs: Revert hugo.IsServer Change
Signed-off-by: Charlie Egan <charlie@styra.com>
---------
Signed-off-by: Charlie Egan <charlie@styra.com>
34 lines
1.0 KiB
TOML
34 lines
1.0 KiB
TOML
[build]
|
|
publish = "docs/website/public"
|
|
command = "make netlify-prod WASM_ENABLED=0 CGO_ENABLED=0"
|
|
ignore = "./build/docs-build-needed.sh"
|
|
edge_functions = "docs/website/edge"
|
|
|
|
[[edge_functions]]
|
|
path = "/badge-endpoint/*"
|
|
function = "badge"
|
|
|
|
[build.environment]
|
|
# keep this version in sync with the version in .github/workflows/pull-request.yml
|
|
# Note, that upgrading Hugo is tricky as all versions of the OPA docs need to work
|
|
# with the Hugo version used.
|
|
# see: https://github.com/open-policy-agent/opa/pull/7034
|
|
HUGO_VERSION = "0.113.0"
|
|
|
|
[context.deploy-preview]
|
|
command = "make netlify-preview WASM_ENABLED=0 CGO_ENABLED=0"
|
|
|
|
[context.branch-deploy]
|
|
command = "make netlify-preview WASM_ENABLED=0 CGO_ENABLED=0"
|
|
|
|
[dev]
|
|
# "netlify dev" will serve the static content using netlify locally
|
|
# with all the redirects and other netlify specific rules in place.
|
|
publish = "docs/website/public"
|
|
framework = "#static"
|
|
|
|
# To run the netlify dev service with hugo dev server "live" behind
|
|
# it uncomment these lines:
|
|
# command = "make docs-hugo-serve"
|
|
# port = 1313
|