doc/conf.py
changeset 302 3f4bdea2abbf
parent 294 0e75bd39767d
equal deleted inserted replaced
90:eb04ac3a8327 302:3f4bdea2abbf
       
     1 # Copyright (c) 2012 netzguerilla.net <iro@netzguerilla.net>
       
     2 # 
       
     3 # This file is part of Iro.
       
     4 # 
       
     5 # Permission is hereby granted, free of charge, to any person obtaining a copy of
       
     6 # this software and associated documentation files (the "Software"), to deal in
       
     7 # the Software without restriction, including without limitation the rights to use,
       
     8 # copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
       
     9 # #Software, and to permit persons to whom the Software is furnished to do so,
       
    10 # subject to the following conditions:
       
    11 # 
       
    12 # The above copyright notice and this permission notice shall be included in
       
    13 # all copies or substantial portions of the Software.
       
    14 # 
       
    15 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
       
    16 # INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
       
    17 # PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
       
    18 # HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
       
    19 # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
       
    20 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
       
    21 
       
    22 # -*- coding: utf-8 -*-
       
    23 #
       
    24 # Iro documentation build configuration file, created by
       
    25 # sphinx-quickstart on Sat Mar 24 12:06:24 2012.
       
    26 #
       
    27 # This file is execfile()d with the current directory set to its containing dir.
       
    28 #
       
    29 # Note that not all possible configuration values are present in this
       
    30 # autogenerated file.
       
    31 #
       
    32 # All configuration values have a default; values that are commented out
       
    33 # serve to show the default.
       
    34 
       
    35 import sys, os, re 
       
    36 
       
    37 # If extensions (or modules to document with autodoc) are in another directory,
       
    38 # add these directories to sys.path here. If the directory is relative to the
       
    39 # documentation root, use os.path.abspath to make it absolute, like shown here.
       
    40 sys.path.insert(0, os.path.abspath('..'))
       
    41 from iro import __version__
       
    42 # -- General configuration -----------------------------------------------------
       
    43 
       
    44 # If your documentation needs a minimal Sphinx version, state it here.
       
    45 #needs_sphinx = '1.0'
       
    46 
       
    47 # Add any Sphinx extension module names here, as strings. They can be extensions
       
    48 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
       
    49 extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.ifconfig', 'sphinx.ext.viewcode','sphinx.ext.extlinks']
       
    50 
       
    51 # Add any paths that contain templates here, relative to this directory.
       
    52 templates_path = ['_templates']
       
    53 
       
    54 # The suffix of source filenames.
       
    55 source_suffix = '.rst'
       
    56 
       
    57 # The encoding of source files.
       
    58 #source_encoding = 'utf-8-sig'
       
    59 
       
    60 # The master toctree document.
       
    61 master_doc = 'index'
       
    62 
       
    63 # General information about the project.
       
    64 project = u'Iro'
       
    65 copyright = u'2012, netzguerilla.net'
       
    66 
       
    67 # The version info for the project you're documenting, acts as replacement for
       
    68 # |version| and |release|, also used in various other places throughout the
       
    69 # built documents.
       
    70 #
       
    71 # The short X.Y version.
       
    72 version =  re.match("^([0-9\.]+)",__version__).groups()[0]
       
    73 # The full version, including alpha/beta/rc tags.
       
    74 release = __version__
       
    75 
       
    76 # The language for content autogenerated by Sphinx. Refer to documentation
       
    77 # for a list of supported languages.
       
    78 #language = None
       
    79 
       
    80 # There are two options for replacing |today|: either, you set today to some
       
    81 # non-false value, then it is used:
       
    82 #today = ''
       
    83 # Else, today_fmt is used as the format for a strftime call.
       
    84 #today_fmt = '%B %d, %Y'
       
    85 
       
    86 # List of patterns, relative to source directory, that match files and
       
    87 # directories to ignore when looking for source files.
       
    88 exclude_patterns = ['_build']
       
    89 
       
    90 # The reST default role (used for this markup: `text`) to use for all documents.
       
    91 #default_role = None
       
    92 
       
    93 # If true, '()' will be appended to :func: etc. cross-reference text.
       
    94 #add_function_parentheses = True
       
    95 
       
    96 # If true, the current module name will be prepended to all description
       
    97 # unit titles (such as .. function::).
       
    98 #add_module_names = True
       
    99 
       
   100 # If true, sectionauthor and moduleauthor directives will be shown in the
       
   101 # output. They are ignored by default.
       
   102 #show_authors = False
       
   103 
       
   104 # The name of the Pygments (syntax highlighting) style to use.
       
   105 pygments_style = 'sphinx'
       
   106 
       
   107 # A list of ignored prefixes for module index sorting.
       
   108 #modindex_common_prefix = []
       
   109 
       
   110 
       
   111 # -- Options for HTML output ---------------------------------------------------
       
   112 
       
   113 # The theme to use for HTML and HTML Help pages.  See the documentation for
       
   114 # a list of builtin themes.
       
   115 html_theme = 'default'
       
   116 
       
   117 # Theme options are theme-specific and customize the look and feel of a theme
       
   118 # further.  For a list of options available for each theme, see the
       
   119 # documentation.
       
   120 #html_theme_options = {}
       
   121 
       
   122 # Add any paths that contain custom themes here, relative to this directory.
       
   123 #html_theme_path = []
       
   124 
       
   125 # The name for this set of Sphinx documents.  If None, it defaults to
       
   126 # "<project> v<release> documentation".
       
   127 #html_title = None
       
   128 
       
   129 # A shorter title for the navigation bar.  Default is the same as html_title.
       
   130 #html_short_title = None
       
   131 
       
   132 # The name of an image file (relative to this directory) to place at the top
       
   133 # of the sidebar.
       
   134 #html_logo = None
       
   135 
       
   136 # The name of an image file (within the static path) to use as favicon of the
       
   137 # docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
       
   138 # pixels large.
       
   139 #html_favicon = None
       
   140 
       
   141 # Add any paths that contain custom static files (such as style sheets) here,
       
   142 # relative to this directory. They are copied after the builtin static files,
       
   143 # so a file named "default.css" will overwrite the builtin "default.css".
       
   144 html_static_path = ['_static']
       
   145 
       
   146 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
       
   147 # using the given strftime format.
       
   148 #html_last_updated_fmt = '%b %d, %Y'
       
   149 
       
   150 # If true, SmartyPants will be used to convert quotes and dashes to
       
   151 # typographically correct entities.
       
   152 #html_use_smartypants = True
       
   153 
       
   154 # Custom sidebar templates, maps document names to template names.
       
   155 #html_sidebars = {}
       
   156 
       
   157 # Additional templates that should be rendered to pages, maps page names to
       
   158 # template names.
       
   159 #html_additional_pages = {}
       
   160 
       
   161 # If false, no module index is generated.
       
   162 #html_domain_indices = True
       
   163 
       
   164 # If false, no index is generated.
       
   165 #html_use_index = True
       
   166 
       
   167 # If true, the index is split into individual pages for each letter.
       
   168 #html_split_index = False
       
   169 
       
   170 # If true, links to the reST sources are added to the pages.
       
   171 #html_show_sourcelink = True
       
   172 
       
   173 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
       
   174 #html_show_sphinx = True
       
   175 
       
   176 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
       
   177 #html_show_copyright = True
       
   178 
       
   179 # If true, an OpenSearch description file will be output, and all pages will
       
   180 # contain a <link> tag referring to it.  The value of this option must be the
       
   181 # base URL from which the finished HTML is served.
       
   182 #html_use_opensearch = ''
       
   183 
       
   184 # This is the file name suffix for HTML files (e.g. ".xhtml").
       
   185 #html_file_suffix = None
       
   186 
       
   187 # Output file base name for HTML help builder.
       
   188 htmlhelp_basename = 'Irodoc'
       
   189 
       
   190 
       
   191 # -- Options for LaTeX output --------------------------------------------------
       
   192 
       
   193 latex_elements = {
       
   194 # The paper size ('letterpaper' or 'a4paper').
       
   195 #'papersize': 'letterpaper',
       
   196 
       
   197 # The font size ('10pt', '11pt' or '12pt').
       
   198 #'pointsize': '10pt',
       
   199 
       
   200 # Additional stuff for the LaTeX preamble.
       
   201 #'preamble': '',
       
   202 }
       
   203 
       
   204 # Grouping the document tree into LaTeX files. List of tuples
       
   205 # (source start file, target name, title, author, documentclass [howto/manual]).
       
   206 latex_documents = [
       
   207   ('index', 'Iro.tex', u'Iro Documentation',
       
   208    u'Sandro Knauß', 'manual'),
       
   209 ]
       
   210 
       
   211 # The name of an image file (relative to this directory) to place at the top of
       
   212 # the title page.
       
   213 #latex_logo = None
       
   214 
       
   215 # For "manual" documents, if this is true, then toplevel headings are parts,
       
   216 # not chapters.
       
   217 #latex_use_parts = False
       
   218 
       
   219 # If true, show page references after internal links.
       
   220 #latex_show_pagerefs = False
       
   221 
       
   222 # If true, show URL addresses after external links.
       
   223 #latex_show_urls = False
       
   224 
       
   225 # Documents to append as an appendix to all manuals.
       
   226 #latex_appendices = []
       
   227 
       
   228 # If false, no module index is generated.
       
   229 #latex_domain_indices = True
       
   230 
       
   231 
       
   232 # -- Options for manual page output --------------------------------------------
       
   233 
       
   234 # One entry per manual page. List of tuples
       
   235 # (source start file, name, description, authors, manual section).
       
   236 man_pages = [
       
   237     ('index', 'iro', u'Iro Documentation',
       
   238      [u'Sandro Knauß'], 1)
       
   239 ]
       
   240 
       
   241 # If true, show URL addresses after external links.
       
   242 #man_show_urls = False
       
   243 
       
   244 
       
   245 # -- Options for Texinfo output ------------------------------------------------
       
   246 
       
   247 # Grouping the document tree into Texinfo files. List of tuples
       
   248 # (source start file, target name, title, author,
       
   249 #  dir menu entry, description, category)
       
   250 texinfo_documents = [
       
   251   ('index', 'Iro', u'Iro Documentation',
       
   252    u'Sandro Knauß', 'Iro', 'One line description of project.',
       
   253    'Miscellaneous'),
       
   254 ]
       
   255 
       
   256 # Documents to append as an appendix to all manuals.
       
   257 #texinfo_appendices = []
       
   258 
       
   259 # If false, no module index is generated.
       
   260 #texinfo_domain_indices = True
       
   261 
       
   262 # How to display URL addresses: 'footnote', 'no', or 'inline'.
       
   263 #texinfo_show_urls = 'footnote'
       
   264 
       
   265 autoclass_content = 'both'
       
   266 
       
   267 extlinks = {'irofile': ("../files/iro-%s.tar.gz","Iro ")}