Skip to content
Myr

conf.py

This file

Path

docs/conf.py

248 lines · 7.9 KiB · Python

Last changed by

Merge branch 'master' into fix-pickling-adaptersKenneth Reitzbefore adoptiondf1c233

History of this file

Take it

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

Merge pull request #1739 from pengfei-xue/develKenneth Reitzbefore adoption947375e

lines 1–29why, one step back
1# -*- coding: utf-8 -*-
2#3# Requests documentation build configuration file, created by4# sphinx-quickstart on Sun Feb 13 23:54:25 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 this9# autogenerated file.10#11# All configuration values have a default; values that are commented out12# serve to show the default.1314import sys, os1516# If extensions (or modules to document with autodoc) are in another directory,17# add these directories to sys.path here. If the directory is relative to the18# documentation root, use os.path.abspath to make it absolute, like shown here.19sys.path.insert(0, os.path.abspath('..'))20import requests21from requests import __version__2223# -- General configuration -----------------------------------------------------2425# If your documentation needs a minimal Sphinx version, state it here.26#needs_sphinx = '1.0'2728# Add any Sphinx extension module names here, as strings. They can be extensions29# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.

Merge branch 'master' into fix-pickling-adaptersKenneth Reitzbefore adoptiondf1c233

lines 30–33why, one step back
30extensions = [
31 'sphinx.ext.autodoc',32 'sphinx.ext.intersphinx',33]

Merge pull request #1739 from pengfei-xue/develKenneth Reitzbefore adoption947375e

lines 34–48why, one step back
34
35# Add any paths that contain templates here, relative to this directory.36templates_path = ['_templates']3738# The suffix of source filenames.39source_suffix = '.rst'4041# The encoding of source files.42#source_encoding = 'utf-8-sig'4344# The master toctree document.45master_doc = 'index'4647# General information about the project.48project = u'Requests'

Merge branch 'master' into fix-pickling-adaptersKenneth Reitzbefore adoptiondf1c233

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

Merge pull request #1739 from pengfei-xue/develKenneth Reitzbefore adoption947375e

lines 50–246why, one step back
50
51# The version info for the project you're documenting, acts as replacement for52# |version| and |release|, also used in various other places throughout the53# built documents.54#55# The short X.Y version.56version = __version__57# The full version, including alpha/beta/rc tags.58release = version5960# The language for content autogenerated by Sphinx. Refer to documentation61# for a list of supported languages.62#language = None6364# There are two options for replacing |today|: either, you set today to some65# non-false value, then it is used:66#today = ''67# Else, today_fmt is used as the format for a strftime call.68#today_fmt = '%B %d, %Y'6970# List of patterns, relative to source directory, that match files and71# directories to ignore when looking for source files.72exclude_patterns = ['_build']7374# The reST default role (used for this markup: `text`) to use for all documents.75#default_role = None7677# If true, '()' will be appended to :func: etc. cross-reference text.78#add_function_parentheses = True7980# If true, the current module name will be prepended to all description81# unit titles (such as .. function::).82#add_module_names = True8384# If true, sectionauthor and moduleauthor directives will be shown in the85# output. They are ignored by default.86#show_authors = False8788# The name of the Pygments (syntax highlighting) style to use.89pygments_style = 'flask_theme_support.FlaskyStyle'9091# A list of ignored prefixes for module index sorting.92#modindex_common_prefix = []939495# -- Options for HTML output ---------------------------------------------------9697# The theme to use for HTML and HTML Help pages. See the documentation for98# a list of builtin themes.99html_theme = 'default'100101# Theme options are theme-specific and customize the look and feel of a theme102# further. For a list of options available for each theme, see the103# documentation.104#html_theme_options = {}105106# Add any paths that contain custom themes here, relative to this directory.107#html_theme_path = []108109# The name for this set of Sphinx documents. If None, it defaults to110# "<project> v<release> documentation".111#html_title = None112113# A shorter title for the navigation bar. Default is the same as html_title.114#html_short_title = None115116# The name of an image file (relative to this directory) to place at the top117# of the sidebar.118#html_logo = None119120121# The name of an image file (within the static path) to use as favicon of the122# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32123# pixels large.124#html_favicon = None125126# Add any paths that contain custom static files (such as style sheets) here,127# relative to this directory. They are copied after the builtin static files,128# so a file named "default.css" will overwrite the builtin "default.css".129html_static_path = ['_static']130131# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,132# using the given strftime format.133#html_last_updated_fmt = '%b %d, %Y'134135# If true, SmartyPants will be used to convert quotes and dashes to136# typographically correct entities.137#html_use_smartypants = True138139# Custom sidebar templates, maps document names to template names.140html_sidebars = {141 'index': ['sidebarintro.html', 'sourcelink.html', 'searchbox.html'],142 '**': ['sidebarlogo.html', 'localtoc.html', 'relations.html',143 'sourcelink.html', 'searchbox.html']144}145146# Additional templates that should be rendered to pages, maps page names to147# template names.148#html_additional_pages = {}149150# If false, no module index is generated.151#html_domain_indices = True152153# If false, no index is generated.154#html_use_index = True155156# If true, the index is split into individual pages for each letter.157#html_split_index = False158159# If true, links to the reST sources are added to the pages.160html_show_sourcelink = False161162# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.163html_show_sphinx = False164165# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.166#html_show_copyright = True167168# If true, an OpenSearch description file will be output, and all pages will169# contain a <link> tag referring to it. The value of this option must be the170# base URL from which the finished HTML is served.171#html_use_opensearch = ''172173# This is the file name suffix for HTML files (e.g. ".xhtml").174#html_file_suffix = None175176# Output file base name for HTML help builder.177htmlhelp_basename = 'Requestsdoc'178179180# -- Options for LaTeX output --------------------------------------------------181182# The paper size ('letter' or 'a4').183#latex_paper_size = 'letter'184185# The font size ('10pt', '11pt' or '12pt').186#latex_font_size = '10pt'187188# Grouping the document tree into LaTeX files. List of tuples189# (source start file, target name, title, author, documentclass [howto/manual]).190latex_documents = [191 ('index', 'Requests.tex', u'Requests Documentation',192 u'Kenneth Reitz', 'manual'),193]194195# The name of an image file (relative to this directory) to place at the top of196# the title page.197#latex_logo = None198199# For "manual" documents, if this is true, then toplevel headings are parts,200# not chapters.201#latex_use_parts = False202203# If true, show page references after internal links.204#latex_show_pagerefs = False205206# If true, show URL addresses after external links.207#latex_show_urls = False208209# Additional stuff for the LaTeX preamble.210#latex_preamble = ''211212# Documents to append as an appendix to all manuals.213#latex_appendices = []214215# If false, no module index is generated.216#latex_domain_indices = True217218219# -- Options for manual page output --------------------------------------------220221# One entry per manual page. List of tuples222# (source start file, name, description, authors, manual section).223man_pages = [224 ('index', 'requests', u'Requests Documentation',225 [u'Kenneth Reitz'], 1)226]227228# If true, show URL addresses after external links.229#man_show_urls = False230231# -- Options for Texinfo output ------------------------------------------------232233# Grouping the document tree into Texinfo files. List of tuples234# (source start file, target name, title, author,235# dir menu entry, description, category)236texinfo_documents = [237 ('index', 'Requests', u'Requests Documentation', u'Kenneth Reitz',238 'Requests', 'One line description of project.', 'Miscellaneous'),239]240241# Documents to append as an appendix to all manuals.242texinfo_appendices = []243244sys.path.append(os.path.abspath('_themes'))245html_theme_path = ['_themes']246html_theme = 'kr'

Merge branch 'master' into fix-pickling-adaptersKenneth Reitzbefore adoptiondf1c233

lines 247–248why, one step back
247
248intersphinx_mapping = {'urllib3': ('http://urllib3.readthedocs.org/en/latest', None)}