Skip to content
Myr

conf.py

This file

Path

docs/conf.py

243 lines · 7.8 KiB · Python

Last changed by

Merge pull request #1245 from Damgaard/masterKenneth Reitzbefore adoptiondb90d85

History of this file

Take it

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

Merge pull request #1048 from ib-lundgren/masterKenneth Reitzbefore adoption0769ee3

lines 1–45why, 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.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'

+1Kenneth Reitzbefore adoption3491761

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

Merge pull request #1048 from ib-lundgren/masterKenneth Reitzbefore adoption0769ee3

lines 47–243why, one step back
47
48# 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.137html_sidebars = {138 'index': ['sidebarintro.html', 'sourcelink.html', 'searchbox.html'],139 '**': ['sidebarlogo.html', 'localtoc.html', 'relations.html',140 'sourcelink.html', 'searchbox.html']141}142143# Additional templates that should be rendered to pages, maps page names to144# template names.145#html_additional_pages = {}146147# If false, no module index is generated.148#html_domain_indices = True149150# If false, no index is generated.151#html_use_index = True152153# If true, the index is split into individual pages for each letter.154#html_split_index = False155156# If true, links to the reST sources are added to the pages.157html_show_sourcelink = False158159# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.160html_show_sphinx = False161162# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.163#html_show_copyright = True164165# If true, an OpenSearch description file will be output, and all pages will166# contain a <link> tag referring to it. The value of this option must be the167# base URL from which the finished HTML is served.168#html_use_opensearch = ''169170# This is the file name suffix for HTML files (e.g. ".xhtml").171#html_file_suffix = None172173# Output file base name for HTML help builder.174htmlhelp_basename = 'Requestsdoc'175176177# -- Options for LaTeX output --------------------------------------------------178179# The paper size ('letter' or 'a4').180#latex_paper_size = 'letter'181182# The font size ('10pt', '11pt' or '12pt').183#latex_font_size = '10pt'184185# Grouping the document tree into LaTeX files. List of tuples186# (source start file, target name, title, author, documentclass [howto/manual]).187latex_documents = [188 ('index', 'Requests.tex', u'Requests Documentation',189 u'Kenneth Reitz', 'manual'),190]191192# The name of an image file (relative to this directory) to place at the top of193# the title page.194#latex_logo = None195196# For "manual" documents, if this is true, then toplevel headings are parts,197# not chapters.198#latex_use_parts = False199200# If true, show page references after internal links.201#latex_show_pagerefs = False202203# If true, show URL addresses after external links.204#latex_show_urls = False205206# Additional stuff for the LaTeX preamble.207#latex_preamble = ''208209# Documents to append as an appendix to all manuals.210#latex_appendices = []211212# If false, no module index is generated.213#latex_domain_indices = True214215216# -- Options for manual page output --------------------------------------------217218# One entry per manual page. List of tuples219# (source start file, name, description, authors, manual section).220man_pages = [221 ('index', 'requests', u'Requests Documentation',222 [u'Kenneth Reitz'], 1)223]224225# If true, show URL addresses after external links.226#man_show_urls = False227228# -- Options for Texinfo output ------------------------------------------------229230# Grouping the document tree into Texinfo files. List of tuples231# (source start file, target name, title, author,232# dir menu entry, description, category)233texinfo_documents = [234 ('index', 'Requests', u'Requests Documentation', u'Kenneth Reitz',235 'Requests', 'One line description of project.', 'Miscellaneous'),236]237238# Documents to append as an appendix to all manuals.239texinfo_appendices = []240241sys.path.append(os.path.abspath('_themes'))242html_theme_path = ['_themes']243html_theme = 'kr'