aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-03-23 12:33:03 +0000
committerGerrit Code Review <review@openstack.org>2016-03-23 12:33:03 +0000
commita3a43e7b926f716daed24156d3db64ee5f9846e3 (patch)
treeb5a5db59b2420deda9397998b5f2f205cea6094a /doc
parent91599cf646ebb844c815aae9113571a62d5f3cbb (diff)
parent31634c4df4cff1a8fb0eae46404114c370cb4102 (diff)
downloadkolla-a3a43e7b926f716daed24156d3db64ee5f9846e3.tar.gz
kolla-a3a43e7b926f716daed24156d3db64ee5f9846e3.zip
Merge "Add PBR generation of version information"
Diffstat (limited to 'doc')
-rw-r--r--doc/conf.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/conf.py b/doc/conf.py
index a0d74bd97..da18af32c 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -39,6 +39,17 @@ master_doc = 'index'
project = u'kolla'
copyright = u'2013, OpenStack Foundation'
+# The version info for the project you're documenting, acts as replacement for
+# |version| and |release|, also used in various other places throughout the
+# built documents.
+#
+# The short X.Y version.
+from kolla.version import version_info as kolla_version
+# The full version, including alpha/beta/rc tags.
+release = kolla_version.version_string_with_vcs()
+# The short X.Y version.
+version = kolla_version.canonical_version_string()
+
# If true, '()' will be appended to :func: etc. cross-reference text.
add_function_parentheses = True