From be0a59cfb5e4b96a5f62f2ec1e9d8985ada0d474 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Wobst?= Date: Sun, 10 Jul 2011 18:42:57 +0000 Subject: [PATCH] get version from pyx.version and remove config for unused output formats git-svn-id: https://pyx.svn.sourceforge.net/svnroot/pyx/trunk/pyx@3195 069f4177-920e-0410-937b-c2a4a81bcd90 --- faq/conf.py | 51 +++++++-------------------------------------------- 1 file changed, 7 insertions(+), 44 deletions(-) diff --git a/faq/conf.py b/faq/conf.py index e4c3edbd..dee8a58c 100644 --- a/faq/conf.py +++ b/faq/conf.py @@ -12,6 +12,8 @@ # serve to show the default. import sys, os +sys.path.insert(0, '..') +import pyx.version # 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 @@ -48,9 +50,9 @@ copyright = u'2011, Gert-Ludwig Ingold' # built documents. # # The short X.Y version. -version = '0.11' +version = '.'.join(pyx.version.version.split('.')[:1]) # The full version, including alpha/beta/rc tags. -release = '0.11.1' +release = pyx.version.version # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -58,13 +60,13 @@ release = '0.11.1' # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: -#today = '' +today = pyx.version.date # Else, today_fmt is used as the format for a strftime call. #today_fmt = '%B %d, %Y' # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. -exclude_patterns = [] +exclude_patterns = ['_build'] # The reST default role (used for this markup: `text`) to use for all documents. #default_role = None @@ -172,7 +174,7 @@ todo_include_todos = True # gli # -- Options for LaTeX output -------------------------------------------------- # The paper size ('letter' or 'a4'). -#latex_paper_size = 'letter' +latex_paper_size = 'a4' # The font size ('10pt', '11pt' or '12pt'). #latex_font_size = '10pt' @@ -217,42 +219,3 @@ man_pages = [ [u'Gert-Ludwig Ingold'], 1) ] - -# -- Options for Epub output --------------------------------------------------- - -# Bibliographic Dublin Core info. -epub_title = u'pyxfaq' -epub_author = u'Gert-Ludwig Ingold' -epub_publisher = u'Gert-Ludwig Ingold' -epub_copyright = u'2011, Gert-Ludwig Ingold' - -# The language of the text. It defaults to the language option -# or en if the language is not set. -#epub_language = '' - -# The scheme of the identifier. Typical schemes are ISBN or URL. -#epub_scheme = '' - -# The unique identifier of the text. This can be a ISBN number -# or the project homepage. -#epub_identifier = '' - -# A unique identification for the text. -#epub_uid = '' - -# HTML files that should be inserted before the pages created by sphinx. -# The format is a list of tuples containing the path and title. -#epub_pre_files = [] - -# HTML files shat should be inserted after the pages created by sphinx. -# The format is a list of tuples containing the path and title. -#epub_post_files = [] - -# A list of files that should not be packed into the epub file. -#epub_exclude_files = [] - -# The depth of the table of contents in toc.ncx. -#epub_tocdepth = 3 - -# Allow duplicate toc entries. -#epub_tocdup = True -- 2.11.4.GIT