Skip to content

Commit 22a822f

Browse files
authored
Enable 'stable' URLs (#206)
1 parent f68a020 commit 22a822f

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

antora-playbook.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ site:
44
url: https://docs.stackable.tech
55
robots: allow
66

7+
urls:
8+
# This replaces the component version in the URL of the latest stable version with 'stable'
9+
# i.e. /commons-operator/stable/index.html instead of /commons-operator/0.3/index.html
10+
latest_version_segment: stable
11+
712
content:
813
sources:
914
- url: https://github.com/stackabletech/documentation.git
@@ -70,6 +75,7 @@ content:
7075
branches: main
7176
tags: docs/*
7277
start_path: docs
78+
7379
ui:
7480
bundle:
7581
url: ./ui/build/ui-bundle.zip

local-antora-playbook.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ site:
55
start_page: home::index.adoc
66
robots: allow
77

8+
urls:
9+
# This replaces the component version in the URL of the latest stable version with 'stable'
10+
# i.e. /commons-operator/stable/index.html instead of /commons-operator/0.3/index.html
11+
latest_version_segment: stable
12+
813
content:
914
sources:
1015
- url: ./

supplemental-ui/partials/navbar.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Operators
66
<div class="drop-down-content">
77
<a class="drop-down-item" href="{{{ relativize "/home/operators/index.html" }}}">Overview</a>
8-
<a class="drop-down-item" href="{{{ relativize "/airflow/nightly/index.html" }}}">Apache Airflow</a>
8+
<a class="drop-down-item" href="{{{ relativize "/airflow/stable/index.html" }}}">Apache Airflow</a>
99
<a class="drop-down-item" href="{{{ relativize "/druid/nightly/index.html" }}}">Apache Druid</a>
1010
<a class="drop-down-item" href="{{{ relativize "/hbase/nightly/index.html" }}}">Apache HBase</a>
1111
<a class="drop-down-item" href="{{{ relativize "/hdfs/nightly/index.html" }}}">Apache Hadoop HDFS</a>
@@ -18,7 +18,7 @@
1818
<a class="drop-down-item" href="{{{ relativize "/trino/nightly/index.html" }}}">Trino</a>
1919
<a class="drop-down-item" href="{{{ relativize "/zookeeper/nightly/index.html" }}}">Apache ZooKeeper</a>
2020
<a class="drop-down-item" href="{{{ relativize "/opa/nightly/index.html" }}}">OpenPolicyAgent</a>
21-
<a class="drop-down-item" href="{{{ relativize "/commons-operator/nightly/index.html" }}}">Commons</a>
21+
<a class="drop-down-item" href="{{{ relativize "/commons-operator/stable/index.html" }}}">Commons</a>
2222
<a class="drop-down-item" href="{{{ relativize "/secret-operator/nightly/index.html" }}}">Secret</a>
2323
</div>
2424
</div>

0 commit comments

Comments
 (0)