conf.py
This file
Path
docs/conf.py
244 lines · 7.9 KiB · Python
Last changed by
RTD doesn't work w/ thisKenneth Reitzbefore adoptione102c1b
History of this fileTake it
The walk stopped after 200 commits: lines older than 3d1444b point at it.
Update documentation of the "data" parameter for requests.post() to indicate that it allows bytes. Update documentation of requests.put() to refer to the "data" parameter rather than the (hidden, but functional) "params" parameter, and note that that also allows both bytes and dictionaries.Richard Boultonbefore adoption3d1444b
lines 1–157why, one step back1# -*- 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.30extensions = ['sphinx.ext.autodoc']3132# Add any paths that contain templates here, relative to this directory.33templates_path = ['_templates']3435# The suffix of source filenames.36source_suffix = '.rst'3738# The encoding of source files.39#source_encoding = 'utf-8-sig'4041# The master toctree document.42master_doc = 'index'4344# General information about the project.45project = u'Requests'46copyright = u'2011. A <a href="http://kennethreitz.com/pages/open-projects.html">Kenneth Reitz</a> Project'4748# The version info for the project you're documenting, acts as replacement for49# |version| and |release|, also used in various other places throughout the50# built documents.51#52# The short X.Y version.53version = __version__54# The full version, including alpha/beta/rc tags.55release = version5657# The language for content autogenerated by Sphinx. Refer to documentation58# for a list of supported languages.59#language = None6061# There are two options for replacing |today|: either, you set today to some62# non-false value, then it is used:63#today = ''64# Else, today_fmt is used as the format for a strftime call.65#today_fmt = '%B %d, %Y'6667# List of patterns, relative to source directory, that match files and68# directories to ignore when looking for source files.69exclude_patterns = ['_build']7071# The reST default role (used for this markup: `text`) to use for all documents.72#default_role = None7374# If true, '()' will be appended to :func: etc. cross-reference text.75#add_function_parentheses = True7677# If true, the current module name will be prepended to all description78# unit titles (such as .. function::).79#add_module_names = True8081# If true, sectionauthor and moduleauthor directives will be shown in the82# output. They are ignored by default.83#show_authors = False8485# The name of the Pygments (syntax highlighting) style to use.86pygments_style = 'flask_theme_support.FlaskyStyle'8788# A list of ignored prefixes for module index sorting.89#modindex_common_prefix = []909192# -- Options for HTML output ---------------------------------------------------9394# The theme to use for HTML and HTML Help pages. See the documentation for95# a list of builtin themes.96html_theme = 'default'9798# Theme options are theme-specific and customize the look and feel of a theme99# further. For a list of options available for each theme, see the100# documentation.101#html_theme_options = {}102103# Add any paths that contain custom themes here, relative to this directory.104#html_theme_path = []105106# The name for this set of Sphinx documents. If None, it defaults to107# "<project> v<release> documentation".108#html_title = None109110# A shorter title for the navigation bar. Default is the same as html_title.111#html_short_title = None112113# The name of an image file (relative to this directory) to place at the top114# of the sidebar.115#html_logo = None116117118# The name of an image file (within the static path) to use as favicon of the119# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32120# pixels large.121#html_favicon = None122123# Add any paths that contain custom static files (such as style sheets) here,124# relative to this directory. They are copied after the builtin static files,125# so a file named "default.css" will overwrite the builtin "default.css".126html_static_path = ['_static']127128# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,129# using the given strftime format.130#html_last_updated_fmt = '%b %d, %Y'131132# If true, SmartyPants will be used to convert quotes and dashes to133# typographically correct entities.134#html_use_smartypants = True135136# Custom sidebar templates, maps document names to template names.137# Custom sidebar templates, maps document names to template names.138html_sidebars = {139 'index': ['sidebarintro.html', 'sourcelink.html', 'searchbox.html'],140 '**': ['sidebarlogo.html', 'localtoc.html', 'relations.html',141 'sourcelink.html', 'searchbox.html']142}143144# Additional templates that should be rendered to pages, maps page names to145# template names.146#html_additional_pages = {}147148# If false, no module index is generated.149#html_domain_indices = True150151# If false, no index is generated.152#html_use_index = True153154# If true, the index is split into individual pages for each letter.155#html_split_index = False156157# If true, links to the reST sources are added to the pages.RTD doesn't work w/ thisKenneth Reitzbefore adoptione102c1b
line 158why, one step back158html_show_sourcelink = FalseUpdate documentation of the "data" parameter for requests.post() to indicate that it allows bytes. Update documentation of requests.put() to refer to the "data" parameter rather than the (hidden, but functional) "params" parameter, and note that that also allows both bytes and dictionaries.Richard Boultonbefore adoption3d1444b
lines 159–244why, one step back159160# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.161html_show_sphinx = False162163# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.164#html_show_copyright = True165166# If true, an OpenSearch description file will be output, and all pages will167# contain a <link> tag referring to it. The value of this option must be the168# base URL from which the finished HTML is served.169#html_use_opensearch = ''170171# This is the file name suffix for HTML files (e.g. ".xhtml").172#html_file_suffix = None173174# Output file base name for HTML help builder.175htmlhelp_basename = 'Requestsdoc'176177178# -- Options for LaTeX output --------------------------------------------------179180# The paper size ('letter' or 'a4').181#latex_paper_size = 'letter'182183# The font size ('10pt', '11pt' or '12pt').184#latex_font_size = '10pt'185186# Grouping the document tree into LaTeX files. List of tuples187# (source start file, target name, title, author, documentclass [howto/manual]).188latex_documents = [189 ('index', 'Requests.tex', u'Requests Documentation',190 u'Kenneth Reitz', 'manual'),191]192193# The name of an image file (relative to this directory) to place at the top of194# the title page.195#latex_logo = None196197# For "manual" documents, if this is true, then toplevel headings are parts,198# not chapters.199#latex_use_parts = False200201# If true, show page references after internal links.202#latex_show_pagerefs = False203204# If true, show URL addresses after external links.205#latex_show_urls = False206207# Additional stuff for the LaTeX preamble.208#latex_preamble = ''209210# Documents to append as an appendix to all manuals.211#latex_appendices = []212213# If false, no module index is generated.214#latex_domain_indices = True215216217# -- Options for manual page output --------------------------------------------218219# One entry per manual page. List of tuples220# (source start file, name, description, authors, manual section).221man_pages = [222 ('index', 'requests', u'Requests Documentation',223 [u'Kenneth Reitz'], 1)224]225226# If true, show URL addresses after external links.227#man_show_urls = False228229# -- Options for Texinfo output ------------------------------------------------230231# Grouping the document tree into Texinfo files. List of tuples232# (source start file, target name, title, author,233# dir menu entry, description, category)234texinfo_documents = [235 ('index', 'Requests', u'Requests Documentation', u'Kenneth Reitz',236 'Requests', 'One line description of project.', 'Miscellaneous'),237]238239# Documents to append as an appendix to all manuals.240texinfo_appendices = []241242sys.path.append(os.path.abspath('_themes'))243html_theme_path = ['_themes']244html_theme = 'kr'