From 605222c0943fce1de0f7fd3407ef6434496df1aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Tue, 31 Mar 2020 10:01:32 +0200 Subject: [PATCH] conf.py: Get version from RTD when available --- conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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")