Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(docs): Configure Cloud docs build #1712

Merged
merged 3 commits into from
Jul 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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