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
Provenance
- Commit
6e903de- Tree
2eb9e8f- Author
Susan Tan <susan.tan.fleckerl@gmail.com>- Committer
Susan Tan <susan.tan.fleckerl@gmail.com>- Parent
40ce366
3 files changed+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+ © 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>17+18+ <script type="text/javascript" src="https://gumroad.com/js/gumroad.js"></script>19+20+ <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>37+38+ <script type="text/javascript">39+ new HelloBar(36402,48802);40+ </script>41+42+43+ <script type="text/javascript">44+45+ var _gaq = _gaq || [];46+ _gaq.push(['_setAccount', 'UA-8742933-11']);47+ _gaq.push(['_setDomainName', 'none']);48+ _gaq.push(['_setAllowLinker', true]);49+ _gaq.push(['_trackPageview']);50+51+ (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+ })();56+57+ </script>58+59+ <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>72+73+ <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 lines19 sys.path.insert(0, os.path.abspath('..'))20 import requests21 from requests import __version__22 23+import alabaster24+25 # -- General configuration -----------------------------------------------------26 27 # If your documentation needs a minimal Sphinx version, state it here.28 #needs_sphinx = '1.0'2 unmodified lines31 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.32 extensions = [33 'sphinx.ext.autodoc',34 'sphinx.ext.intersphinx',35+ 'alabaster'36 ]37 38 # Add any paths that contain templates here, relative to this directory.39 templates_path = ['_templates']63 unmodified lines103 104 # 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 = {}107+html_theme_options = {108+ 'show_powered_by': False109+}110 111 # Add any paths that contain custom themes here, relative to this directory.112 #html_theme_path = []113 132 unmodified lines246 # Documents to append as an appendix to all manuals.247 texinfo_appendices = []248 249 sys.path.append(os.path.abspath('_themes'))245-html_theme_path = ['_themes']246-html_theme = 'kr'250+html_theme_path =[alabaster.get_path()]251+html_theme = 'alabaster'252 253 intersphinx_mapping = {'urllib3': ('http://urllib3.readthedocs.org/en/latest', None)}modified:docs/requirements.txt+1 added
1+alabaster==0.7.32 Sphinx==1.1.3