diff options
author | Florian Klien <flowolf@klienux.org> | 2018-10-15 18:06:13 +0200 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-10-28 10:48:23 +0100 |
commit | 7b87d98fff05f2ff426a399a36f86a71c419c6bf (patch) | |
tree | 7f8c91b011fd80f910257ec1622ca179fc7b40ee /docs | |
parent | 8779d40602c94e49b51fbfeaaaf2f5272b8e5a8f (diff) | |
download | slixmpp-7b87d98fff05f2ff426a399a36f86a71c419c6bf.tar.gz slixmpp-7b87d98fff05f2ff426a399a36f86a71c419c6bf.tar.bz2 slixmpp-7b87d98fff05f2ff426a399a36f86a71c419c6bf.tar.xz slixmpp-7b87d98fff05f2ff426a399a36f86a71c419c6bf.zip |
auto set version of Slixmpp in Docs
getting version of slixmpp from source tree for documentation
Diffstat (limited to 'docs')
-rw-r--r-- | docs/conf.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/docs/conf.py b/docs/conf.py index 8f711a16..1b75cefa 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -18,6 +18,10 @@ import sys, os # documentation root, use os.path.abspath to make it absolute, like shown here. sys.path.insert(0, os.path.abspath('..')) +# get version automagically from source tree +from slixmpp.version import __version__ as version +release = ".".join(version.split(".")[0:2]) + # -- General configuration ----------------------------------------------------- # If your documentation needs a minimal Sphinx version, state it here. @@ -47,10 +51,11 @@ copyright = u'2011, Nathan Fritz, Lance Stout' # |version| and |release|, also used in various other places throughout the # built documents. # +# auto imported from code! # The short X.Y version. -version = '1.1' +# version = '1.4' # The full version, including alpha/beta/rc tags. -release = '1.1' +# release = '1.4.0' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. |