Wed, 31 Dec 2014 06:55:50 +0100
Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2
michael@0 | 1 | # -*- coding: utf-8 -*- |
michael@0 | 2 | # |
michael@0 | 3 | # Mock documentation build configuration file, created by |
michael@0 | 4 | # sphinx-quickstart on Mon Nov 17 18:12:00 2008. |
michael@0 | 5 | # |
michael@0 | 6 | # This file is execfile()d with the current directory set to its containing dir. |
michael@0 | 7 | # |
michael@0 | 8 | # The contents of this file are pickled, so don't put values in the namespace |
michael@0 | 9 | # that aren't pickleable (module imports are okay, they're removed automatically). |
michael@0 | 10 | # |
michael@0 | 11 | # All configuration values have a default value; values that are commented out |
michael@0 | 12 | # serve to show the default value. |
michael@0 | 13 | |
michael@0 | 14 | import sys, os |
michael@0 | 15 | sys.path.insert(0, os.path.abspath('..')) |
michael@0 | 16 | from mock import __version__ |
michael@0 | 17 | |
michael@0 | 18 | # If your extensions are in another directory, add it here. If the directory |
michael@0 | 19 | # is relative to the documentation root, use os.path.abspath to make it |
michael@0 | 20 | # absolute, like shown here. |
michael@0 | 21 | #sys.path.append(os.path.abspath('some/directory')) |
michael@0 | 22 | |
michael@0 | 23 | # General configuration |
michael@0 | 24 | # --------------------- |
michael@0 | 25 | |
michael@0 | 26 | # Add any Sphinx extension module names here, as strings. They can be extensions |
michael@0 | 27 | # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. |
michael@0 | 28 | extensions = ['sphinx.ext.doctest'] |
michael@0 | 29 | |
michael@0 | 30 | doctest_global_setup = """ |
michael@0 | 31 | import os |
michael@0 | 32 | import sys |
michael@0 | 33 | import mock |
michael@0 | 34 | from mock import * # yeah, I know :-/ |
michael@0 | 35 | import unittest2 |
michael@0 | 36 | import __main__ |
michael@0 | 37 | |
michael@0 | 38 | if os.getcwd() not in sys.path: |
michael@0 | 39 | sys.path.append(os.getcwd()) |
michael@0 | 40 | |
michael@0 | 41 | # keep a reference to __main__ |
michael@0 | 42 | sys.modules['__main'] = __main__ |
michael@0 | 43 | |
michael@0 | 44 | class ProxyModule(object): |
michael@0 | 45 | def __init__(self): |
michael@0 | 46 | self.__dict__ = globals() |
michael@0 | 47 | |
michael@0 | 48 | sys.modules['__main__'] = ProxyModule() |
michael@0 | 49 | """ |
michael@0 | 50 | |
michael@0 | 51 | doctest_global_cleanup = """ |
michael@0 | 52 | sys.modules['__main__'] = sys.modules['__main'] |
michael@0 | 53 | """ |
michael@0 | 54 | |
michael@0 | 55 | html_theme = 'nature' |
michael@0 | 56 | html_theme_options = {} |
michael@0 | 57 | |
michael@0 | 58 | # Add any paths that contain templates here, relative to this directory. |
michael@0 | 59 | #templates_path = ['_templates'] |
michael@0 | 60 | |
michael@0 | 61 | # The suffix of source filenames. |
michael@0 | 62 | source_suffix = '.txt' |
michael@0 | 63 | |
michael@0 | 64 | # The master toctree document. |
michael@0 | 65 | master_doc = 'index' |
michael@0 | 66 | |
michael@0 | 67 | # General substitutions. |
michael@0 | 68 | project = u'Mock' |
michael@0 | 69 | copyright = u'2007-2012, Michael Foord & the mock team' |
michael@0 | 70 | |
michael@0 | 71 | # The default replacements for |version| and |release|, also used in various |
michael@0 | 72 | # other places throughout the built documents. |
michael@0 | 73 | # |
michael@0 | 74 | # The short X.Y version. |
michael@0 | 75 | version = __version__[:3] |
michael@0 | 76 | # The full version, including alpha/beta/rc tags. |
michael@0 | 77 | release = __version__ |
michael@0 | 78 | |
michael@0 | 79 | # There are two options for replacing |today|: either, you set today to some |
michael@0 | 80 | # non-false value, then it is used: |
michael@0 | 81 | #today = '' |
michael@0 | 82 | # Else, today_fmt is used as the format for a strftime call. |
michael@0 | 83 | today_fmt = '%B %d, %Y' |
michael@0 | 84 | |
michael@0 | 85 | # List of documents that shouldn't be included in the build. |
michael@0 | 86 | #unused_docs = [] |
michael@0 | 87 | |
michael@0 | 88 | # List of directories, relative to source directories, that shouldn't be searched |
michael@0 | 89 | # for source files. |
michael@0 | 90 | exclude_trees = [] |
michael@0 | 91 | |
michael@0 | 92 | # The reST default role (used for this markup: `text`) to use for all documents. |
michael@0 | 93 | #default_role = None |
michael@0 | 94 | |
michael@0 | 95 | # If true, '()' will be appended to :func: etc. cross-reference text. |
michael@0 | 96 | #add_function_parentheses = True |
michael@0 | 97 | |
michael@0 | 98 | # If true, the current module name will be prepended to all description |
michael@0 | 99 | # unit titles (such as .. function::). |
michael@0 | 100 | add_module_names = False |
michael@0 | 101 | |
michael@0 | 102 | # If true, sectionauthor and moduleauthor directives will be shown in the |
michael@0 | 103 | # output. They are ignored by default. |
michael@0 | 104 | #show_authors = False |
michael@0 | 105 | |
michael@0 | 106 | # The name of the Pygments (syntax highlighting) style to use. |
michael@0 | 107 | pygments_style = 'friendly' |
michael@0 | 108 | |
michael@0 | 109 | |
michael@0 | 110 | # Options for HTML output |
michael@0 | 111 | # ----------------------- |
michael@0 | 112 | |
michael@0 | 113 | # The style sheet to use for HTML and HTML Help pages. A file of that name |
michael@0 | 114 | # must exist either in Sphinx' static/ path, or in one of the custom paths |
michael@0 | 115 | # given in html_static_path. |
michael@0 | 116 | #html_style = 'adctheme.css' |
michael@0 | 117 | |
michael@0 | 118 | # The name for this set of Sphinx documents. If None, it defaults to |
michael@0 | 119 | # "<project> v<release> documentation". |
michael@0 | 120 | #html_title = None |
michael@0 | 121 | |
michael@0 | 122 | # A shorter title for the navigation bar. Default is the same as html_title. |
michael@0 | 123 | #html_short_title = None |
michael@0 | 124 | |
michael@0 | 125 | # The name of an image file (relative to this directory) to place at the top |
michael@0 | 126 | # of the sidebar. |
michael@0 | 127 | #html_logo = None |
michael@0 | 128 | |
michael@0 | 129 | # The name of an image file (within the static path) to use as favicon of the |
michael@0 | 130 | # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 |
michael@0 | 131 | # pixels large. |
michael@0 | 132 | #html_favicon = None |
michael@0 | 133 | |
michael@0 | 134 | # Add any paths that contain custom static files (such as style sheets) here, |
michael@0 | 135 | # relative to this directory. They are copied after the builtin static files, |
michael@0 | 136 | # so a file named "default.css" will overwrite the builtin "default.css". |
michael@0 | 137 | #html_static_path = ['_static'] |
michael@0 | 138 | |
michael@0 | 139 | # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, |
michael@0 | 140 | # using the given strftime format. |
michael@0 | 141 | html_last_updated_fmt = '%b %d, %Y' |
michael@0 | 142 | |
michael@0 | 143 | # If true, SmartyPants will be used to convert quotes and dashes to |
michael@0 | 144 | # typographically correct entities. |
michael@0 | 145 | #html_use_smartypants = True |
michael@0 | 146 | |
michael@0 | 147 | # Custom sidebar templates, maps document names to template names. |
michael@0 | 148 | #html_sidebars = {} |
michael@0 | 149 | |
michael@0 | 150 | # Additional templates that should be rendered to pages, maps page names to |
michael@0 | 151 | # template names. |
michael@0 | 152 | #html_additional_pages = {} |
michael@0 | 153 | |
michael@0 | 154 | # If false, no module index is generated. |
michael@0 | 155 | html_use_modindex = False |
michael@0 | 156 | |
michael@0 | 157 | # If false, no index is generated. |
michael@0 | 158 | #html_use_index = True |
michael@0 | 159 | |
michael@0 | 160 | # If true, the index is split into individual pages for each letter. |
michael@0 | 161 | #html_split_index = False |
michael@0 | 162 | |
michael@0 | 163 | # If true, the reST sources are included in the HTML build as _sources/<name>. |
michael@0 | 164 | #html_copy_source = True |
michael@0 | 165 | |
michael@0 | 166 | # If true, an OpenSearch description file will be output, and all pages will |
michael@0 | 167 | # contain a <link> tag referring to it. The value of this option must be the |
michael@0 | 168 | # base URL from which the finished HTML is served. |
michael@0 | 169 | #html_use_opensearch = '' |
michael@0 | 170 | |
michael@0 | 171 | # If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml"). |
michael@0 | 172 | #html_file_suffix = '' |
michael@0 | 173 | |
michael@0 | 174 | # Output file base name for HTML help builder. |
michael@0 | 175 | htmlhelp_basename = 'Mockdoc' |
michael@0 | 176 | |
michael@0 | 177 | |
michael@0 | 178 | # Options for LaTeX output |
michael@0 | 179 | # ------------------------ |
michael@0 | 180 | |
michael@0 | 181 | # The paper size ('letter' or 'a4'). |
michael@0 | 182 | #latex_paper_size = 'letter' |
michael@0 | 183 | |
michael@0 | 184 | # The font size ('10pt', '11pt' or '12pt'). |
michael@0 | 185 | latex_font_size = '12pt' |
michael@0 | 186 | |
michael@0 | 187 | # Grouping the document tree into LaTeX files. List of tuples |
michael@0 | 188 | # (source start file, target name, title, author, document class [howto/manual]). |
michael@0 | 189 | latex_documents = [ |
michael@0 | 190 | ('index', 'Mock.tex', u'Mock Documentation', |
michael@0 | 191 | u'Michael Foord', 'manual'), |
michael@0 | 192 | ] |
michael@0 | 193 | |
michael@0 | 194 | # The name of an image file (relative to this directory) to place at the top of |
michael@0 | 195 | # the title page. |
michael@0 | 196 | #latex_logo = None |
michael@0 | 197 | |
michael@0 | 198 | # For "manual" documents, if this is true, then toplevel headings are parts, |
michael@0 | 199 | # not chapters. |
michael@0 | 200 | #latex_use_parts = False |
michael@0 | 201 | |
michael@0 | 202 | # Additional stuff for the LaTeX preamble. |
michael@0 | 203 | #latex_preamble = '' |
michael@0 | 204 | |
michael@0 | 205 | # Documents to append as an appendix to all manuals. |
michael@0 | 206 | #latex_appendices = [] |
michael@0 | 207 | |
michael@0 | 208 | # If false, no module index is generated. |
michael@0 | 209 | latex_use_modindex = False |