summaryrefslogtreecommitdiffstats
path: root/doc/sphinx/conf.py
diff options
context:
space:
mode:
authorMichal Nowikowski <godfryd@isc.org>2019-07-19 08:11:34 +0200
committerMichal Nowikowski <godfryd@isc.org>2019-07-30 10:45:13 +0200
commita1692593be5da7c3999c368ed1cc11182fab4ffb (patch)
tree0c819800399bbd22108e9d9413ac3ec0a977130a /doc/sphinx/conf.py
parentfixed perfdhcp man (diff)
downloadkea-a1692593be5da7c3999c368ed1cc11182fab4ffb.tar.xz
kea-a1692593be5da7c3999c368ed1cc11182fab4ffb.zip
change determining kea version to be based on reading configure.ac
Diffstat (limited to 'doc/sphinx/conf.py')
-rw-r--r--doc/sphinx/conf.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/sphinx/conf.py b/doc/sphinx/conf.py
index ef52c59943..e0f36928ee 100644
--- a/doc/sphinx/conf.py
+++ b/doc/sphinx/conf.py
@@ -23,6 +23,19 @@ project = 'Kea'
copyright = '2019, Internet Systems Consortium'
author = 'Internet Systems Consortium'
+# get current kea version
+config_ac_path = '../../configure.ac'
+release = 'UNRELEASED'
+with open(config_ac_path) as f:
+ for line in f.readlines():
+ if line.startswith('AC_INIT(kea'):
+ parts = line.split(',')
+ release = parts[1]
+version = release
+print("=" * 30)
+print(release)
+print("=" * 30)
+
# -- General configuration ---------------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here.