Merge "docs: show cloudbase-init version"

This commit is contained in:
Zuul
2019-11-15 13:34:47 +00:00
committed by Gerrit Code Review

View File

@@ -16,6 +16,8 @@ import sys
import os
import shlex
from cloudbaseinit import version as cbs_version
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
@@ -60,9 +62,10 @@ author = u'Cloudbase Solutions Srl'
# built documents.
#
# The short X.Y version.
version = '1.0'
version = cbs_version.get_canonical_version()
# The full version, including alpha/beta/rc tags.
release = '1.0'
release = version
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.