aboutsummaryrefslogtreecommitdiffstats
path: root/doc/conf.py
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-02-18 06:41:25 +0100
committerTristan Gingold <tgingold@free.fr>2017-02-18 06:41:25 +0100
commit365ceb9b3374a9863793ed5daf865b138f80f6cb (patch)
tree0d992b6ecb693b2994085662efba115acd2542a7 /doc/conf.py
parent656eca3dc94e54de94520cfb22079e6aafb4e4eb (diff)
downloadghdl-365ceb9b3374a9863793ed5daf865b138f80f6cb.tar.gz
ghdl-365ceb9b3374a9863793ed5daf865b138f80f6cb.tar.bz2
ghdl-365ceb9b3374a9863793ed5daf865b138f80f6cb.zip
doc/conf.py: set version in case of failure.
Diffstat (limited to 'doc/conf.py')
-rw-r--r--doc/conf.py6
1 files changed, 3 insertions, 3 deletions
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.
#