Skip to content

Commit

Permalink
docs: Fix incorrect policy rule in tutorial (#1930)
Browse files Browse the repository at this point in the history
Fixes #1927

Signed-off-by: Charith Ellawala <charith@cerbos.dev>

Signed-off-by: Charith Ellawala <charith@cerbos.dev>
  • Loading branch information
charithe committed Jan 2, 2024
1 parent 73e1971 commit 4194f6e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/actions/antora-docs/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: 'antora-docs'
description: 'Build the docs using Antora'
runs:
using: 'docker'
image: 'docker://docker.io/antora/antora:3.1.2'
image: 'docker://docker.io/antora/antora:3.1.6'
args:
- 'antora'
- '--stacktrace'
Expand Down
4 changes: 2 additions & 2 deletions docs/antora-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ site:
content:
sources:
- url: ./../
branches: [HEAD, 'v*']
branches: [HEAD, 'v{0..9}*']
edit_url: 'https://github.com/cerbos/cerbos/tree/main/{path}'
start_path: docs
- url: https://github.com/cerbos/cloud-docs.git
Expand All @@ -25,7 +25,7 @@ asciidoc:
experimental: true
page-pagination: true
extensions:
- ./supplemental-ui/tabs-block/extension.js
- ./supplemental-ui/tabs-block/extension.js
ui:
bundle:
url: https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/master/raw/build/ui-bundle.zip?job=bundle-stable
Expand Down
4 changes: 2 additions & 2 deletions docs/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
SOURCE_DIR=$(cd "${SCRIPT_DIR}/.." && pwd)
WORKSPACE="/github/workspace"
ANTORA_VERSION=${ANTORA_VERSION:-"3.1.2"}
ANTORA_VERSION=${ANTORA_VERSION:-"3.1.6"}

rm -rf "${SCRIPT_DIR}/build"
docker run -v "$SOURCE_DIR":"${WORKSPACE}/cerbos":Z --rm -t "docker.io/antora/antora:${ANTORA_VERSION}" antora --stacktrace --clean "${WORKSPACE}/cerbos/docs/antora-playbook.yml"
Expand All @@ -18,7 +18,7 @@ UNAME=$(uname -s)
OPEN_CMD=xdg-open

if [[ "$UNAME" == "Darwin" ]]; then
OPEN_CMD=open
OPEN_CMD=open
fi

$OPEN_CMD "${SCRIPT_DIR}/build/cerbos/prerelease/index.html"
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ resourcePolicy:
- create
- read
- update
- delete
effect: EFFECT_ALLOW
roles:
- user
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ resourcePolicy:
- create
- read
- update
- delete
effect: EFFECT_ALLOW
roles:
- user
Expand Down
2 changes: 1 addition & 1 deletion hack/scripts/prep-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ update_version() {

set_branch() {
local BRANCH="$1"
sed -i -E "s#branches:.*#branches: [${BRANCH}, 'v*']#g" "${DOCS_DIR}/antora-playbook.yml"
sed -i -E "s#branches:.*#branches: [${BRANCH}, 'v{0..9}*']#g" "${DOCS_DIR}/antora-playbook.yml"
}

# Generate NOTICE.txt
Expand Down

0 comments on commit 4194f6e

Please sign in to comment.