mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
a7fa31d56e
Fixes https://github.com/open-policy-agent/opa/issues/6269 This fixes the issue by using the builtin_metadata.json file from each version, the assumption that docs content that depends on the data doesn't exist before this file was introduced. I have removed the 'available' check since we haven't consistently updated the file in the past, e.g. * https://github.com/open-policy-agent/opa/blob/v0.41.0/builtin_metadata.json#L12710 * https://github.com/open-policy-agent/opa/blob/v0.57.0/builtin_metadata.json#L563 These examples show that sometimes the current version is included, other times the file is updated after the release. Video showing the correct content being displayed for various versions: https://github.com/open-policy-agent/opa/assets/1774239/abf1af7d-9c59-4223-a019-c73d7550b322 To locally test this: ``` git clean -dfx cd docs make generate hugo-production-build hugo server --source website --contentDir generated --ignoreCache --minify ``` Signed-off-by: Charlie Egan <charlie@styra.com>
41 lines
450 B
Plaintext
41 lines
450 B
Plaintext
# development environment
|
|
.DS_Store
|
|
.vscode
|
|
.idea
|
|
*~
|
|
*.swp
|
|
|
|
# build artifacts
|
|
coverage.txt
|
|
opa_*
|
|
.Dockerfile_*
|
|
_release
|
|
wasm/_obj
|
|
_test
|
|
!*_test.go
|
|
site.tar.gz
|
|
policy.wasm
|
|
.npm
|
|
.gitbook
|
|
.go
|
|
release-notes.md
|
|
bundle.tar.gz
|
|
|
|
# ci artifacts
|
|
fuzzit
|
|
ast-fuzzer
|
|
ast-fuzzer.a
|
|
|
|
# runtime artifacts
|
|
policies
|
|
|
|
# Local Netlify folder
|
|
.netlify
|
|
|
|
# man pages
|
|
man
|
|
|
|
# generated when running local website build
|
|
docs/website/.hugo_build.lock
|
|
docs/website/data/versions
|