diff options
| author | Kenneth Reitz <me@kennethreitz.org> | 2016-02-18 20:40:59 -0500 |
|---|---|---|
| committer | Kenneth Reitz <me@kennethreitz.org> | 2016-02-18 20:41:04 -0500 |
| commit | c1c393122d4975b166fa58fc5f62e4e789904e76 (patch) | |
| tree | d77dbe9dd80f3ef2ff8c8fea659ff1b0a6dcede4 /docs/_templates | |
| parent | 9f33a0cd3c5106d4cc1b114f3ad57af45ab31daf (diff) | |
| download | python-requests-c1c393122d4975b166fa58fc5f62e4e789904e76.tar.gz | |
change up marketing, update js/css
Diffstat (limited to 'docs/_templates')
| -rw-r--r-- | docs/_templates/layout.html | 61 | ||||
| -rw-r--r-- | docs/_templates/sidebarintro.html | 39 | ||||
| -rw-r--r-- | docs/_templates/sidebarlogo.html | 11 |
3 files changed, 42 insertions, 69 deletions
diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html index 3f435497..b53db050 100644 --- a/docs/_templates/layout.html +++ b/docs/_templates/layout.html @@ -11,6 +11,7 @@ <style type="text/css"> img.logo {margin-left: -20px!important;} + div#searchbox h3 {text-transform: capitalize;} </style> {% endblock %} @@ -23,64 +24,36 @@ <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" src="https://gumroad.com/js/gumroad.js"></script> - <script type="text/javascript"> - /* <![CDATA[ */ - (function() { - var s = document.createElement('script'), t = document.getElementsByTagName('script')[0]; - s.type = 'text/javascript'; - s.async = true; - s.src = 'http://api.flattr.com/js/0.6/load.js?mode=auto'; - t.parentNode.insertBefore(s, t); - })(); - /* ]]> */ - </script> - <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); + 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 _gaq = _gaq || []; - _gaq.push(['_setAccount', 'UA-8742933-11']); - _gaq.push(['_setDomainName', 'none']); - _gaq.push(['_setAllowLinker', true]); - _gaq.push(['_trackPageview']); - - (function() { - var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; - ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; - var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); - })(); - - </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.src = '//secure.gaug.es/track.js'; + 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> + (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 %} diff --git a/docs/_templates/sidebarintro.html b/docs/_templates/sidebarintro.html index d2cbfe9d..38661e00 100644 --- a/docs/_templates/sidebarintro.html +++ b/docs/_templates/sidebarintro.html @@ -14,29 +14,15 @@ human beings. </p> - -<p> - <a href="https://gumroad.com/l/RRZc" class="gumroad-button">Buy Requests Pro</a> -</p> - - -<h3>Get Updates</h3> +<h3>Stay Informed</h3> <p>Receive updates on new releases and upcoming projects.</p> -<p><a href="http://tinyletter.com/kennethreitz">Subscribe to Newsletter</a></p> +<p><iframe src="http://ghbtns.com/github-btn.html?user=kennethreitz&type=follow&count=false" + allowtransparency="true" frameborder="0" scrolling="0" width="200" height="20"></iframe></p> +<p><a href="https://twitter.com/kennethreitz" class="twitter-follow-button" data-show-count="false">Follow @kennethreitz</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script></p> -<h3>Translations</h3> -<ul> -<li><a href="http://docs.python-requests.org/">English</a></li> -<li><a href="http://fr.python-requests.org/">French</a></li> -<li><a href="http://de.python-requests.org/">German</a></li> -<li><a href="http://jp.python-requests.org/">Japanese</a></li> -<li><a href="http://cn.python-requests.org/">Chinese</a></li> -<li><a href="http://pt.python-requests.org/">Portuguese</a></li> -<li><a href="http://it.python-requests.org/">Italian</a></li> -<li><a href="http://es.python-requests.org/">Spanish</a></li> -</ul> +<p><a href="http://tinyletter.com/kennethreitz">Join Mailing List</a>.</p> <h3>Useful Links</h3> <ul> @@ -49,3 +35,18 @@ <li><a href="http://github.com/kennethreitz/requests/issues">Issue Tracker</a></li> <li><a href="http://docs.python-requests.org/en/latest/community/updates/#software-updates">Release History</a></li> </ul> + + +<h3>Translations</h3> + +<ul> + <li><a href="http://docs.python-requests.org/">English</a></li> + <li><a href="http://fr.python-requests.org/">French</a></li> + <li><a href="http://de.python-requests.org/">German</a></li> + <li><a href="http://jp.python-requests.org/">Japanese</a></li> + <li><a href="http://cn.python-requests.org/">Chinese</a></li> + <li><a href="http://pt.python-requests.org/">Portuguese</a></li> + <li><a href="http://it.python-requests.org/">Italian</a></li> + <li><a href="http://es.python-requests.org/">Spanish</a></li> +</ul> + diff --git a/docs/_templates/sidebarlogo.html b/docs/_templates/sidebarlogo.html index 928cd2fd..5fcfae19 100644 --- a/docs/_templates/sidebarlogo.html +++ b/docs/_templates/sidebarlogo.html @@ -14,13 +14,12 @@ development release. </p> -<p> - <a href="https://gumroad.com/l/RRZc" class="gumroad-button">Buy Requests Pro</a> -</p> - -<h3>Get Updates</h3> +<h3>Stay Informed</h3> <p>Receive updates on new releases and upcoming projects.</p> -<p><a href="http://tinyletter.com/kennethreitz">Subscribe to Newsletter</a></p> +<p><a href="http://tinyletter.com/kennethreitz">Join Mailing List</a>.</p> +<p><iframe src="http://ghbtns.com/github-btn.html?user=kennethreitz&type=follow&count=false" + allowtransparency="true" frameborder="0" scrolling="0" width="200" height="20"></iframe></p> +<p><a href="https://twitter.com/kennethreitz" class="twitter-follow-button" data-show-count="false">Follow @kennethreitz</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script></p>
\ No newline at end of file |
