Skip to content
Myr

conf.py

This file

Path

docs/conf.py

379 lines · 11.8 KiB · Python

Last changed by

Merge pull request #3136 from Natim/readthedocs.ioCory Benfieldbefore adoption252bfa7

History of this file

Take it

The walk stopped after 200 commits: lines older than fe0850f point at it.

Update conf.pyKenneth Reitzbefore adoptionfe0850f

lines 1–3why, one step back
1# -*- coding: utf-8 -*-
2#3# Requests documentation build configuration file, created by

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

line 4why, one step back
4# sphinx-quickstart on Fri Feb 19 00:05:47 2016.

Update conf.pyKenneth Reitzbefore adoptionfe0850f

line 5why, one step back
5#

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

lines 6–7why, one step back
6# This file is execfile()d with the current directory set to its
7# containing dir.

Update conf.pyKenneth Reitzbefore adoptionfe0850f

lines 8–14why, one step back
8#
9# Note that not all possible configuration values are present in this10# autogenerated file.11#12# All configuration values have a default; values that are commented out13# serve to show the default.14

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

lines 15–16why, one step back
15import sys
16import os

Update conf.pyKenneth Reitzbefore adoptionfe0850f

lines 17–20why, one step back
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 the20# documentation root, use os.path.abspath to make it absolute, like shown here.

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

lines 21–23why, one step back
21#sys.path.insert(0, os.path.abspath('.'))
2223# Insert Requests' path into the system.

Update conf.pyKenneth Reitzbefore adoptionfe0850f

line 24why, one step back
24sys.path.insert(0, os.path.abspath('..'))

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

lines 25–26why, one step back
25sys.path.insert(0, os.path.abspath('_themes'))
26

Update conf.pyKenneth Reitzbefore adoptionfe0850f

lines 27–29why, one step back
27import requests
28from requests import __version__29

Merge pull request #2915 from onceuponatimeforever/alabaster_sphinx_themeKenneth Reitzbefore adoption820d31d

line 30why, one step back
30

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

line 31why, one step back
31# -- General configuration ------------------------------------------------

Update conf.pyKenneth Reitzbefore adoptionfe0850f

lines 32–35why, one step back
32
33# If your documentation needs a minimal Sphinx version, state it here.34#needs_sphinx = '1.0'35

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

lines 36–38why, one step back
36# Add any Sphinx extension module names here, as strings. They can be
37# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom38# ones.

Update conf.pyKenneth Reitzbefore adoptionfe0850f

lines 39–41why, one step back
39extensions = [
40 'sphinx.ext.autodoc',41 'sphinx.ext.intersphinx',

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

lines 42–43why, one step back
42 'sphinx.ext.todo',
43 'sphinx.ext.viewcode',

Update conf.pyKenneth Reitzbefore adoptionfe0850f

lines 44–48why, one step back
44]
4546# Add any paths that contain templates here, relative to this directory.47templates_path = ['_templates']48

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

lines 49–51why, one step back
49# The suffix(es) of source filenames.
50# You can specify multiple suffix as a list of string:51# source_suffix = ['.rst', '.md']

Update conf.pyKenneth Reitzbefore adoptionfe0850f

lines 52–62why, one step back
52source_suffix = '.rst'
5354# The encoding of source files.55#source_encoding = 'utf-8-sig'5657# The master toctree document.58master_doc = 'index'5960# General information about the project.61project = u'Requests'62copyright = u'2016. A <a href="http://kennethreitz.com/pages/open-projects.html">Kenneth Reitz</a> Project'

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

line 63why, one step back
63author = u'Kenneth Reitz'

Update conf.pyKenneth Reitzbefore adoptionfe0850f

lines 64–71why, one step back
64
65# The version info for the project you're documenting, acts as replacement for66# |version| and |release|, also used in various other places throughout the67# built documents.68#69# The short X.Y version.70version = __version__71# The full version, including alpha/beta/rc tags.

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

line 72why, one step back
72release = __version__

Update conf.pyKenneth Reitzbefore adoptionfe0850f

lines 73–75why, one step back
73
74# The language for content autogenerated by Sphinx. Refer to documentation75# for a list of supported languages.

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

lines 76–79why, one step back
76#
77# This is also used if you do content translation via gettext catalogs.78# Usually you set "language" from the command line for these cases.79language = None

Update conf.pyKenneth Reitzbefore adoptionfe0850f

lines 80–90why, one step back
80
81# There are two options for replacing |today|: either, you set today to some82# non-false value, then it is used:83#today = ''84# Else, today_fmt is used as the format for a strftime call.85#today_fmt = '%B %d, %Y'8687# List of patterns, relative to source directory, that match files and88# directories to ignore when looking for source files.89exclude_patterns = ['_build']90

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

lines 91–92why, one step back
91# The reST default role (used for this markup: `text`) to use for all
92# documents.

Update conf.pyKenneth Reitzbefore adoptionfe0850f

lines 93–95why, one step back
93#default_role = None
9495# If true, '()' will be appended to :func: etc. cross-reference text.

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

line 96why, one step back
96add_function_parentheses = False

Update conf.pyKenneth Reitzbefore adoptionfe0850f

lines 97–99why, one step back
97
98# If true, the current module name will be prepended to all description99# unit titles (such as .. function::).

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

line 100why, one step back
100add_module_names = True

Update conf.pyKenneth Reitzbefore adoptionfe0850f

lines 101–111why, one step back
101
102# If true, sectionauthor and moduleauthor directives will be shown in the103# output. They are ignored by default.104#show_authors = False105106# The name of the Pygments (syntax highlighting) style to use.107pygments_style = 'flask_theme_support.FlaskyStyle'108109# A list of ignored prefixes for module index sorting.110#modindex_common_prefix = []111

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

lines 112–113why, one step back
112# If true, keep warnings as "system message" paragraphs in the built documents.
113#keep_warnings = False

Update conf.pyKenneth Reitzbefore adoptionfe0850f

line 114why, one step back
114

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

lines 115–116why, one step back
115# If true, `todo` and `todoList` produce output, else they produce nothing.
116todo_include_todos = True

Update conf.pyKenneth Reitzbefore adoptionfe0850f

line 117why, one step back
117

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

lines 118–120why, one step back
118
119# -- Options for HTML output ----------------------------------------------120

Update conf.pyKenneth Reitzbefore adoptionfe0850f

lines 121–122why, one step back
121# The theme to use for HTML and HTML Help pages. See the documentation for
122# a list of builtin themes.

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

line 123why, one step back
123html_theme = 'alabaster'

Update conf.pyKenneth Reitzbefore adoptionfe0850f

lines 124–127why, one step back
124
125# Theme options are theme-specific and customize the look and feel of a theme126# further. For a list of options available for each theme, see the127# documentation.

Merge pull request #2915 from onceuponatimeforever/alabaster_sphinx_themeKenneth Reitzbefore adoption820d31d

line 128why, one step back
128html_theme_options = {

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

lines 129–133why, one step back
129 'show_powered_by': False,
130 'github_user': 'kennethreitz',131 'github_repo': 'requests',132 'github_banner': True,133 'show_related': False

Merge pull request #2915 from onceuponatimeforever/alabaster_sphinx_themeKenneth Reitzbefore adoption820d31d

line 134why, one step back
134}

Update conf.pyKenneth Reitzbefore adoptionfe0850f

lines 135–159why, one step back
135
136# Add any paths that contain custom themes here, relative to this directory.137#html_theme_path = []138139# The name for this set of Sphinx documents. If None, it defaults to140# "<project> v<release> documentation".141#html_title = None142143# A shorter title for the navigation bar. Default is the same as html_title.144#html_short_title = None145146# The name of an image file (relative to this directory) to place at the top147# of the sidebar.148#html_logo = None149150# The name of an image file (within the static path) to use as favicon of the151# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32152# pixels large.153#html_favicon = None154155# 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".158html_static_path = ['_static']159

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

lines 160–164why, one step back
160# Add any extra paths that contain custom files (such as robots.txt or
161# .htaccess) here, relative to this directory. These files are copied162# directly to the root of the documentation.163#html_extra_path = []164

Update conf.pyKenneth Reitzbefore adoptionfe0850f

lines 165–170why, one step back
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'168169# If true, SmartyPants will be used to convert quotes and dashes to170# typographically correct entities.

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

line 171why, one step back
171html_use_smartypants = False

Update conf.pyKenneth Reitzbefore adoptionfe0850f

lines 172–174why, one step back
172
173# Custom sidebar templates, maps document names to template names.174html_sidebars = {

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

lines 175–176why, one step back
175 'index': ['sidebarintro.html', 'sourcelink.html', 'searchbox.html',
176 'hacks.html'],

Update conf.pyKenneth Reitzbefore adoptionfe0850f

line 177why, one step back
177 '**': ['sidebarlogo.html', 'localtoc.html', 'relations.html',

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

line 178why, one step back
178 'sourcelink.html', 'searchbox.html', 'hacks.html']

Update conf.pyKenneth Reitzbefore adoptionfe0850f

lines 179–200why, one step back
179}
180181# Additional templates that should be rendered to pages, maps page names to182# template names.183#html_additional_pages = {}184185# If false, no module index is generated.186#html_domain_indices = True187188# If false, no index is generated.189#html_use_index = True190191# If true, the index is split into individual pages for each letter.192#html_split_index = False193194# If true, links to the reST sources are added to the pages.195html_show_sourcelink = False196197# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.198html_show_sphinx = False199200# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

line 201why, one step back
201html_show_copyright = True

Update conf.pyKenneth Reitzbefore adoptionfe0850f

lines 202–210why, one step back
202
203# If true, an OpenSearch description file will be output, and all pages will204# contain a <link> tag referring to it. The value of this option must be the205# base URL from which the finished HTML is served.206#html_use_opensearch = ''207208# This is the file name suffix for HTML files (e.g. ".xhtml").209#html_file_suffix = None210

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

lines 211–224why, one step back
211# Language to be used for generating the HTML full-text search index.
212# Sphinx supports the following languages:213# 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'214# 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr'215#html_search_language = 'en'216217# A dictionary with options for the search language support, empty by default.218# Now only 'ja' uses this config value219#html_search_options = {'type': 'default'}220221# The name of a javascript file (relative to the configuration directory) that222# implements a search results scorer. If empty, the default will be used.223#html_search_scorer = 'scorer.js'224

Update conf.pyKenneth Reitzbefore adoptionfe0850f

lines 225–227why, one step back
225# Output file base name for HTML help builder.
226htmlhelp_basename = 'Requestsdoc'227

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

line 228why, one step back
228# -- Options for LaTeX output ---------------------------------------------

Update conf.pyKenneth Reitzbefore adoptionfe0850f

line 229why, one step back
229

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

lines 230–232why, one step back
230latex_elements = {
231# The paper size ('letterpaper' or 'a4paper').232#'papersize': 'letterpaper',

Update conf.pyKenneth Reitzbefore adoptionfe0850f

lines 233–234why, one step back
233
234# The font size ('10pt', '11pt' or '12pt').

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

line 235why, one step back
235#'pointsize': '10pt',

Update conf.pyKenneth Reitzbefore adoptionfe0850f

line 236why, one step back
236

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

lines 237–243why, one step back
237# Additional stuff for the LaTeX preamble.
238#'preamble': '',239240# Latex figure (float) alignment241#'figure_align': 'htbp',242}243

Update conf.pyKenneth Reitzbefore adoptionfe0850f

line 244why, one step back
244# Grouping the document tree into LaTeX files. List of tuples

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

lines 245–246why, one step back
245# (source start file, target name, title,
246# author, documentclass [howto, manual, or own class]).

Update conf.pyKenneth Reitzbefore adoptionfe0850f

line 247why, one step back
247latex_documents = [

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

lines 248–249why, one step back
248 (master_doc, 'Requests.tex', u'Requests Documentation',
249 u'Kenneth Reitz', 'manual'),

Update conf.pyKenneth Reitzbefore adoptionfe0850f

lines 250–272why, one step back
250]
251252# The name of an image file (relative to this directory) to place at the top of253# the title page.254#latex_logo = None255256# For "manual" documents, if this is true, then toplevel headings are parts,257# not chapters.258#latex_use_parts = False259260# If true, show page references after internal links.261#latex_show_pagerefs = False262263# If true, show URL addresses after external links.264#latex_show_urls = False265266# Documents to append as an appendix to all manuals.267#latex_appendices = []268269# If false, no module index is generated.270#latex_domain_indices = True271272

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

line 273why, one step back
273# -- Options for manual page output ---------------------------------------

Update conf.pyKenneth Reitzbefore adoptionfe0850f

lines 274–277why, one step back
274
275# One entry per manual page. List of tuples276# (source start file, name, description, authors, manual section).277man_pages = [

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

lines 278–279why, one step back
278 (master_doc, 'requests', u'Requests Documentation',
279 [author], 1)

Update conf.pyKenneth Reitzbefore adoptionfe0850f

lines 280–285why, one step back
280]
281282# If true, show URL addresses after external links.283#man_show_urls = False284285

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

lines 286–287why, one step back
286# -- Options for Texinfo output -------------------------------------------
287

Update conf.pyKenneth Reitzbefore adoptionfe0850f

lines 288–291why, one step back
288# Grouping the document tree into Texinfo files. List of tuples
289# (source start file, target name, title, author,290# dir menu entry, description, category)291texinfo_documents = [

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

lines 292–294why, one step back
292 (master_doc, 'Requests', u'Requests Documentation',
293 author, 'Requests', 'One line description of project.',294 'Miscellaneous'),

Update conf.pyKenneth Reitzbefore adoptionfe0850f

lines 295–297why, one step back
295]
296297# Documents to append as an appendix to all manuals.

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

line 298why, one step back
298#texinfo_appendices = []

Update conf.pyKenneth Reitzbefore adoptionfe0850f

line 299why, one step back
299

sphinx is now working properly on RTD (grrrR)Kenneth Reitzbefore adoptiondbefff6

lines 300–377why, one step back
300# If false, no module index is generated.
301#texinfo_domain_indices = True302303# How to display URL addresses: 'footnote', 'no', or 'inline'.304#texinfo_show_urls = 'footnote'305306# If true, do not generate a @detailmenu in the "Top" node's menu.307#texinfo_no_detailmenu = False308309310# -- Options for Epub output ----------------------------------------------311312# Bibliographic Dublin Core info.313epub_title = project314epub_author = author315epub_publisher = author316epub_copyright = copyright317318# The basename for the epub file. It defaults to the project name.319#epub_basename = project320321# The HTML theme for the epub output. Since the default themes are not322# optimized for small screen space, using the same theme for HTML and epub323# output is usually not wise. This defaults to 'epub', a theme designed to save324# visual space.325#epub_theme = 'epub'326327# The language of the text. It defaults to the language option328# or 'en' if the language is not set.329#epub_language = ''330331# The scheme of the identifier. Typical schemes are ISBN or URL.332#epub_scheme = ''333334# The unique identifier of the text. This can be a ISBN number335# or the project homepage.336#epub_identifier = ''337338# A unique identification for the text.339#epub_uid = ''340341# A tuple containing the cover image and cover page html template filenames.342#epub_cover = ()343344# A sequence of (type, uri, title) tuples for the guide element of content.opf.345#epub_guide = ()346347# HTML files that should be inserted before the pages created by sphinx.348# The format is a list of tuples containing the path and title.349#epub_pre_files = []350351# HTML files that should be inserted after the pages created by sphinx.352# The format is a list of tuples containing the path and title.353#epub_post_files = []354355# A list of files that should not be packed into the epub file.356epub_exclude_files = ['search.html']357358# The depth of the table of contents in toc.ncx.359#epub_tocdepth = 3360361# Allow duplicate toc entries.362#epub_tocdup = True363364# Choose between 'default' and 'includehidden'.365#epub_tocscope = 'default'366367# Fix unsupported image types using the Pillow.368#epub_fix_images = False369370# Scale large images.371#epub_max_image_width = 0372373# How to display URL addresses: 'footnote', 'no', or 'inline'.374#epub_show_urls = 'inline'375376# If false, no index is generated.377#epub_use_index = True

Update conf.pyKenneth Reitzbefore adoptionfe0850f

line 378why, one step back
378

Merge pull request #3136 from Natim/readthedocs.ioCory Benfieldbefore adoption252bfa7

line 379why, one step back
379intersphinx_mapping = {'urllib3': ('http://urllib3.readthedocs.io/en/latest', None)}