Browse Source

Updated docs/conf.py to use metadata from setup script

pull/8/head
jaraco 15 years ago
parent
commit
8672d255a2
  1. 13
      docs/conf.py

13
docs/conf.py

@ -13,6 +13,11 @@
import sys, os 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, # 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 # 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. # documentation root, use os.path.abspath to make it absolute, like shown here.
@ -37,7 +42,7 @@ source_suffix = '.rst'
master_doc = 'index' master_doc = 'index'
# General information about the project. # General information about the project.
project = u'svg.charts' project = setup_params['name']
copyright = u'2010, Jason R. Coombs' copyright = u'2010, Jason R. Coombs'
# The version info for the project you're documenting, acts as replacement for # 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. # built documents.
# #
# The short X.Y version. # The short X.Y version.
version = '2.0' version = setup_params['version']
# The full version, including alpha/beta/rc tags. # The full version, including alpha/beta/rc tags.
release = '2.0' release = version
# The language for content autogenerated by Sphinx. Refer to documentation # The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages. # for a list of supported languages.
@ -173,7 +178,7 @@ htmlhelp_basename = 'svgchartsdoc'
# (source start file, target name, title, author, documentclass [howto/manual]). # (source start file, target name, title, author, documentclass [howto/manual]).
latex_documents = [ latex_documents = [
('index', 'svgcharts.tex', u'svg.charts Documentation', ('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 # The name of an image file (relative to this directory) to place at the top of

Loading…
Cancel
Save