Skip to content
Myr

Switch to alabaster instead of kr sphinx theme for requests docs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Add in the pre-existing ad tracker Javascript tags from kr sphinx theme.

authored by Susan Tan · committed by Susan Tan · parent 40ce366 · Browse files · 3 files+91 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+91 added−3 removed

  • other:+91 added−3 removed

3 files+91 added−3 removed

added:docs/_templates/layout.html+82 added
1{%- extends "basic/layout.html" %}2{%- block extrahead %}3 {{ super() }}4 {% if theme_touch_icon %}5 <link rel="apple-touch-icon" href="{{ pathto('_static/' ~ theme_touch_icon, 1) }}" />6 {% endif %}7 <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9">8{% endblock %}9{%- block relbar2 %}{% endblock %}10{%- block footer %}11 <div class="footer">12 &copy; Copyright {{ copyright }}.13 </div>14 <a href="https://github.com/kennethreitz/requests" class="github">15 <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"/>16 </a>1718 <script type="text/javascript" src="https://gumroad.com/js/gumroad.js"></script>1920 <script type="text/javascript">21 /* <![CDATA[ */22 (function() {23 var s = document.createElement('script'), t = document.getElementsByTagName('script')[0];24 s.type = 'text/javascript';25 s.async = true;26 s.src = 'http://api.flattr.com/js/0.6/load.js?mode=auto';27 t.parentNode.insertBefore(s, t);28 })();29 /* ]]> */30 </script>31 <script type="text/javascript">32 setTimeout(function(){var a=document.createElement("script");33 var b=document.getElementsByTagName("script")[0];34 a.src=document.location.protocol+"//dnn506yrbagrg.cloudfront.net/pages/scripts/0013/7219.js?"+Math.floor(new Date().getTime()/3600000);35 a.async=true;a.type="text/javascript";b.parentNode.insertBefore(a,b)}, 1);36 </script>3738 <script type="text/javascript">39 new HelloBar(36402,48802);40 </script>414243 <script type="text/javascript">4445 var _gaq = _gaq || [];46 _gaq.push(['_setAccount', 'UA-8742933-11']);47 _gaq.push(['_setDomainName', 'none']);48 _gaq.push(['_setAllowLinker', true]);49 _gaq.push(['_trackPageview']);5051 (function() {52 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;53 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';54 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);55 })();5657 </script>5859 <script type="text/javascript">60 (function() {61 var t = document.createElement('script');62 t.type = 'text/javascript';63 t.async = true;64 t.id = 'gauges-tracker';65 t.setAttribute('data-site-id',66 '4ddc27f6613f5d186d000007');67 t.src = '//secure.gaug.es/track.js';68 var s = document.getElementsByTagName('script')[0];69 s.parentNode.insertBefore(t, s);70 })();71 </script>7273 <script type="text/javascript">74 (function() {75 window._pa = window._pa || {};76 _pa.productId = "requests-docs";77 var pa = document.createElement('script'); pa.type = 'text/javascript'; pa.async = true;78 pa.src = ('https:' == document.location.protocol ? 'https:' : 'http:') + "//tag.perfectaudience.com/serve/5226171f87bc6890da0000a0.js";79 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(pa, s);80 })();81</script>82{%- endblock %}
modified:docs/conf.py+8 added-3 removed
18 unmodified lines
19sys.path.insert(0, os.path.abspath('..'))20import requests21from requests import __version__2223import alabaster2425# -- General configuration -----------------------------------------------------2627# If your documentation needs a minimal Sphinx version, state it here.28#needs_sphinx = '1.0'
2 unmodified lines
31# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.32extensions = [33 'sphinx.ext.autodoc',34 'sphinx.ext.intersphinx',35 'alabaster'36]3738# Add any paths that contain templates here, relative to this directory.39templates_path = ['_templates']
63 unmodified lines
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.104#html_theme_options = {}107html_theme_options = {108 'show_powered_by': False109}110111# Add any paths that contain custom themes here, relative to this directory.112#html_theme_path = []113
132 unmodified lines
246# Documents to append as an appendix to all manuals.247texinfo_appendices = []248249sys.path.append(os.path.abspath('_themes'))245html_theme_path = ['_themes']246html_theme = 'kr'250html_theme_path =[alabaster.get_path()]251html_theme = 'alabaster'252253intersphinx_mapping = {'urllib3': ('http://urllib3.readthedocs.org/en/latest', None)}
modified:docs/requirements.txt+1 added
1alabaster==0.7.32Sphinx==1.1.3