Skip to content

Commit b297b83

Browse files
committed
Dynamically retrieve version information for generated docs
Signed-off-by: Joffrey F <[email protected]>
1 parent e15db4c commit b297b83

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/conf.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,12 @@
6969
# |version| and |release|, also used in various other places throughout the
7070
# built documents.
7171
#
72-
# The short X.Y version.
73-
version = u'2.0'
72+
with open('../docker/version.py', 'r') as vfile:
73+
exec(vfile.read())
7474
# The full version, including alpha/beta/rc tags.
75-
release = u'2.0'
75+
release = version
76+
# The short X.Y version.
77+
version = '{}.{}'.format(version_info[0], version_info[1])
7678

7779
# The language for content autogenerated by Sphinx. Refer to documentation
7880
# for a list of supported languages.

0 commit comments

Comments
 (0)