mirror of https://github.com/docker/docker-py.git
Dynamically retrieve version information for generated docs
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
e15db4cb20
commit
b297b837df
|
@ -69,10 +69,12 @@ author = u'Docker Inc'
|
||||||
# |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 short X.Y version.
|
with open('../docker/version.py', 'r') as vfile:
|
||||||
version = u'2.0'
|
exec(vfile.read())
|
||||||
# The full version, including alpha/beta/rc tags.
|
# The full version, including alpha/beta/rc tags.
|
||||||
release = u'2.0'
|
release = version
|
||||||
|
# The short X.Y version.
|
||||||
|
version = '{}.{}'.format(version_info[0], version_info[1])
|
||||||
|
|
||||||
# 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…
Reference in New Issue