From dc9a706f301bbcc772f5afe175c21ad578cd19bc Mon Sep 17 00:00:00 2001 From: Lars Francke Date: Fri, 10 Jul 2026 22:56:40 +0200 Subject: [PATCH] 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. --- antora.yml | 3 +++ modules/ROOT/partials/operator-link-bar.adoc | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 modules/ROOT/partials/operator-link-bar.adoc diff --git a/antora.yml b/antora.yml index b862577d9..1263a61c3 100644 --- a/antora.yml +++ b/antora.yml @@ -29,6 +29,9 @@ asciidoc: end-of-life: false # use the attributes below to link to the CRD docs crd-docs-base-url: "https://crds.stackable.tech" + # used by the operator index pages, see the + # operator-link-bar.adoc partial in the ROOT module + hub-base-url: "https://hub.stackable.tech" crd-docs: "{crd-docs-base-url}/{crd-docs-version}" # to make attributes accessible to the UI template, they need to # be prefixed with "page-" diff --git a/modules/ROOT/partials/operator-link-bar.adoc b/modules/ROOT/partials/operator-link-bar.adoc new file mode 100644 index 000000000..ea16a26bd --- /dev/null +++ b/modules/ROOT/partials/operator-link-bar.adoc @@ -0,0 +1,16 @@ +// Shared link bar for operator index pages. +// +// Usage in an operator's index.adoc: +// +// :github: https://github.com/stackabletech/airflow-operator/ +// :crd: {crd-docs-base-url}/airflow-operator/{crd-docs-version}/ +// :hub: {hub-base-url}/components/airflow +// +// include::ROOT:partial$operator-link-bar.adoc[] +// +// Every entry is optional: pages that don't define an attribute don't render +// its entry (e.g. the internal operators have no Hub component page). +[.link-bar] +ifdef::github[* {github}[GitHub {external-link-icon}^]] +ifdef::crd[* {crd}[CRD documentation {external-link-icon}^]] +ifdef::hub[* {hub}[Stackable Hub {external-link-icon}^]]