Skip to content
Myr

conf.py

This file

Path

docs/conf.py

378 lines · 11.8 KiB · Python

Last changed by

__version__Kenneth Reitzbefore adoption296c215

History of this file

Take it

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

we don't support python 3.2Kenneth Reitzbefore adoption5a280a1

lines 1–60why, one step back
1# -*- coding: utf-8 -*-
2#3# Requests documentation build configuration file, created by4# sphinx-quickstart on Fri Feb 19 00:05:47 2016.5#6# This file is execfile()d with the current directory set to its7# containing dir.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.1415import sys16import os1718# 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.21#sys.path.insert(0, os.path.abspath('.'))2223# Insert Requests' path into the system.24sys.path.insert(0, os.path.abspath('..'))25sys.path.insert(0, os.path.abspath('_themes'))2627import requests282930# -- General configuration ------------------------------------------------3132# If your documentation needs a minimal Sphinx version, state it here.33#needs_sphinx = '1.0'3435# Add any Sphinx extension module names here, as strings. They can be36# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom37# ones.38extensions = [39 'sphinx.ext.autodoc',40 'sphinx.ext.intersphinx',41 'sphinx.ext.todo',42 'sphinx.ext.viewcode',43]4445# Add any paths that contain templates here, relative to this directory.46templates_path = ['_templates']4748# The suffix(es) of source filenames.49# You can specify multiple suffix as a list of string:50# source_suffix = ['.rst', '.md']51source_suffix = '.rst'5253# The encoding of source files.54#source_encoding = 'utf-8-sig'5556# The master toctree document.57master_doc = 'index'5859# General information about the project.60project = u'Requests'

roman numberalsKenneth Reitzbefore adoption1cb759a

line 61why, one step back
61copyright = u'MMXVII. A <a href="http://kennethreitz.com/pages/open-projects.html">Kenneth Reitz</a> Project'

we don't support python 3.2Kenneth Reitzbefore adoption5a280a1

lines 62–68why, one step back
62author = u'Kenneth Reitz'
6364# The version info for the project you're documenting, acts as replacement for65# |version| and |release|, also used in various other places throughout the66# built documents.67#68# The short X.Y version.

__version__Kenneth Reitzbefore adoption296c215

line 69why, one step back
69version = requests.__version__

we don't support python 3.2Kenneth Reitzbefore adoption5a280a1

line 70why, one step back
70# The full version, including alpha/beta/rc tags.

__version__Kenneth Reitzbefore adoption296c215

line 71why, one step back
71release = requests.__version__

we don't support python 3.2Kenneth Reitzbefore adoption5a280a1

lines 72–378why, one step back
72
73# The language for content autogenerated by Sphinx. Refer to documentation74# 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.78language = None7980# There are two options for replacing |today|: either, you set today to some81# 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'8586# List of patterns, relative to source directory, that match files and87# directories to ignore when looking for source files.88exclude_patterns = ['_build']8990# The reST default role (used for this markup: `text`) to use for all91# documents.92#default_role = None9394# If true, '()' will be appended to :func: etc. cross-reference text.95add_function_parentheses = False9697# If true, the current module name will be prepended to all description98# unit titles (such as .. function::).99add_module_names = True100101# If true, sectionauthor and moduleauthor directives will be shown in the102# output. They are ignored by default.103#show_authors = False104105# The name of the Pygments (syntax highlighting) style to use.106pygments_style = 'flask_theme_support.FlaskyStyle'107108# A list of ignored prefixes for module index sorting.109#modindex_common_prefix = []110111# If true, keep warnings as "system message" paragraphs in the built documents.112#keep_warnings = False113114# If true, `todo` and `todoList` produce output, else they produce nothing.115todo_include_todos = True116117118# -- Options for HTML output ----------------------------------------------119120# The theme to use for HTML and HTML Help pages. See the documentation for121# a list of builtin themes.122html_theme = 'alabaster'123124# Theme options are theme-specific and customize the look and feel of a theme125# further. For a list of options available for each theme, see the126# documentation.127html_theme_options = {128 'show_powered_by': False,129 'github_user': 'kennethreitz',130 'github_repo': 'requests',131 'github_banner': True,132 'show_related': False133}134135# Add any paths that contain custom themes here, relative to this directory.136#html_theme_path = []137138# The name for this set of Sphinx documents. If None, it defaults to139# "<project> v<release> documentation".140#html_title = None141142# A shorter title for the navigation bar. Default is the same as html_title.143#html_short_title = None144145# The name of an image file (relative to this directory) to place at the top146# of the sidebar.147#html_logo = None148149# The name of an image file (within the static path) to use as favicon of the150# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32151# pixels large.152#html_favicon = None153154# Add any paths that contain custom static files (such as style sheets) here,155# relative to this directory. They are copied after the builtin static files,156# so a file named "default.css" will overwrite the builtin "default.css".157html_static_path = ['_static']158159# Add any extra paths that contain custom files (such as robots.txt or160# .htaccess) here, relative to this directory. These files are copied161# directly to the root of the documentation.162#html_extra_path = []163164# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,165# using the given strftime format.166#html_last_updated_fmt = '%b %d, %Y'167168# If true, SmartyPants will be used to convert quotes and dashes to169# typographically correct entities.170html_use_smartypants = False171172# Custom sidebar templates, maps document names to template names.173html_sidebars = {174 'index': ['sidebarintro.html', 'sourcelink.html', 'searchbox.html',175 'hacks.html'],176 '**': ['sidebarlogo.html', 'localtoc.html', 'relations.html',177 'sourcelink.html', 'searchbox.html', 'hacks.html']178}179180# Additional templates that should be rendered to pages, maps page names to181# template names.182#html_additional_pages = {}183184# If false, no module index is generated.185#html_domain_indices = True186187# If false, no index is generated.188#html_use_index = True189190# If true, the index is split into individual pages for each letter.191#html_split_index = False192193# If true, links to the reST sources are added to the pages.194html_show_sourcelink = False195196# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.197html_show_sphinx = False198199# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.200html_show_copyright = True201202# If true, an OpenSearch description file will be output, and all pages will203# contain a <link> tag referring to it. The value of this option must be the204# base URL from which the finished HTML is served.205#html_use_opensearch = ''206207# This is the file name suffix for HTML files (e.g. ".xhtml").208#html_file_suffix = None209210# Language to be used for generating the HTML full-text search index.211# Sphinx supports the following languages:212# 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'213# 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr'214#html_search_language = 'en'215216# A dictionary with options for the search language support, empty by default.217# Now only 'ja' uses this config value218#html_search_options = {'type': 'default'}219220# The name of a javascript file (relative to the configuration directory) that221# implements a search results scorer. If empty, the default will be used.222#html_search_scorer = 'scorer.js'223224# Output file base name for HTML help builder.225htmlhelp_basename = 'Requestsdoc'226227# -- Options for LaTeX output ---------------------------------------------228229latex_elements = {230# The paper size ('letterpaper' or 'a4paper').231#'papersize': 'letterpaper',232233# The font size ('10pt', '11pt' or '12pt').234#'pointsize': '10pt',235236# Additional stuff for the LaTeX preamble.237#'preamble': '',238239# Latex figure (float) alignment240#'figure_align': 'htbp',241}242243# Grouping the document tree into LaTeX files. List of tuples244# (source start file, target name, title,245# author, documentclass [howto, manual, or own class]).246latex_documents = [247 (master_doc, 'Requests.tex', u'Requests Documentation',248 u'Kenneth Reitz', 'manual'),249]250251# The name of an image file (relative to this directory) to place at the top of252# the title page.253#latex_logo = None254255# For "manual" documents, if this is true, then toplevel headings are parts,256# not chapters.257#latex_use_parts = False258259# If true, show page references after internal links.260#latex_show_pagerefs = False261262# If true, show URL addresses after external links.263#latex_show_urls = False264265# Documents to append as an appendix to all manuals.266#latex_appendices = []267268# If false, no module index is generated.269#latex_domain_indices = True270271272# -- Options for manual page output ---------------------------------------273274# One entry per manual page. List of tuples275# (source start file, name, description, authors, manual section).276man_pages = [277 (master_doc, 'requests', u'Requests Documentation',278 [author], 1)279]280281# If true, show URL addresses after external links.282#man_show_urls = False283284285# -- Options for Texinfo output -------------------------------------------286287# Grouping the document tree into Texinfo files. List of tuples288# (source start file, target name, title, author,289# dir menu entry, description, category)290texinfo_documents = [291 (master_doc, 'Requests', u'Requests Documentation',292 author, 'Requests', 'One line description of project.',293 'Miscellaneous'),294]295296# Documents to append as an appendix to all manuals.297#texinfo_appendices = []298299# If false, no module index is generated.300#texinfo_domain_indices = True301302# How to display URL addresses: 'footnote', 'no', or 'inline'.303#texinfo_show_urls = 'footnote'304305# If true, do not generate a @detailmenu in the "Top" node's menu.306#texinfo_no_detailmenu = False307308309# -- Options for Epub output ----------------------------------------------310311# Bibliographic Dublin Core info.312epub_title = project313epub_author = author314epub_publisher = author315epub_copyright = copyright316317# The basename for the epub file. It defaults to the project name.318#epub_basename = project319320# The HTML theme for the epub output. Since the default themes are not321# optimized for small screen space, using the same theme for HTML and epub322# output is usually not wise. This defaults to 'epub', a theme designed to save323# visual space.324#epub_theme = 'epub'325326# The language of the text. It defaults to the language option327# or 'en' if the language is not set.328#epub_language = ''329330# The scheme of the identifier. Typical schemes are ISBN or URL.331#epub_scheme = ''332333# The unique identifier of the text. This can be a ISBN number334# or the project homepage.335#epub_identifier = ''336337# A unique identification for the text.338#epub_uid = ''339340# A tuple containing the cover image and cover page html template filenames.341#epub_cover = ()342343# A sequence of (type, uri, title) tuples for the guide element of content.opf.344#epub_guide = ()345346# HTML files that should be inserted before the pages created by sphinx.347# The format is a list of tuples containing the path and title.348#epub_pre_files = []349350# HTML files that should be inserted after the pages created by sphinx.351# The format is a list of tuples containing the path and title.352#epub_post_files = []353354# A list of files that should not be packed into the epub file.355epub_exclude_files = ['search.html']356357# The depth of the table of contents in toc.ncx.358#epub_tocdepth = 3359360# Allow duplicate toc entries.361#epub_tocdup = True362363# Choose between 'default' and 'includehidden'.364#epub_tocscope = 'default'365366# Fix unsupported image types using the Pillow.367#epub_fix_images = False368369# Scale large images.370#epub_max_image_width = 0371372# How to display URL addresses: 'footnote', 'no', or 'inline'.373#epub_show_urls = 'inline'374375# If false, no index is generated.376#epub_use_index = True377378intersphinx_mapping = {'urllib3': ('http://urllib3.readthedocs.io/en/latest', None)}