From be647625b17694aaf4deb23b49818a1aa7dfc357 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Tue, 23 Feb 2010 00:06:56 +0100 Subject: [PATCH] docs: Get docs version from mopidy.get_version() --- docs/conf.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index bb403459..5f6b7ef2 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -19,6 +19,8 @@ import sys, os sys.path.append(os.path.abspath(os.path.dirname(__file__))) sys.path.append(os.path.abspath(os.path.dirname(__file__) + '/../')) +import mopidy + # -- General configuration ----------------------------------------------------- # Add any Sphinx extension module names here, as strings. They can be extensions @@ -45,10 +47,11 @@ copyright = u'2010, Stein Magnus Jodal' # |version| and |release|, also used in various other places throughout the # built documents. # -# The short X.Y version. -version = '0.1' # The full version, including alpha/beta/rc tags. -release = '0.1.dev' +release = mopidy.get_version() +# The short X.Y version. +version = '.'.join(release.split('.')[:2]) + # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.