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