Skip to content

Commit dc9a706

Browse files
committed
feat: Shared link bar partial for operator index pages
Operator index pages define their links as page attributes and include ROOT:partial$operator-link-bar.adoc; the bar itself is maintained here instead of copy-pasted in 13 repos. Adds an optional Stackable Hub entry linking to the operator's component page on https://hub.stackable.tech. The Feature Tracker entry is dropped entirely: the operator repos remove their :feature-tracker: attributes as they adopt the partial.
1 parent 4cfc9c7 commit dc9a706

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

antora.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ asciidoc:
2929
end-of-life: false
3030
# use the attributes below to link to the CRD docs
3131
crd-docs-base-url: "https://crds.stackable.tech"
32+
# used by the operator index pages, see the
33+
# operator-link-bar.adoc partial in the ROOT module
34+
hub-base-url: "https://hub.stackable.tech"
3235
crd-docs: "{crd-docs-base-url}/{crd-docs-version}"
3336
# to make attributes accessible to the UI template, they need to
3437
# be prefixed with "page-"
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Shared link bar for operator index pages.
2+
//
3+
// Usage in an operator's index.adoc:
4+
//
5+
// :github: https://github.com/stackabletech/airflow-operator/
6+
// :crd: {crd-docs-base-url}/airflow-operator/{crd-docs-version}/
7+
// :hub: {hub-base-url}/components/airflow
8+
//
9+
// include::ROOT:partial$operator-link-bar.adoc[]
10+
//
11+
// Every entry is optional: pages that don't define an attribute don't render
12+
// its entry (e.g. the internal operators have no Hub component page).
13+
[.link-bar]
14+
ifdef::github[* {github}[GitHub {external-link-icon}^]]
15+
ifdef::crd[* {crd}[CRD documentation {external-link-icon}^]]
16+
ifdef::hub[* {hub}[Stackable Hub {external-link-icon}^]]

0 commit comments

Comments
 (0)