diff --git a/conf.py b/conf.py index 1f943beea..0598ee49e 100644 --- a/conf.py +++ b/conf.py @@ -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| # The short X.Y version -version = "latest" +version = os.getenv("READTHEDOCS_VERSION", "latest") # The full version, including alpha/beta/rc tags -release = "latest" +release = version # Parse Sphinx tags passed from RTD via environment env_tags = os.getenv("SPHINX_TAGS")