Skip to content

Commit

Permalink
use dev as version in docs (#1204)
Browse files Browse the repository at this point in the history
  • Loading branch information
OriolAbril committed May 23, 2020
1 parent f1db2c4 commit f5bf1f4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit f5bf1f4

Please sign in to comment.