Skip to content

Commit a7be8da

Browse files
Copilotskjnldsv
authored andcommitted
fix: use actual release version in PDF output instead of latest
Agent-Logs-Url: https://github.com/skjnldsv/documentation/sessions/e2f6fe71-2793-4c59-80fb-073d6f45204e Co-authored-by: skjnldsv <14975046+skjnldsv@users.noreply.github.com>
1 parent 88e712a commit a7be8da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
# The short X.Y version.
2121
version = 'latest'
2222
# The full version, including alpha/beta/rc tags.
23-
release = version
23+
# Can be overridden via DOCS_RELEASE env var (used for PDF builds to show the actual version number)
24+
release = os.environ.get('DOCS_RELEASE', version)
2425

2526
# RTD theme options
2627
html_theme_options = {

0 commit comments

Comments
 (0)