From f5bf1f422f82d7e98d62503e00ec12cb86a6b364 Mon Sep 17 00:00:00 2001 From: Oriol Abril Date: Sat, 23 May 2020 20:47:26 +0200 Subject: [PATCH] use dev as version in docs (#1204) --- doc/conf.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index 25a2e645b4..690c33e374 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -19,6 +19,7 @@ # import os import sys +import re sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from recommonmark.parser import CommonMarkParser @@ -98,9 +99,12 @@ def visit_document(self, node): # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. -# -# The short X.Y version. -version = arviz.__version__ +branch_name = os.environ.get("BUILD_SOURCEBRANCHNAME", "") +if branch_name == "master": + version = "dev" +else: + # The short X.Y version. + version = arviz.__version__ # The full version, including alpha/beta/rc tags. release = version