mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 18:29:11 +00:00
conf.py: Get version from RTD when available
(cherry picked from commit 605222c094)
This commit is contained in:
@@ -28,9 +28,9 @@ author = 'Juan Linietsky, Ariel Manzur and the Godot community'
|
||||
|
||||
# Version info for the project, acts as replacement for |version| and |release|
|
||||
# The short X.Y version
|
||||
version = '2.1'
|
||||
version = os.getenv("READTHEDOCS_VERSION", "2.1")
|
||||
# The full version, including alpha/beta/rc tags
|
||||
release = '2.1'
|
||||
release = version
|
||||
|
||||
language = 'en'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user