Skip to content

Commit

Permalink
chore(docs): Configure Cloud docs build (#1712)
Browse files Browse the repository at this point in the history
* chore(docs): Configure Cloud docs build

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

* Remove ref

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

* Revert "Remove ref"

This reverts commit 58b6842.

---------

Signed-off-by: Charith Ellawala <charith@cerbos.dev>
  • Loading branch information
charithe committed Jul 25, 2023
1 parent 91a0d48 commit 7e2ef07
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/antora-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ content:
branches: [HEAD, 'v*']
edit_url: 'https://github.com/cerbos/cerbos/tree/{refname}/{path}'
start_path: docs
- url: https://github.com/cerbos/cloud-docs.git
urls:
redirect_facility: netlify
latest_version_segment: latest
Expand Down
2 changes: 1 addition & 1 deletion docs/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ WORKSPACE="/github/workspace"
ANTORA_VERSION=${ANTORA_VERSION:-"3.1.2"}

rm -rf "${SCRIPT_DIR}/build"
docker run -v "$SOURCE_DIR":"$WORKSPACE":Z --rm -t "docker.io/antora/antora:${ANTORA_VERSION}" antora --stacktrace --clean "${WORKSPACE}/docs/antora-playbook.yml"
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"

#VERSION=$(awk '/^version:/ {print $2}' "${SCRIPT_DIR}/antora.yml" | tr -d '"')

Expand Down
5 changes: 5 additions & 0 deletions docs/supplemental-ui/partials/header-content.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,13 @@
<div class="navbar-link">Projects</div>
<div class="navbar-dropdown">
<div class="navbar-item"><strong>Cerbos</strong></div>
<a class="navbar-item" href="https://docs.cerbos.dev/cerbos/latest/index.html">Documentation</a>
<a class="navbar-item" href="https://github.com/cerbos/cerbos">Code</a>
<a class="navbar-item" href="https://github.com/cerbos/cerbos/issues">Issue Tracker</a>
<a class="navbar-item" href="https://github.com/cerbos/cerbos/discussions">Discussion Forum</a>
<div class="navbar-item"><strong>Cerbos Cloud</strong></div>
<a class="navbar-item" href="https://cerbos.cloud">Sign up</a>
<a class="navbar-item" href="https://docs.cerbos.dev/cerbos-cloud/latest/index.html">Documentation</a>
</div>
</div>

Expand All @@ -40,6 +44,7 @@
</div>

<a class="navbar-item" href="https://cerbos.dev">Cerbos website</a>
<a class="navbar-item" href="https://cerbos.cloud">Cerbos Cloud</a>

</div>
</div>
Expand Down

0 comments on commit 7e2ef07

Please sign in to comment.