sphinx is now working properly on RTD (grrrR)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Kenneth Reitz · committed by Kenneth Reitz · parent e98d71d · Browse files · 4 files·+192 added−106 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
4 files+192 added−106 removed
- other:+192 added−106 removed
Provenance
- Commit
dbefff6- Tree
efc47d6- Author
Kenneth Reitz <me@kennethreitz.org>- Committer
Kenneth Reitz <me@kennethreitz.org>- Parent
e98d71d
4 files changed+192 added−106 removed
added:docs/_templates/hacks.html+23 added
1234567891011121314151617181920212223<!-- Alabaster (krTheme++) Hacks -->
<!-- CSS Adjustments (I'm very picky.) --><style type="text/css"> img.logo {margin-left: -20px!important;} div#searchbox h3 {text-transform: capitalize;}</style>
<!-- Analytics tracking for Kenneth. --><script type="text/javascript"> var _gauges = _gauges || []; (function() { var t = document.createElement('script'); t.type = 'text/javascript'; t.async = true; t.id = 'gauges-tracker'; t.setAttribute('data-site-id', '4ddc27f6613f5d186d000007'); t.setAttribute('data-track-path', 'https://track.gaug.es/track.gif'); t.src = 'https://d36ee2fcip1434.cloudfront.net/track.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(t, s); })();</script>deleted:docs/_templates/layout.html-59 removed
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859{%- extends "basic/layout.html" %}{%- block extrahead %}
{{ super() }}
{% if theme_touch_icon %} <link rel="apple-touch-icon" href="{{ pathto('_static/' ~ theme_touch_icon, 1) }}" /> {% endif %}
<meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9">
<style type="text/css"> img.logo {margin-left: -20px!important;} div#searchbox h3 {text-transform: capitalize;} </style>
{% endblock %}{%- block relbar2 %}{% endblock %}{%- block footer %} <div class="footer"> © Copyright {{ copyright }}. </div> <a href="https://github.com/kennethreitz/requests" class="github"> <img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" class="github"/> </a>
<script type="text/javascript"> setTimeout(function(){var a=document.createElement("script"); var b=document.getElementsByTagName("script")[0]; a.src=document.location.protocol+"//dnn506yrbagrg.cloudfront.net/pages/scripts/0013/7219.js?"+Math.floor(new Date().getTime()/3600000); a.async=true;a.type="text/javascript";b.parentNode.insertBefore(a,b)}, 1); </script>
<script type="text/javascript"> var _gauges = _gauges || []; (function() { var t = document.createElement('script'); t.type = 'text/javascript'; t.async = true; t.id = 'gauges-tracker'; t.setAttribute('data-site-id', '4ddc27f6613f5d186d000007'); t.setAttribute('data-track-path', 'https://track.gaug.es/track.gif'); t.src = 'https://d36ee2fcip1434.cloudfront.net/track.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(t, s); })(); </script>
<script type="text/javascript"> (function() { window._pa = window._pa || {}; _pa.productId = "requests-docs"; var pa = document.createElement('script'); pa.type = 'text/javascript'; pa.async = true; pa.src = ('https:' == document.location.protocol ? 'https:' : 'http:') + "//tag.perfectaudience.com/serve/5226171f87bc6890da0000a0.js"; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(pa, s); })(); </script>{%- endblock %}modified:docs/conf.py+169 added-46 removed
1 # -*- coding: utf-8 -*-2 #3 # Requests documentation build configuration file, created by4-# sphinx-quickstart on Sun Feb 13 23:54:25 2011.4+# sphinx-quickstart on Fri Feb 19 00:05:47 2016.5 #6-# This file is execfile()d with the current directory set to its containing dir.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.14 14-import sys, os15+import sys16+import os17 18 # 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('.'))22+23+# Insert Requests' path into the system.24 sys.path.insert(0, os.path.abspath('..'))25+sys.path.insert(0, os.path.abspath('_themes'))26+27 import requests28 from requests import __version__29 23-import alabaster30 25-# -- General configuration -----------------------------------------------------31+# -- General configuration ------------------------------------------------32 33 # If your documentation needs a minimal Sphinx version, state it here.34 #needs_sphinx = '1.0'35 30-# Add any Sphinx extension module names here, as strings. They can be extensions31-# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.36+# Add any Sphinx extension module names here, as strings. They can be37+# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom38+# ones.39 extensions = [40 'sphinx.ext.autodoc',41 'sphinx.ext.intersphinx',35- 'alabaster'42+ 'sphinx.ext.todo',43+ 'sphinx.ext.viewcode',44 ]45 46 # Add any paths that contain templates here, relative to this directory.47 templates_path = ['_templates']48 41-# The suffix of source filenames.49+# The suffix(es) of source filenames.50+# You can specify multiple suffix as a list of string:51+# source_suffix = ['.rst', '.md']52 source_suffix = '.rst'53 54 # The encoding of source files.55 #source_encoding = 'utf-8-sig'3 unmodified lines59 60 # General information about the project.61 project = u'Requests'62 copyright = u'2016. A <a href="http://kennethreitz.com/pages/open-projects.html">Kenneth Reitz</a> Project'63+author = u'Kenneth Reitz'64 65 # The version info for the project you're documenting, acts as replacement for66 # |version| and |release|, also used in various other places throughout the67 # built documents.68 #69 # The short X.Y version.70 version = __version__71 # The full version, including alpha/beta/rc tags.61-release = version72+release = __version__73 74 # The language for content autogenerated by Sphinx. Refer to documentation75 # for a list of supported languages.76+#77+# This is also used if you do content translation via gettext catalogs.78+# Usually you set "language" from the command line for these cases.65-#language = None79+language = None80 81 # There are two options for replacing |today|: either, you set today to some82 # non-false value, then it is used:83 #today = ''3 unmodified lines87 # List of patterns, relative to source directory, that match files and88 # directories to ignore when looking for source files.89 exclude_patterns = ['_build']90 77-# The reST default role (used for this markup: `text`) to use for all documents.91+# The reST default role (used for this markup: `text`) to use for all92+# documents.93 #default_role = None94 95 # If true, '()' will be appended to :func: etc. cross-reference text.81-#add_function_parentheses = True96+add_function_parentheses = False97 98 # If true, the current module name will be prepended to all description99 # unit titles (such as .. function::).85-#add_module_names = True100+add_module_names = True101 102 # If true, sectionauthor and moduleauthor directives will be shown in the103 # output. They are ignored by default.104 #show_authors = False3 unmodified lines108 109 # A list of ignored prefixes for module index sorting.110 #modindex_common_prefix = []111 112+# If true, keep warnings as "system message" paragraphs in the built documents.113+#keep_warnings = False114 98-# -- Options for HTML output ---------------------------------------------------115+# If true, `todo` and `todoList` produce output, else they produce nothing.116+todo_include_todos = True117 118+119+# -- Options for HTML output ----------------------------------------------120+121 # The theme to use for HTML and HTML Help pages. See the documentation for122 # a list of builtin themes.102-html_theme = 'default'123+html_theme = 'alabaster'124 125 # Theme options are theme-specific and customize the look and feel of a theme126 # further. For a list of options available for each theme, see the127 # documentation.128 html_theme_options = {108- 'show_powered_by': False,109- 'github_user': 'kennethreitz',110- 'github_repo': 'requests',111- 'github_banner': True129+ 'show_powered_by': False,130+ 'github_user': 'kennethreitz',131+ 'github_repo': 'requests',132+ 'github_banner': True,133+ 'show_related': False134 }135 136 # Add any paths that contain custom themes here, relative to this directory.137 #html_theme_path = []8 unmodified lines146 # The name of an image file (relative to this directory) to place at the top147 # of the sidebar.148 #html_logo = None149 128-150 # The name of an image file (within the static path) to use as favicon of the151 # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32152 # pixels large.153 #html_favicon = None2 unmodified lines156 # relative to this directory. They are copied after the builtin static files,157 # so a file named "default.css" will overwrite the builtin "default.css".158 html_static_path = ['_static']159 160+# Add any extra paths that contain custom files (such as robots.txt or161+# .htaccess) here, relative to this directory. These files are copied162+# directly to the root of the documentation.163+#html_extra_path = []164+165 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,166 # using the given strftime format.167 #html_last_updated_fmt = '%b %d, %Y'168 169 # If true, SmartyPants will be used to convert quotes and dashes to170 # typographically correct entities.145-#html_use_smartypants = True171+html_use_smartypants = False172 173 # Custom sidebar templates, maps document names to template names.174 html_sidebars = {149- 'index': ['sidebarintro.html', 'sourcelink.html', 'searchbox.html'],175+ 'index': ['sidebarintro.html', 'sourcelink.html', 'searchbox.html',176+ 'hacks.html'],177 '**': ['sidebarlogo.html', 'localtoc.html', 'relations.html',151- 'sourcelink.html', 'searchbox.html']178+ 'sourcelink.html', 'searchbox.html', 'hacks.html']179 }180 181 # Additional templates that should be rendered to pages, maps page names to182 # template names.14 unmodified lines197 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.198 html_show_sphinx = False199 200 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.174-#html_show_copyright = True201+html_show_copyright = True202 203 # If true, an OpenSearch description file will be output, and all pages will204 # contain a <link> tag referring to it. The value of this option must be the205 # base URL from which the finished HTML is served.1 unmodified line207 208 # This is the file name suffix for HTML files (e.g. ".xhtml").209 #html_file_suffix = None210 211+# Language to be used for generating the HTML full-text search index.212+# Sphinx supports the following languages:213+# 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'214+# 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr'215+#html_search_language = 'en'216+217+# A dictionary with options for the search language support, empty by default.218+# Now only 'ja' uses this config value219+#html_search_options = {'type': 'default'}220+221+# The name of a javascript file (relative to the configuration directory) that222+# implements a search results scorer. If empty, the default will be used.223+#html_search_scorer = 'scorer.js'224+225 # Output file base name for HTML help builder.226 htmlhelp_basename = 'Requestsdoc'227 228+# -- Options for LaTeX output ---------------------------------------------229 188-# -- Options for LaTeX output --------------------------------------------------230+latex_elements = {231+# The paper size ('letterpaper' or 'a4paper').232+#'papersize': 'letterpaper',233 190-# The paper size ('letter' or 'a4').191-#latex_paper_size = 'letter'192-234 # The font size ('10pt', '11pt' or '12pt').194-#latex_font_size = '10pt'235+#'pointsize': '10pt',236 237+# Additional stuff for the LaTeX preamble.238+#'preamble': '',239+240+# Latex figure (float) alignment241+#'figure_align': 'htbp',242+}243+244 # Grouping the document tree into LaTeX files. List of tuples197-# (source start file, target name, title, author, documentclass [howto/manual]).245+# (source start file, target name, title,246+# author, documentclass [howto, manual, or own class]).247 latex_documents = [199- ('index', 'Requests.tex', u'Requests Documentation',200- u'Kenneth Reitz', 'manual'),248+ (master_doc, 'Requests.tex', u'Requests Documentation',249+ u'Kenneth Reitz', 'manual'),250 ]251 252 # The name of an image file (relative to this directory) to place at the top of253 # the title page.8 unmodified lines262 263 # If true, show URL addresses after external links.264 #latex_show_urls = False265 217-# Additional stuff for the LaTeX preamble.218-#latex_preamble = ''219-266 # Documents to append as an appendix to all manuals.267 #latex_appendices = []268 269 # If false, no module index is generated.270 #latex_domain_indices = True271 272 227-# -- Options for manual page output --------------------------------------------273+# -- Options for manual page output ---------------------------------------274 275 # One entry per manual page. List of tuples276 # (source start file, name, description, authors, manual section).277 man_pages = [232- ('index', 'requests', u'Requests Documentation',233- [u'Kenneth Reitz'], 1)278+ (master_doc, 'requests', u'Requests Documentation',279+ [author], 1)280 ]281 282 # If true, show URL addresses after external links.283 #man_show_urls = False284 239-# -- Options for Texinfo output ------------------------------------------------285 286+# -- Options for Texinfo output -------------------------------------------287+288 # Grouping the document tree into Texinfo files. List of tuples289 # (source start file, target name, title, author,290 # dir menu entry, description, category)291 texinfo_documents = [245- ('index', 'Requests', u'Requests Documentation', u'Kenneth Reitz',246- 'Requests', 'One line description of project.', 'Miscellaneous'),292+ (master_doc, 'Requests', u'Requests Documentation',293+ author, 'Requests', 'One line description of project.',294+ 'Miscellaneous'),295 ]296 297 # Documents to append as an appendix to all manuals.250-texinfo_appendices = []298+#texinfo_appendices = []299 252-sys.path.append(os.path.abspath('_themes'))253-html_theme_path =[alabaster.get_path()]254-html_theme = 'alabaster'300+# If false, no module index is generated.301+#texinfo_domain_indices = True302 303+# How to display URL addresses: 'footnote', 'no', or 'inline'.304+#texinfo_show_urls = 'footnote'305+306+# If true, do not generate a @detailmenu in the "Top" node's menu.307+#texinfo_no_detailmenu = False308+309+310+# -- Options for Epub output ----------------------------------------------311+312+# Bibliographic Dublin Core info.313+epub_title = project314+epub_author = author315+epub_publisher = author316+epub_copyright = copyright317+318+# The basename for the epub file. It defaults to the project name.319+#epub_basename = project320+321+# The HTML theme for the epub output. Since the default themes are not322+# optimized for small screen space, using the same theme for HTML and epub323+# output is usually not wise. This defaults to 'epub', a theme designed to save324+# visual space.325+#epub_theme = 'epub'326+327+# The language of the text. It defaults to the language option328+# or 'en' if the language is not set.329+#epub_language = ''330+331+# The scheme of the identifier. Typical schemes are ISBN or URL.332+#epub_scheme = ''333+334+# The unique identifier of the text. This can be a ISBN number335+# or the project homepage.336+#epub_identifier = ''337+338+# A unique identification for the text.339+#epub_uid = ''340+341+# A tuple containing the cover image and cover page html template filenames.342+#epub_cover = ()343+344+# A sequence of (type, uri, title) tuples for the guide element of content.opf.345+#epub_guide = ()346+347+# HTML files that should be inserted before the pages created by sphinx.348+# The format is a list of tuples containing the path and title.349+#epub_pre_files = []350+351+# HTML files that should be inserted after the pages created by sphinx.352+# The format is a list of tuples containing the path and title.353+#epub_post_files = []354+355+# A list of files that should not be packed into the epub file.356+epub_exclude_files = ['search.html']357+358+# The depth of the table of contents in toc.ncx.359+#epub_tocdepth = 3360+361+# Allow duplicate toc entries.362+#epub_tocdup = True363+364+# Choose between 'default' and 'includehidden'.365+#epub_tocscope = 'default'366+367+# Fix unsupported image types using the Pillow.368+#epub_fix_images = False369+370+# Scale large images.371+#epub_max_image_width = 0372+373+# How to display URL addresses: 'footnote', 'no', or 'inline'.374+#epub_show_urls = 'inline'375+376+# If false, no index is generated.377+#epub_use_index = True378+379 intersphinx_mapping = {'urllib3': ('http://urllib3.readthedocs.org/en/latest', None)}deleted:docs/MANIFEST.in-1 removed
1-include HISTORY.rst README.rst LICENSE