# All configuration values have a default; values that are commented out
# serve to show the default.
-import sys, os
+import sys, os, re
# 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
project = 'Icinga 2'
copyright = '2014, Icinga Development Team <info@icinga.org>'
+_specfp = open('../icinga2.spec')
+_version = re.search("^Version:\\s+(.*)$", _specfp.read(), re.MULTILINE).group(1)
+_specfp.close()
+
# 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.
-version = '0.0.11'
+version = _version
# The full version, including alpha/beta/rc tags.
-release = '0.0.10'
+release = _version
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.