docs/conf.py
author Andrey Vlasovskikh <andrey.vlasovskikh@gmail.com>
Sat, 11 Sep 2010 15:16:24 +0400
changeset 119 f9c027029540
parent 75 2782b2406ba8
child 142 56f290eb8f55
permissions -rw-r--r--
Fixed catching unnececcary exceptions Exception Abort can't be thrown, so it is useless. Catching SystemExit and KeyboardInterrupt makes little sense as the thread can be terminated by KeyboardInterrupt before or after entering the wrapped command processing function. So one have to handle these exceptions in his main function anyway. Catching any exception in order to print a message and re-raise it changes the standard behaviour and might seem confusing.

# -*- coding: utf-8 -*-

import sys, os
sys.path.append('..')
import opster

# -- General configuration -----------------------------------------------------

extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest']
templates_path = ['_templates']
source_suffix = '.rst'
master_doc = 'index'
project = u'Opster'
copyright = u'2009, Alexander Solovyov'
version = release = opster.__version__
exclude_trees = ['_build']
pygments_style = 'sphinx'


# -- Options for HTML output ---------------------------------------------------

html_theme = 'default'
# "<project> v<release> documentation".
#html_title = None
# A shorter title for the navigation bar.  Default is the same as html_title.
#html_short_title = None

#html_logo = None
#html_favicon = None
html_static_path = ['_static']
html_use_smartypants = True
htmlhelp_basename = 'Opsterdoc'


# -- Options for LaTeX output --------------------------------------------------

latex_documents = [
  ('index', 'Opster.tex', u'Opster Documentation',
   u'Alexander Solovyov', 'manual'),
]