diff --git a/docs/conf.py b/docs/conf.py index b2c4e79..2e25d56 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -13,6 +13,11 @@ import sys, os +# Get configuration information from the setup script +sys.path.insert(0, '..') +from setup import setup_params +del sys.path[0] + # 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. @@ -37,7 +42,7 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -project = u'svg.charts' +project = setup_params['name'] copyright = u'2010, Jason R. Coombs' # The version info for the project you're documenting, acts as replacement for @@ -45,9 +50,9 @@ copyright = u'2010, Jason R. Coombs' # built documents. # # The short X.Y version. -version = '2.0' +version = setup_params['version'] # The full version, including alpha/beta/rc tags. -release = '2.0' +release = version # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -173,7 +178,7 @@ htmlhelp_basename = 'svgchartsdoc' # (source start file, target name, title, author, documentclass [howto/manual]). latex_documents = [ ('index', 'svgcharts.tex', u'svg.charts Documentation', - u'Jason R. Coombs', 'manual'), + setup_params['author'], 'manual'), ] # The name of an image file (relative to this directory) to place at the top of