Remove images, analytics, 'keep up to date'
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Seth Michael Larson · committed by Nate Prewitt · parent 533c384 · Browse files · 22 files·+2 added−204 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
22 files+2 added−204 removed
- other:+2 added−204 removed
Provenance
- Commit
0830062- Tree
ef2fabe- Author
Seth Michael Larson <sethmichaellarson@gmail.com>- Committer
Nate Prewitt <nate.prewitt@gmail.com>- Parent
533c384
22 files changed+2 added−204 removed
deleted:docs/_static/konami.js-116 removed
1-/*2- * Konami-JS ~3- * :: Now with support for touch events and multiple instances for4- * :: those situations that call for multiple easter eggs!5- * Code: http://konami-js.googlecode.com/6- * Examples: http://www.snaptortoise.com/konami-js7- * Copyright (c) 2009 George Mandis (georgemandis.com, snaptortoise.com)8- * Version: 1.4.2 (9/2/2013)9- * Licensed under the MIT License (http://opensource.org/licenses/MIT)10- * Tested in: Safari 4+, Google Chrome 4+, Firefox 3+, IE7+, Mobile Safari 2.2.1 and Dolphin Browser11- */12-13-var Konami = function (callback) {14- var konami = {15- addEvent: function (obj, type, fn, ref_obj) {16- if (obj.addEventListener)17- obj.addEventListener(type, fn, false);18- else if (obj.attachEvent) {19- // IE20- obj["e" + type + fn] = fn;21- obj[type + fn] = function () {22- obj["e" + type + fn](window.event, ref_obj);23- };24- obj.attachEvent("on" + type, obj[type + fn]);25- }26- },27- input: "",28- pattern: "38384040373937396665",29- load: function (link) {30- this.addEvent(document, "keydown", function (e, ref_obj) {31- if (ref_obj) konami = ref_obj; // IE32- konami.input += e ? e.keyCode : event.keyCode;33- if (konami.input.length > konami.pattern.length)34- konami.input = konami.input.substr((konami.input.length - konami.pattern.length));35- if (konami.input == konami.pattern) {36- konami.code(link);37- konami.input = "";38- e.preventDefault();39- return false;40- }41- }, this);42- this.iphone.load(link);43- },44- code: function (link) {45- window.location = link46- },47- iphone: {48- start_x: 0,49- start_y: 0,50- stop_x: 0,51- stop_y: 0,52- tapTolerance: 8,53- capture: false,54- orig_keys: "",55- keys: ["UP", "UP", "DOWN", "DOWN", "LEFT", "RIGHT", "LEFT", "RIGHT", "TAP", "TAP"],56- code: function (link) {57- konami.code(link);58- },59- touchCapture: function(evt) {60- konami.iphone.start_x = evt.changedTouches[0].pageX;61- konami.iphone.start_y = evt.changedTouches[0].pageY;62- konami.iphone.capture = true; 63- },64- load: function (link) {65- this.orig_keys = this.keys;66- konami.addEvent(document, "touchmove", function (e) {67- if (e.touches.length == 1 && konami.iphone.capture == true) {68- var touch = e.touches[0];69- konami.iphone.stop_x = touch.pageX;70- konami.iphone.stop_y = touch.pageY;71- konami.iphone.check_direction();72- }73- });74- konami.addEvent(document, "touchend", function (evt) {75- konami.touchCapture(evt);76- konami.iphone.check_direction(link);77- }, false);78- konami.addEvent(document, "touchstart", function (evt) {79- konami.touchCapture(evt);80- });81- },82- check_direction: function (link) {83- var x_magnitude = Math.abs(this.start_x - this.stop_x);84- var y_magnitude = Math.abs(this.start_y - this.stop_y);85- var hasMoved = (x_magnitude > this.tapTolerance || y_magnitude > this.tapTolerance);86- var result;87- if (this.capture === true && hasMoved) {88- this.capture = false;89- var x = ((this.start_x - this.stop_x) < 0) ? "RIGHT" : "LEFT";90- var y = ((this.start_y - this.stop_y) < 0) ? "DOWN" : "UP";91- var result = (x_magnitude > y_magnitude) ? x : y;92- }93- else if (this.capture === false && !hasMoved) {94- result = (this.tap == true) ? "TAP" : result;95- result = "TAP";96- }97- if (result) {98- if (result == this.keys[0]) this.keys = this.keys.slice(1, this.keys.length);99- else this.keys = this.orig_keys;100- }101- if (this.keys.length == 0) {102- this.keys = this.orig_keys;103- this.code(link);104- }105- }106- }107- }108-109- typeof callback === "string" && konami.load(callback);110- if (typeof callback === "function") {111- konami.code = callback;112- konami.load();113- }114-115- return konami;116-};deleted:docs/_static/requests-logo-small.jpgbinary
A binary file, deleted.
deleted:docs/_static/requests-sidebar.jpgbinary
A binary file, deleted.
modified:docs/_templates/hacks.html-30 removed
21 unmodified lines2223242526262729303132333435363738394041424344454647484950515253545556572829303149 unmodified lines21 unmodified lines
/* Have code blocks escape the document right-margin. */ div.highlight pre {margin-right: -30px;} }
</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', '56ca7a57c88d9011080024dd'); 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>
<!-- There are no more hacks. --><!-- இڿڰۣ-ڰۣ— --><!-- Love, Kenneth Reitz -->
<script src="{{ pathto('_static/', 1) }}/konami.js"></script><script> var easter_egg = new Konami('http://fortunes.herokuapp.com/random/raw');</script>
<!-- That was not a hack. That was art. -->
<!-- Native CPC by BuySellAds -->
<script type="text/javascript" src="//m.servedby-buysellads.com/monetization.js"></script>
49 unmodified linesmodified:docs/_templates/sidebarintro.html-12 removed
123456123430 unmodified lines353637384546474849503940414225 unmodified lines<p class="logo"> <a href="{{ pathto(master_doc) }}"> <img class="logo" src="{{ pathto('_static/requests-sidebar.jpg', 1) }}" title="https://kennethreitz.org/tattoos" /> </a></p>
<p> <iframe src="https://ghbtns.com/github-btn.html?user=psf&repo=requests&type=watch&count=true&size=large" allowtransparency="true" frameborder="0" scrolling="0" width="200px" height="35px"></iframe></p>30 unmodified lines<script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=CKYI5K3E&placement=pythonrequestsorg" id="_carbonads_js"></script>
<h3>Stay Informed</h3><p>Receive updates on new releases and upcoming projects.</p>
<p><iframe src="https://ghbtns.com/github-btn.html?user=kennethreitz&type=follow&count=false" allowtransparency="true" frameborder="0" scrolling="0" width="200" height="20"></iframe></p>
<h3>Useful Links</h3><ul> <li><a href="https://requests.readthedocs.io/en/latest/community/recommended/">Recommended Packages and Extensions</a> </li>25 unmodified linesmodified:docs/_templates/sidebarlogo.html+1 added-13 removed
1-<p class="logo">2- <a href="{{ pathto(master_doc) }}">3- <img class="logo" src="{{ pathto('_static/requests-sidebar.jpg', 1) }}" title="https://kennethreitz.org/tattoos" />4- </a>5-</p>1 <p>2 <iframe src="https://ghbtns.com/github-btn.html?user=psf&repo=requests&type=watch&count=true&size=large"3 allowtransparency="true" frameborder="0" scrolling="0" width="200px" height="35px"></iframe>4 </p>26 unmodified lines31 human beings. You are currently looking at the documentation of the32 development release.33 </p>34 40-<p<p>Sponsored by <strong><a href="https://www.govcert.lu">CERT Gouvernemental - GOVCERT.LU</a></strong>.</p>35+<p>Sponsored by <strong><a href="https://www.govcert.lu">CERT Gouvernemental - GOVCERT.LU</a></strong>.</p>36 42- <h3>Stay Informed</h3>43- <p>Receive updates on new releases and upcoming projects.</p>44-45- <p><a href="https://tinyletter.com/kennethreitz">Join Mailing List</a>.</p>46-47- <hr />48-37 <script async type="text/javascript"38 src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=pythonrequestsorg"39 id="_carbonads_js"></script>40 13 unmodified linesmodified:docs/community/faq.rst-2 removed
1 unmodified line2 3 Frequently Asked Questions4 ==========================5 6-.. image:: https://farm5.staticflickr.com/4290/35294660055_42c02b2316_k_d.jpg7-6 This part of the documentation answers common questions about Requests.7 8 Encoded Data?9 -------------82 unmodified linesmodified:docs/community/out-there.rst-2 removed
1 Integrations2 ============3 4-.. image:: https://farm5.staticflickr.com/4239/34450900674_15863ddea0_k_d.jpg5-4 Python for iOS5 --------------6 7 Requests is built into the wonderful `Python for iOS <https://itunes.apple.com/us/app/python-2.7-for-ios/id485729872?mt=Python8>`_ runtime!15 unmodified linesmodified:docs/community/recommended.rst-2 removed
1 unmodified line2 3 Recommended Packages and Extensions4 ===================================5 6-.. image:: https://farm5.staticflickr.com/4218/35224319272_cfc0e621fb_k_d.jpg7-6 Requests has a great variety of powerful and useful third-party extensions.7 This page provides an overview of some of the best of them.8 9 Certifi CA Bundle53 unmodified linesmodified:docs/community/release-process.rst-2 removed
1 Release Process and Rules2 =========================3 4-.. image:: https://farm5.staticflickr.com/4215/34450901614_b74ae720db_k_d.jpg5-4 .. versionadded:: v2.6.25 6 Starting with the version to be released after ``v2.6.2``, the following rules7 will govern and describe how the Requests core team produces a new release.46 unmodified linesmodified:docs/community/support.rst+1 added-3 removed
1 unmodified line2 3 Support4 =======5 6-.. image:: https://farm5.staticflickr.com/4198/34080352913_5c13ffb336_k_d.jpg7-6 If you have questions or issues about Requests, there are several options:7 8 Stack Overflow11--------------9+--------------10 11 If your question does not contain sensitive (possibly proprietary)12 information or can be properly anonymized, please ask a question on13 `Stack Overflow <https://stackoverflow.com/questions/tagged/python-requests>`_39 unmodified linesmodified:docs/community/updates.rst-2 removed
2 unmodified lines3 4 Community Updates5 =================6 7-.. image:: https://farm5.staticflickr.com/4244/34080354873_516c283ad0_k_d.jpg8-7 If you'd like to stay up to date on the community and development of Requests,8 there are several options:9 10 19 unmodified linesmodified:docs/community/vulnerabilities.rst-2 removed
1 Vulnerability Disclosure2 ========================3 4-.. image:: https://farm5.staticflickr.com/4211/34709353644_b041e9e1c2_k_d.jpg5-4 If you think you have found a potential security vulnerability in requests,5 please email `Nate <mailto:nate.prewitt@gmail.com>`_ and `Seth <mailto:@sethmichaellarson@gmail.com>`_ directly. **Do not file a public issue.**6 7 Our PGP Key fingerprints are:103 unmodified linesmodified:docs/dev/authors.rst-2 removed
1 Authors2 =======3 4-.. image:: https://static1.squarespace.com/static/533ad9bde4b098d084a846b1/t/534f6e1ce4b09b70f38ee6c1/1432265542589/DSCF3147.jpg?format=2500w5-4 .. include:: ../../AUTHORS.rstmodified:docs/dev/contributing.rst-2 removed
1 unmodified line2 3 Contributor's Guide4 ===================5 6-.. image:: https://farm5.staticflickr.com/4237/35550408335_7671fde302_k_d.jpg7-6 If you're reading this, you're probably interested in contributing to Requests.7 Thank you very much! Open source projects live-and-die based on the support8 they receive from others, and the fact that you're even considering9 contributing to the Requests project is *very* generous of you.205 unmodified linesmodified:docs/dev/philosophy.rst-2 removed
1 Development Philosophy2 ======================3 4-.. image:: https://farm5.staticflickr.com/4231/34484831073_636008a23d_k_d.jpg5-4 Requests is an open but opinionated library, created by an open but opinionated developer.5 6 7 Management Style38 unmodified linesmodified:docs/dev/todo.rst-2 removed
1 How to Help2 ===========3 4-.. image:: https://farm5.staticflickr.com/4290/34450900104_bc1d424213_k_d.jpg5-4 Requests is under active development, and contributions are more than welcome!5 6 #. Check for open issues or open a fresh issue to start a discussion around a bug.7 There is a Contributor Friendly tag for issues that should be ideal for people who are not very55 unmodified linesmodified:docs/user/authentication.rst-2 removed
1 unmodified line2 3 Authentication4 ==============5 6-.. image:: https://farm5.staticflickr.com/4258/35550409215_3b08d49d22_k_d.jpg7-6 This document discusses using various kinds of authentication with Requests.7 8 Many web services require authentication, and there are many different types.9 Below, we outline various forms of authentication available in Requests, from135 unmodified linesmodified:docs/user/install.rst-3 removed
1 unmodified line2 3 Installation of Requests4 ========================5 6-.. image:: https://farm5.staticflickr.com/4230/35550376215_da1bf77a8c_k_d.jpg7-8-6 This part of the documentation covers the installation of Requests.7 The first step to using any software package is getting it properly installed.8 9 31 unmodified linesmodified:docs/user/intro.rst-2 removed
1 unmodified line2 3 Introduction4 ============5 6-.. image:: https://farm5.staticflickr.com/4317/35198386374_1939af3de6_k_d.jpg7-6 Philosophy7 ----------8 9 Requests was developed with a few :pep:`20` idioms in mind.36 unmodified linesmodified:docs/user/quickstart.rst-2 removed
1 unmodified line2 3 Quickstart4 ==========5 6-.. image:: https://farm5.staticflickr.com/4259/35163667010_8bfcaef274_k_d.jpg7-6 .. module:: requests.models7 8 Eager to get started? This page gives a good introduction in how to get started9 with Requests.554 unmodified linesmodified:docs/index.rst-1 removed
95 unmodified lines96 97 .. toctree::98 :maxdepth: 299 100- community/sponsors100 community/recommended101 community/faq102 community/out-there103 community/support32 unmodified lines