From d9ba262e51ac04a6d8c8afca9d09a56031444ede Mon Sep 17 00:00:00 2001 From: Freya Gustavsson Date: Tue, 14 Jul 2026 17:23:16 +0200 Subject: [PATCH] doc: Add cockpit-version from playbook We had set the cockpit-version attribute from the antora file which is used by playbooks. This makes the attribute become locked and can't be modified beforehand (that easily). Proper usage, for us at least, is to update the cockpit-version through an extension in cockpit-docs repo instead. This is only really a hack we have to do due to publishing through tags instead of branches. Signed-off-by: Freya Gustavsson --- antora-playbook.yml | 3 +++ doc/antora.yml | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/antora-playbook.yml b/antora-playbook.yml index bebed22aca..bb57f94203 100644 --- a/antora-playbook.yml +++ b/antora-playbook.yml @@ -13,3 +13,6 @@ ui: snapshot: true output: dir: ./doc/output/antora +asciidoc: + attributes: + cockpit-version: latest+git diff --git a/doc/antora.yml b/doc/antora.yml index c7c67ed683..75739f5099 100644 --- a/doc/antora.yml +++ b/doc/antora.yml @@ -2,10 +2,6 @@ name: cockpit-guide version: true title: Cockpit start_page: guide:index.adoc -asciidoc: - attributes: - # Set by CLI option --attribute=cockpit-version=123 - cockpit-version: latest nav: - modules/guide/nav.adoc - modules/man/nav.adoc