From 47cfbb717dd55852714b7bae6dee6eb877f90d3d Mon Sep 17 00:00:00 2001 From: skjnldsv Date: Thu, 2 Jul 2026 16:30:27 +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 051c569627a..416dce0ba0a 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