mirror of https://github.com/Icinga/icinga2.git
parent
1d635e8e62
commit
2e2f356459
10
doc/conf.py
10
doc/conf.py
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue