]> git.notmuchmail.org Git - notmuch/blobdiff - docs/source/conf.py
Make __VERSION__ available via cnotmuch.notmuch.__VERSION__ and improve README
[notmuch] / docs / source / conf.py
index ee22837ffab51a82c6e823632bc1b02a06239060..ca959894e18a314d4c7af16346c0fd7c0f3f95e6 100644 (file)
@@ -16,8 +16,9 @@ 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.insert(0,os.path.abspath('../..'))
 
+from cnotmuch.notmuch import __VERSION__,__AUTHOR__
 # -- General configuration -----------------------------------------------------
 
 # Add any Sphinx extension module names here, as strings. They can be extensions
@@ -39,16 +40,16 @@ master_doc = 'index'
 
 # General information about the project.
 project = u'cnotmuch'
-copyright = u'2010, Sebastian Spaeth'
+copyright = u'2010, ' + __AUTHOR__
 
 # The version info for the project you're documenting, acts as replacement for
 # |version| and |release|, also used in various other places throughout the
 # built documents.
 #
 # The short X.Y version.
-version = '0.1'
+version = __VERSION__
 # The full version, including alpha/beta/rc tags.
-release = '0.1'
+release = __VERSION__
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.