diff options
author | Tristan Gingold <tgingold@free.fr> | 2017-02-18 06:41:25 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2017-02-18 06:41:25 +0100 |
commit | 365ceb9b3374a9863793ed5daf865b138f80f6cb (patch) | |
tree | 0d992b6ecb693b2994085662efba115acd2542a7 /doc | |
parent | 656eca3dc94e54de94520cfb22079e6aafb4e4eb (diff) | |
download | ghdl-365ceb9b3374a9863793ed5daf865b138f80f6cb.tar.gz ghdl-365ceb9b3374a9863793ed5daf865b138f80f6cb.tar.bz2 ghdl-365ceb9b3374a9863793ed5daf865b138f80f6cb.zip |
doc/conf.py: set version in case of failure.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/conf.py | 6 |
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. # |