docs: Get docs version from mopidy.get_version()
This commit is contained in:
parent
a7850dbabe
commit
be647625b1
@ -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__)))
|
||||||
sys.path.append(os.path.abspath(os.path.dirname(__file__) + '/../'))
|
sys.path.append(os.path.abspath(os.path.dirname(__file__) + '/../'))
|
||||||
|
|
||||||
|
import mopidy
|
||||||
|
|
||||||
# -- General configuration -----------------------------------------------------
|
# -- General configuration -----------------------------------------------------
|
||||||
|
|
||||||
# Add any Sphinx extension module names here, as strings. They can be extensions
|
# 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
|
# |version| and |release|, also used in various other places throughout the
|
||||||
# built documents.
|
# built documents.
|
||||||
#
|
#
|
||||||
# The short X.Y version.
|
|
||||||
version = '0.1'
|
|
||||||
# The full version, including alpha/beta/rc tags.
|
# 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
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||||
# for a list of supported languages.
|
# for a list of supported languages.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user