conf.py: Get version from RTD when available

(cherry picked from commit 605222c094)
This commit is contained in:
Rémi Verschelde
2020-03-31 10:05:21 +02:00
parent 08168d3afd
commit 2ccf1ab409
+2 -2
View File
@@ -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'