From 365ceb9b3374a9863793ed5daf865b138f80f6cb Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sat, 18 Feb 2017 06:41:25 +0100 Subject: doc/conf.py: set version in case of failure. --- doc/conf.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc/conf.py') diff --git a/doc/conf.py b/doc/conf.py index 069843cb0..9173139a2 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -65,7 +65,7 @@ try: if _IsUnderGitControl: latestTagName = _LatestTagName()[1:] # remove prefix "v" versionParts = latestTagName.split("-")[0].split(".") - + version = ".".join(versionParts[:2]) #release = ".".join(versionParts[:3]) else: @@ -75,11 +75,11 @@ try: if line: version=line[0] except: + version = "latest" pass -#version = "X.Y" release = version # The full version, including alpha/beta/rc tags. - + # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. # -- cgit v1.2.3