summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Kluyver <thomas@kluyver.me.uk>2018-02-02 17:31:11 +0000
committerThomas Kluyver <thomas@kluyver.me.uk>2018-02-02 17:31:11 +0000
commitca188f15ceae6fc532ffb1c46ef789f85c56e975 (patch)
tree0b2bc063b4bd660c120dc550471edee1436a3555
parent69707442963112f92d72ad39f8fda93d7760e437 (diff)
Get version number for docs from module
-rw-r--r--docs/conf.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 3270bdf..f4fd19b 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -16,7 +16,7 @@ import sys, os
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
-#sys.path.insert(0, os.path.abspath('.'))
+sys.path.insert(0, os.path.abspath('..'))
# -- General configuration -----------------------------------------------------
@@ -47,10 +47,11 @@ copyright = u'2012, Sergey Kuleshov, Heinrich Wendel, Thomas Kluyver'
# |version| and |release|, also used in various other places throughout the
# built documents.
#
+import xdg
# The short X.Y version.
-version = '0.23'
+version = xdg.__version__
# The full version, including alpha/beta/rc tags.
-release = '0.23'
+release = xdg.__version__
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.