From a119a2ebb63881a4cd6ed0395a4331508e2c434c Mon Sep 17 00:00:00 2001 From: skjnldsv Date: Thu, 2 Jul 2026 16:31:29 +0200 Subject: [PATCH] docs: honour DOCS_DISPLAY_VERSION for display version The consolidated deploy workflow builds every version in one run and cannot set the reserved GITHUB_* refs per matrix leg, so it injects the version via DOCS_DISPLAY_VERSION (as master conf.py already reads). Honour it here too; falls back to the existing GITHUB_REF/branch detection when unset. Assisted-by: ClaudeCode:claude-opus-4-8 Signed-off-by: skjnldsv --- conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf.py b/conf.py index 6c5a2cb6dc1..d07525fc2f6 100644 --- a/conf.py +++ b/conf.py @@ -74,7 +74,7 @@ _re.match(r'^stable(\d+)$', _base) or _re.match(r'^refs/heads/stable(\d+)$', _ref) ) -display_version = ( +display_version = os.environ.get('DOCS_DISPLAY_VERSION') or ( release if release != 'latest' # PDF/ePub builds (DOCS_RELEASE set) else _stable_ver.group(1) if _stable_ver # stableNN branches and PRs targeting them else str(version_stable + 1) # master