mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
1e4f120beb
This PR makes it possible to browse integrations, organizations and related softwares. Previously, these details were only available as modals on the ecosystem page. There are also some changes to the policy enforcement on the docs content, the validation rules are much the same but have been updated to reflect that the content is stored in a new place. I have used some generated JSON in Hugo rather than using GitHub api requests to validate the files since it's A) faster, B) I think more simple, and C) easier to get Hugo to process the markdown frontmatter. Much of the hackery in this PR (Hugo function partials to look up sets of files and get the data from them) is due to the fact that we can't use Hugo's native sections feature. All of our content is nested under docs, this means that all our pages are in the same section so custom lookups have been implemented as function partials instead to work around this. Signed-off-by: Charlie Egan <charlie@styra.com>
31 lines
887 B
TOML
31 lines
887 B
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
|
|
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
|