conf.py
This file
Path
docs/conf.py
256 lines · 8.1 KiB · Python
Last changed by
github_bannerKenneth Reitzbefore adoption6592dbc
History of this fileTake it
The walk stopped after 200 commits: lines older than e74791d point at it.
Merge pull request #2238 from buttscicles/byte-urlsKenneth Reitzbefore adoptione74791d
lines 1–22why, 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__22Merge pull request #2915 from onceuponatimeforever/alabaster_sphinx_themeKenneth Reitzbefore adoption820d31d
lines 23–24why, one step back23import alabaster24Merge pull request #2238 from buttscicles/byte-urlsKenneth Reitzbefore adoptione74791d
lines 25–34why, one step back25# -- General configuration -----------------------------------------------------2627# If your documentation needs a minimal Sphinx version, state it here.28#needs_sphinx = '1.0'2930# Add any Sphinx extension module names here, as strings. They can be extensions31# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.32extensions = [33 'sphinx.ext.autodoc',34 'sphinx.ext.intersphinx',Merge pull request #2915 from onceuponatimeforever/alabaster_sphinx_themeKenneth Reitzbefore adoption820d31d
line 35why, one step back35 'alabaster'Merge pull request #2238 from buttscicles/byte-urlsKenneth Reitzbefore adoptione74791d
lines 36–51why, one step back36]3738# Add any paths that contain templates here, relative to this directory.39templates_path = ['_templates']4041# The suffix of source filenames.42source_suffix = '.rst'4344# The encoding of source files.45#source_encoding = 'utf-8-sig'4647# The master toctree document.48master_doc = 'index'4950# General information about the project.51project = u'Requests'Update conf.pyKenneth Reitzbefore adoptionfe0850f
line 52why, one step back52copyright = u'2016. A <a href="http://kennethreitz.com/pages/open-projects.html">Kenneth Reitz</a> Project'Merge pull request #2238 from buttscicles/byte-urlsKenneth Reitzbefore adoptione74791d
lines 53–106why, one step back5354# The version info for the project you're documenting, acts as replacement for55# |version| and |release|, also used in various other places throughout the56# built documents.57#58# The short X.Y version.59version = __version__60# The full version, including alpha/beta/rc tags.61release = version6263# The language for content autogenerated by Sphinx. Refer to documentation64# for a list of supported languages.65#language = None6667# There are two options for replacing |today|: either, you set today to some68# non-false value, then it is used:69#today = ''70# Else, today_fmt is used as the format for a strftime call.71#today_fmt = '%B %d, %Y'7273# List of patterns, relative to source directory, that match files and74# directories to ignore when looking for source files.75exclude_patterns = ['_build']7677# The reST default role (used for this markup: `text`) to use for all documents.78#default_role = None7980# If true, '()' will be appended to :func: etc. cross-reference text.81#add_function_parentheses = True8283# If true, the current module name will be prepended to all description84# unit titles (such as .. function::).85#add_module_names = True8687# If true, sectionauthor and moduleauthor directives will be shown in the88# output. They are ignored by default.89#show_authors = False9091# The name of the Pygments (syntax highlighting) style to use.92pygments_style = 'flask_theme_support.FlaskyStyle'9394# A list of ignored prefixes for module index sorting.95#modindex_common_prefix = []969798# -- Options for HTML output ---------------------------------------------------99100# The theme to use for HTML and HTML Help pages. See the documentation for101# a list of builtin themes.102html_theme = 'default'103104# Theme options are theme-specific and customize the look and feel of a theme105# further. For a list of options available for each theme, see the106# documentation.Merge pull request #2915 from onceuponatimeforever/alabaster_sphinx_themeKenneth Reitzbefore adoption820d31d
line 107why, one step back107html_theme_options = {add github bannerKenneth Reitzbefore adoptionf9d5cbe
lines 108–110why, one step back108 'show_powered_by': False,109 'github_user': 'kennethreitz',110 'github_repo': 'requests',github_bannerKenneth Reitzbefore adoption6592dbc
line 111why, one step back111 'github_banner': TrueMerge pull request #2915 from onceuponatimeforever/alabaster_sphinx_themeKenneth Reitzbefore adoption820d31d
line 112why, one step back112}Merge pull request #2238 from buttscicles/byte-urlsKenneth Reitzbefore adoptione74791d
lines 113–252why, one step back113114# Add any paths that contain custom themes here, relative to this directory.115#html_theme_path = []116117# The name for this set of Sphinx documents. If None, it defaults to118# "<project> v<release> documentation".119#html_title = None120121# A shorter title for the navigation bar. Default is the same as html_title.122#html_short_title = None123124# The name of an image file (relative to this directory) to place at the top125# of the sidebar.126#html_logo = None127128129# The name of an image file (within the static path) to use as favicon of the130# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32131# pixels large.132#html_favicon = None133134# Add any paths that contain custom static files (such as style sheets) here,135# relative to this directory. They are copied after the builtin static files,136# so a file named "default.css" will overwrite the builtin "default.css".137html_static_path = ['_static']138139# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,140# using the given strftime format.141#html_last_updated_fmt = '%b %d, %Y'142143# If true, SmartyPants will be used to convert quotes and dashes to144# typographically correct entities.145#html_use_smartypants = True146147# Custom sidebar templates, maps document names to template names.148html_sidebars = {149 'index': ['sidebarintro.html', 'sourcelink.html', 'searchbox.html'],150 '**': ['sidebarlogo.html', 'localtoc.html', 'relations.html',151 'sourcelink.html', 'searchbox.html']152}153154# Additional templates that should be rendered to pages, maps page names to155# template names.156#html_additional_pages = {}157158# If false, no module index is generated.159#html_domain_indices = True160161# If false, no index is generated.162#html_use_index = True163164# If true, the index is split into individual pages for each letter.165#html_split_index = False166167# If true, links to the reST sources are added to the pages.168html_show_sourcelink = False169170# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.171html_show_sphinx = False172173# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.174#html_show_copyright = True175176# If true, an OpenSearch description file will be output, and all pages will177# contain a <link> tag referring to it. The value of this option must be the178# base URL from which the finished HTML is served.179#html_use_opensearch = ''180181# This is the file name suffix for HTML files (e.g. ".xhtml").182#html_file_suffix = None183184# Output file base name for HTML help builder.185htmlhelp_basename = 'Requestsdoc'186187188# -- Options for LaTeX output --------------------------------------------------189190# The paper size ('letter' or 'a4').191#latex_paper_size = 'letter'192193# The font size ('10pt', '11pt' or '12pt').194#latex_font_size = '10pt'195196# Grouping the document tree into LaTeX files. List of tuples197# (source start file, target name, title, author, documentclass [howto/manual]).198latex_documents = [199 ('index', 'Requests.tex', u'Requests Documentation',200 u'Kenneth Reitz', 'manual'),201]202203# The name of an image file (relative to this directory) to place at the top of204# the title page.205#latex_logo = None206207# For "manual" documents, if this is true, then toplevel headings are parts,208# not chapters.209#latex_use_parts = False210211# If true, show page references after internal links.212#latex_show_pagerefs = False213214# If true, show URL addresses after external links.215#latex_show_urls = False216217# Additional stuff for the LaTeX preamble.218#latex_preamble = ''219220# Documents to append as an appendix to all manuals.221#latex_appendices = []222223# If false, no module index is generated.224#latex_domain_indices = True225226227# -- Options for manual page output --------------------------------------------228229# One entry per manual page. List of tuples230# (source start file, name, description, authors, manual section).231man_pages = [232 ('index', 'requests', u'Requests Documentation',233 [u'Kenneth Reitz'], 1)234]235236# If true, show URL addresses after external links.237#man_show_urls = False238239# -- Options for Texinfo output ------------------------------------------------240241# Grouping the document tree into Texinfo files. List of tuples242# (source start file, target name, title, author,243# dir menu entry, description, category)244texinfo_documents = [245 ('index', 'Requests', u'Requests Documentation', u'Kenneth Reitz',246 'Requests', 'One line description of project.', 'Miscellaneous'),247]248249# Documents to append as an appendix to all manuals.250texinfo_appendices = []251252sys.path.append(os.path.abspath('_themes'))Merge pull request #2915 from onceuponatimeforever/alabaster_sphinx_themeKenneth Reitzbefore adoption820d31d
lines 253–254why, one step back253html_theme_path =[alabaster.get_path()]254html_theme = 'alabaster'Merge pull request #2238 from buttscicles/byte-urlsKenneth Reitzbefore adoptione74791d
lines 255–256why, one step back255256intersphinx_mapping = {'urllib3': ('http://urllib3.readthedocs.org/en/latest', None)}