Debian Codegraph @

docs/conf.py

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 # -*- coding: utf-8 -*-
2 #
3 # Requests documentation build configuration file, created by
4 # sphinx-quickstart on Fri Feb 19 00:05:47 2016.
5 #
6 # This file is execfile()d with the current directory set to its
7 # containing dir.
8 #
9 # Note that not all possible configuration values are present in this
10 # autogenerated file.
11 #
12 # All configuration values have a default; values that are commented out
13 # serve to show the default.
14
15 import sys
16 import os
17
18 # If extensions (or modules to document with autodoc) are in another directory,
19 # add these directories to sys.path here. If the directory is relative to the
20 # documentation root, use os.path.abspath to make it absolute, like shown here.
21 # sys.path.insert(0, os.path.abspath('.'))
22
23 # Insert Requests' path into the system.
24 sys.path.insert(0, os.path.abspath(".."))
25 sys.path.insert(0, os.path.abspath("_themes"))
26
27 import requests
28
29
30 # -- General configuration ------------------------------------------------
31
32 # If your documentation needs a minimal Sphinx version, state it here.
33 # needs_sphinx = '1.0'
34
35 # Add any Sphinx extension module names here, as strings. They can be
36 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
37 # ones.
38 extensions = [
39 "sphinx.ext.autodoc",
40 "sphinx.ext.intersphinx",
41 "sphinx.ext.todo",
42 "sphinx.ext.viewcode",
43 ]
44
45 # Add any paths that contain templates here, relative to this directory.
46 templates_path = ["_templates"]
47
48 # The suffix(es) of source filenames.
49 # You can specify multiple suffix as a list of string:
50 # source_suffix = ['.rst', '.md']
51 source_suffix = ".rst"
52
53 # The encoding of source files.
54 # source_encoding = 'utf-8-sig'
55
56 # The master toctree document.
57 root_doc = "index"
58
59 # General information about the project.
60 project = u"Requests"
61 copyright = u"Kenneth Reitz and contributors"
62 author = u"Kenneth Reitz"
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 short X.Y version.
69 version = requests.__version__
70 # The full version, including alpha/beta/rc tags.
71 release = requests.__version__
72
73 # The language for content autogenerated by Sphinx. Refer to documentation
74 # for a list of supported languages.
75 #
76 # This is also used if you do content translation via gettext catalogs.
77 # Usually you set "language" from the command line for these cases.
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
91 # documents.
92 # default_role = None
93
94 # If true, '()' will be appended to :func: etc. cross-reference text.
95 add_function_parentheses = False
96
97 # If true, the current module name will be prepended to all description
98 # unit titles (such as .. function::).
99 add_module_names = True
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.
106 pygments_style = "flask_theme_support.FlaskyStyle"
107
108 # A list of ignored prefixes for module index sorting.
109 # modindex_common_prefix = []
110
111 # If true, keep warnings as "system message" paragraphs in the built documents.
112 # keep_warnings = False
113
114 # If true, `todo` and `todoList` produce output, else they produce nothing.
115 todo_include_todos = True
116
117
118 # -- Options for HTML output ----------------------------------------------
119
120 # The theme to use for HTML and HTML Help pages. See the documentation for
121 # a list of builtin themes.
122 html_theme = "alabaster"
123
124 # Theme options are theme-specific and customize the look and feel of a theme
125 # further. For a list of options available for each theme, see the
126 # documentation.
127 html_theme_options = {
128 "show_powered_by": False,
129 "github_user": "psf",
130 "github_repo": "requests",
131 "github_banner": True,
132 "show_related": False,
133 "note_bg": "#FFF59C",
134 }
135
136 # Add any paths that contain custom themes here, relative to this directory.
137 # html_theme_path = []
138
139 # The name for this set of Sphinx documents. If None, it defaults to
140 # "<project> v<release> documentation".
141 # html_title = None
142
143 # A shorter title for the navigation bar. Default is the same as html_title.
144 # html_short_title = None
145
146 # The name of an image file (relative to this directory) to place at the top
147 # of the sidebar.
148 # html_logo = None
149
150 # The name of an image file (within the static path) to use as favicon of the
151 # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
152 # pixels large.
153 # html_favicon = None
154
155 # Add any paths that contain custom static files (such as style sheets) here,
156 # relative to this directory. They are copied after the builtin static files,
157 # so a file named "default.css" will overwrite the builtin "default.css".
158 html_static_path = ["_static"]
159
160 # Add any extra paths that contain custom files (such as robots.txt or
161 # .htaccess) here, relative to this directory. These files are copied
162 # directly to the root of the documentation.
163 # html_extra_path = []
164
165 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
166 # using the given strftime format.
167 # html_last_updated_fmt = '%b %d, %Y'
168
169 # If true, SmartyPants will be used to convert quotes and dashes to
170 # typographically correct entities.
171 html_use_smartypants = False
172
173 # Custom sidebar templates, maps document names to template names.
174 html_sidebars = {
175 "index": ["sidebar.html", "sourcelink.html", "searchbox.html"],
176 "**": [
177 "sidebar.html",
178 "localtoc.html",
179 "relations.html",
180 "sourcelink.html",
181 "searchbox.html",
182 ],
183 }
184
185 # Additional templates that should be rendered to pages, maps page names to
186 # template names.
187 # html_additional_pages = {}
188
189 # If false, no module index is generated.
190 # html_domain_indices = True
191
192 # If false, no index is generated.
193 # html_use_index = True
194
195 # If true, the index is split into individual pages for each letter.
196 # html_split_index = False
197
198 # If true, links to the reST sources are added to the pages.
199 html_show_sourcelink = False
200
201 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
202 html_show_sphinx = False
203
204 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
205 html_show_copyright = True
206
207 # If true, an OpenSearch description file will be output, and all pages will
208 # contain a <link> tag referring to it. The value of this option must be the
209 # base URL from which the finished HTML is served.
210 # html_use_opensearch = ''
211
212 # This is the file name suffix for HTML files (e.g. ".xhtml").
213 # html_file_suffix = None
214
215 # Language to be used for generating the HTML full-text search index.
216 # Sphinx supports the following languages:
217 # 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'
218 # 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr'
219 # html_search_language = 'en'
220
221 # A dictionary with options for the search language support, empty by default.
222 # Now only 'ja' uses this config value
223 # html_search_options = {'type': 'default'}
224
225 # The name of a javascript file (relative to the configuration directory) that
226 # implements a search results scorer. If empty, the default will be used.
227 # html_search_scorer = 'scorer.js'
228
229 # Output file base name for HTML help builder.
230 htmlhelp_basename = "Requestsdoc"
231
232 # -- Options for LaTeX output ---------------------------------------------
233
234 latex_elements = {
235 # The paper size ('letterpaper' or 'a4paper').
236 #'papersize': 'letterpaper',
237 # The font size ('10pt', '11pt' or '12pt').
238 #'pointsize': '10pt',
239 # Additional stuff for the LaTeX preamble.
240 #'preamble': '',
241 # Latex figure (float) alignment
242 #'figure_align': 'htbp',
243 }
244
245 # Grouping the document tree into LaTeX files. List of tuples
246 # (source start file, target name, title,
247 # author, documentclass [howto, manual, or own class]).
248 latex_documents = [
249 (root_doc, "Requests.tex", u"Requests Documentation", u"Kenneth Reitz", "manual")
250 ]
251
252 # The name of an image file (relative to this directory) to place at the top of
253 # the title page.
254 # latex_logo = None
255
256 # For "manual" documents, if this is true, then toplevel headings are parts,
257 # not chapters.
258 # latex_use_parts = False
259
260 # If true, show page references after internal links.
261 # latex_show_pagerefs = False
262
263 # If true, show URL addresses after external links.
264 # latex_show_urls = False
265
266 # Documents to append as an appendix to all manuals.
267 # latex_appendices = []
268
269 # If false, no module index is generated.
270 # latex_domain_indices = True
271
272
273 # -- Options for manual page output ---------------------------------------
274
275 # One entry per manual page. List of tuples
276 # (source start file, name, description, authors, manual section).
277 man_pages = [(root_doc, "requests", u"Requests Documentation", [author], 1)]
278
279 # If true, show URL addresses after external links.
280 # man_show_urls = False
281
282
283 # -- Options for Texinfo output -------------------------------------------
284
285 # Grouping the document tree into Texinfo files. List of tuples
286 # (source start file, target name, title, author,
287 # dir menu entry, description, category)
288 texinfo_documents = [
289 (
290 root_doc,
291 "Requests",
292 u"Requests Documentation",
293 author,
294 "Requests",
295 "One line description of project.",
296 "Miscellaneous",
297 )
298 ]
299
300 # Documents to append as an appendix to all manuals.
301 # texinfo_appendices = []
302
303 # If false, no module index is generated.
304 # texinfo_domain_indices = True
305
306 # How to display URL addresses: 'footnote', 'no', or 'inline'.
307 # texinfo_show_urls = 'footnote'
308
309 # If true, do not generate a @detailmenu in the "Top" node's menu.
310 # texinfo_no_detailmenu = False
311
312
313 # -- Options for Epub output ----------------------------------------------
314
315 # Bibliographic Dublin Core info.
316 epub_title = project
317 epub_author = author
318 epub_publisher = author
319 epub_copyright = copyright
320
321 # The basename for the epub file. It defaults to the project name.
322 # epub_basename = project
323
324 # The HTML theme for the epub output. Since the default themes are not
325 # optimized for small screen space, using the same theme for HTML and epub
326 # output is usually not wise. This defaults to 'epub', a theme designed to save
327 # visual space.
328 # epub_theme = 'epub'
329
330 # The language of the text. It defaults to the language option
331 # or 'en' if the language is not set.
332 # epub_language = ''
333
334 # The scheme of the identifier. Typical schemes are ISBN or URL.
335 # epub_scheme = ''
336
337 # The unique identifier of the text. This can be a ISBN number
338 # or the project homepage.
339 # epub_identifier = ''
340
341 # A unique identification for the text.
342 # epub_uid = ''
343
344 # A tuple containing the cover image and cover page html template filenames.
345 # epub_cover = ()
346
347 # A sequence of (type, uri, title) tuples for the guide element of content.opf.
348 # epub_guide = ()
349
350 # HTML files that should be inserted before the pages created by sphinx.
351 # The format is a list of tuples containing the path and title.
352 # epub_pre_files = []
353
354 # HTML files that should be inserted after the pages created by sphinx.
355 # The format is a list of tuples containing the path and title.
356 # epub_post_files = []
357
358 # A list of files that should not be packed into the epub file.
359 epub_exclude_files = ["search.html"]
360
361 # The depth of the table of contents in toc.ncx.
362 # epub_tocdepth = 3
363
364 # Allow duplicate toc entries.
365 # epub_tocdup = True
366
367 # Choose between 'default' and 'includehidden'.
368 # epub_tocscope = 'default'
369
370 # Fix unsupported image types using the Pillow.
371 # epub_fix_images = False
372
373 # Scale large images.
374 # epub_max_image_width = 0
375
376 # How to display URL addresses: 'footnote', 'no', or 'inline'.
377 # epub_show_urls = 'inline'
378
379 # If false, no index is generated.
380 # epub_use_index = True
381
382 intersphinx_mapping = {
383 "python": ("https://docs.python.org/3/", None),
384 "urllib3": ("https://urllib3.readthedocs.io/en/latest", None),
385 }