docs: Get docs version from mopidy.get_version()

This commit is contained in:
Stein Magnus Jodal 2010-02-23 00:06:56 +01:00
parent a7850dbabe
commit be647625b1

View File

@ -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.