summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py9
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.