Debian Codegraph @

docs/conf.py

raw
1 # -*- coding: utf-8 -*-
2 #
3 # kazoo documentation build configuration file, created by
4 # sphinx-quickstart on Fri Nov 11 13:23:01 2011.
5 #
6 # This file is execfile()d with the current directory set to its containing dir.
7 #
8 # Note that not all possible configuration values are present in this
9 # autogenerated file.
10 #
11 # All configuration values have a default; values that are commented out
12 # serve to show the default.
13 import os
14 import sys
15
16
17 class Mock(object):
18 def __init__(self, *args):
19 pass
20
21 def __getattr__(self, name):
22 return Mock
23
24
25 MOCK_MODULES = ["zookeeper"]
26 for mod_name in MOCK_MODULES:
27 sys.modules[mod_name] = Mock()
28
29 # If extensions (or modules to document with autodoc) are in another directory,
30 # add these directories to sys.path here. If the directory is relative to the
31 # documentation root, use os.path.abspath to make it absolute, like shown here.
32 sys.path.insert(0, os.path.abspath(".."))
33
34 # -- General configuration -----------------------------------------------------
35
36 # If your documentation needs a minimal Sphinx version, state it here.
37 # needs_sphinx = '1.0'
38
39 # Add any Sphinx extension module names here, as strings. They can be extensions
40 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
41 extensions = [
42 "sphinx.ext.autodoc",
43 "sphinx.ext.doctest",
44 "sphinx.ext.viewcode",
45 "sphinx_autodoc_typehints",
46 ]
47
48 # Add any paths that contain templates here, relative to this directory.
49 templates_path = ["_templates"]
50
51 # The suffix of source filenames.
52 source_suffix = ".rst"
53
54 # The encoding of source files.
55 # source_encoding = 'utf-8-sig'
56
57 # The master toctree document.
58 master_doc = "index"
59
60 # General information about the project.
61 project = "kazoo"
62 copyright = "2011-2014, Kazoo team"
63
64 # The version info for the project you're documenting, acts as replacement for
65 # |version| and |release|, also used in various other places throughout the
66 # built documents.
67 #
68 # The full version, including alpha/beta/rc tags.
69 from kazoo import version
70
71 release = version.__version__
72
73 # The short X.Y version.
74 version = ".".join(release.split(".")[:-1])
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 = []
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 = "kazoodoc"
189
190
191 # -- Options for LaTeX output --------------------------------------------------
192
193 latex_elements = {
194 # The paper size ('letterpaper' or 'a4paper').
195 #'papersize': 'letterpaper',
196 # The font size ('10pt', '11pt' or '12pt').
197 #'pointsize': '10pt',
198 # Additional stuff for the LaTeX preamble.
199 #'preamble': '',
200 }
201
202 # Grouping the document tree into LaTeX files. List of tuples
203 # (source start file, target name, title, author, documentclass [howto/manual]).
204 latex_documents = [
205 ("index", "kazoo.tex", "kazoo Documentation", "Various Authors", "manual"),
206 ]
207
208 # The name of an image file (relative to this directory) to place at the top of
209 # the title page.
210 # latex_logo = None
211
212 # For "manual" documents, if this is true, then toplevel headings are parts,
213 # not chapters.
214 # latex_use_parts = False
215
216 # If true, show page references after internal links.
217 # latex_show_pagerefs = False
218
219 # If true, show URL addresses after external links.
220 # latex_show_urls = False
221
222 # Documents to append as an appendix to all manuals.
223 # latex_appendices = []
224
225 # If false, no module index is generated.
226 # latex_domain_indices = True
227
228
229 # -- Options for manual page output --------------------------------------------
230
231 # One entry per manual page. List of tuples
232 # (source start file, name, description, authors, manual section).
233 man_pages = [("index", "kazoo", "kazoo Documentation", ["Various Authors"], 1)]
234
235 # If true, show URL addresses after external links.
236 # man_show_urls = False
237
238
239 # -- Options for Texinfo output ------------------------------------------------
240
241 # Grouping the document tree into Texinfo files. List of tuples
242 # (source start file, target name, title, author,
243 # dir menu entry, description, category)
244 texinfo_documents = [
245 (
246 "index",
247 "kazoo",
248 "kazoo Documentation",
249 "Various Authors",
250 "kazoo",
251 "One line description of project.",
252 "Miscellaneous",
253 ),
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'