1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
From: Simon McVittie <smcv@debian.org>
Date: Sat, 30 Apr 2016 16:37:36 +0100
Subject: Automatically use current version number in the documentation
Signed-off-by: Simon McVittie <smcv@debian.org>
---
doc/conf.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/doc/conf.py b/doc/conf.py
index e3e13cd..177f7bf 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -16,7 +16,8 @@ import sys, os
# 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
# documentation root, use os.path.abspath to make it absolute, like shown here.
-#sys.path.insert(0, os.path.abspath('.'))
+sys.path.insert(0, os.path.abspath('..'))
+import mpd
# -- General configuration -----------------------------------------------------
@@ -48,9 +49,9 @@ copyright = u'2013, Jörg Thalheim'
# built documents.
#
# The short X.Y version.
-version = '0.5.1'
+version = ".".join(map(str, mpd.VERSION))
# The full version, including alpha/beta/rc tags.
-release = '0.5.1'
+release = version
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
|