make doc when .git is not there
accept failure of secop.version.get_version() Change-Id: Ia689bd4f56b848bc354c0d68826a3174f0746a97
This commit is contained in:
parent
c70b61e4e5
commit
6c325460f7
@ -66,10 +66,14 @@ author = 'Enrico Faulhaber, Markus Zolliker'
|
|||||||
# |version| and |release|, also used in various other places throughout the
|
# |version| and |release|, also used in various other places throughout the
|
||||||
# built documents.
|
# built documents.
|
||||||
#
|
#
|
||||||
# The full version, including alpha/beta/rc tags.
|
try:
|
||||||
release = get_version()
|
# The full version, including alpha/beta/rc tags.
|
||||||
# The short X.Y version.
|
release = get_version()
|
||||||
version = release.split('-')[0]
|
# The short X.Y version.
|
||||||
|
version = release.split('-')[0]
|
||||||
|
except ValueError as e:
|
||||||
|
print('WARNING: %s' % e)
|
||||||
|
|
||||||
|
|
||||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||||
# for a list of supported languages.
|
# for a list of supported languages.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user