Remove version number in doc/conf.py.

Fixes #6222
This commit is contained in:
Gunnar Beutner 2014-05-17 06:58:43 +02:00
parent 1d635e8e62
commit 2e2f356459
1 changed files with 7 additions and 3 deletions

View File

@ -12,7 +12,7 @@
# 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
@ -44,14 +44,18 @@ master_doc = 'index'
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.