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
This commit is contained in:
@@ -37,9 +37,9 @@ author = "Juan Linietsky, Ariel Manzur and the Godot community"
|
|||||||
|
|
||||||
# Version info for the project, acts as replacement for |version| and |release|
|
# Version info for the project, acts as replacement for |version| and |release|
|
||||||
# The short X.Y version
|
# The short X.Y version
|
||||||
version = "latest"
|
version = os.getenv("READTHEDOCS_VERSION", "latest")
|
||||||
# The full version, including alpha/beta/rc tags
|
# The full version, including alpha/beta/rc tags
|
||||||
release = "latest"
|
release = version
|
||||||
|
|
||||||
# Parse Sphinx tags passed from RTD via environment
|
# Parse Sphinx tags passed from RTD via environment
|
||||||
env_tags = os.getenv("SPHINX_TAGS")
|
env_tags = os.getenv("SPHINX_TAGS")
|
||||||
|
|||||||
Reference in New Issue
Block a user