summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-06-06 12:44:30 +0100
committerLars Wirzenius <liw@liw.fi>2011-06-06 12:44:30 +0100
commit4a6b3d6203ed314b73e0ca5a37fe70ad2b4aa545 (patch)
tree201252419c1414947a8818707da7eec46aac6c22 /doc
parent7b5cb43be1716a98e0b5782cc488507482025d82 (diff)
downloadlarch-4a6b3d6203ed314b73e0ca5a37fe70ad2b4aa545.tar.gz
Have sphinx get version directly from larch.
Diffstat (limited to 'doc')
-rw-r--r--doc/conf.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/doc/conf.py b/doc/conf.py
index 34b4cf2..b69d316 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -16,7 +16,8 @@ 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.append(os.path.abspath('.'))
+sys.path.append(os.path.abspath('.'))
+sys.path.append(os.path.abspath('..'))
# -- General configuration -----------------------------------------------------
@@ -45,9 +46,10 @@ copyright = u'2011, Lars Wirzenius'
# built documents.
#
# The short X.Y version.
-version = '0.0'
+import larch
+version = larch.__version__
# The full version, including alpha/beta/rc tags.
-release = '0.0'
+release = version
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.