Skip to content
Myr

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

22 files+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 */1213var 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 }108109 typeof callback === "string" && konami.load(callback);110 if (typeof callback === "function") {111 konami.code = callback;112 konami.load();113 }114115 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
modified:docs/_templates/sidebarintro.html-12 removed
modified: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 lines
31 human beings. You are currently looking at the documentation of the32 development release.33</p>3440<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>3642 <h3>Stay Informed</h3>43 <p>Receive updates on new releases and upcoming projects.</p>4445 <p><a href="https://tinyletter.com/kennethreitz">Join Mailing List</a>.</p>4647 <hr />4837 <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 lines
modified:docs/community/faq.rst-2 removed
1 unmodified line
23Frequently Asked Questions4==========================56.. image:: https://farm5.staticflickr.com/4290/35294660055_42c02b2316_k_d.jpg76This part of the documentation answers common questions about Requests.78Encoded Data?9-------------
82 unmodified lines
modified:docs/community/out-there.rst-2 removed
1Integrations2============34.. image:: https://farm5.staticflickr.com/4239/34450900674_15863ddea0_k_d.jpg54Python for iOS5--------------67Requests 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 lines
modified:docs/community/recommended.rst-2 removed
1 unmodified line
23Recommended Packages and Extensions4===================================56.. image:: https://farm5.staticflickr.com/4218/35224319272_cfc0e621fb_k_d.jpg76Requests has a great variety of powerful and useful third-party extensions.7This page provides an overview of some of the best of them.89Certifi CA Bundle
53 unmodified lines
modified:docs/community/release-process.rst-2 removed
1Release Process and Rules2=========================34.. image:: https://farm5.staticflickr.com/4215/34450901614_b74ae720db_k_d.jpg54.. versionadded:: v2.6.256Starting with the version to be released after ``v2.6.2``, the following rules7will govern and describe how the Requests core team produces a new release.
46 unmodified lines
modified:docs/community/support.rst+1 added-3 removed
1 unmodified line
23Support4=======56.. image:: https://farm5.staticflickr.com/4198/34080352913_5c13ffb336_k_d.jpg76If you have questions or issues about Requests, there are several options:78Stack Overflow11-------------9--------------1011If your question does not contain sensitive (possibly proprietary)12information or can be properly anonymized, please ask a question on13`Stack Overflow <https://stackoverflow.com/questions/tagged/python-requests>`_
39 unmodified lines
modified:docs/community/updates.rst-2 removed
2 unmodified lines
34Community Updates5=================67.. image:: https://farm5.staticflickr.com/4244/34080354873_516c283ad0_k_d.jpg87If you'd like to stay up to date on the community and development of Requests,8there are several options:910
19 unmodified lines
modified:docs/community/vulnerabilities.rst-2 removed
1Vulnerability Disclosure2========================34.. image:: https://farm5.staticflickr.com/4211/34709353644_b041e9e1c2_k_d.jpg54If you think you have found a potential security vulnerability in requests,5please email `Nate <mailto:nate.prewitt@gmail.com>`_ and `Seth <mailto:@sethmichaellarson@gmail.com>`_ directly. **Do not file a public issue.**67Our PGP Key fingerprints are:
103 unmodified lines
modified:docs/dev/authors.rst-2 removed
1Authors2=======34.. image:: https://static1.squarespace.com/static/533ad9bde4b098d084a846b1/t/534f6e1ce4b09b70f38ee6c1/1432265542589/DSCF3147.jpg?format=2500w54.. include:: ../../AUTHORS.rst
modified:docs/dev/contributing.rst-2 removed
1 unmodified line
23Contributor's Guide4===================56.. image:: https://farm5.staticflickr.com/4237/35550408335_7671fde302_k_d.jpg76If you're reading this, you're probably interested in contributing to Requests.7Thank you very much! Open source projects live-and-die based on the support8they receive from others, and the fact that you're even considering9contributing to the Requests project is *very* generous of you.
205 unmodified lines
modified:docs/dev/philosophy.rst-2 removed
1Development Philosophy2======================34.. image:: https://farm5.staticflickr.com/4231/34484831073_636008a23d_k_d.jpg54Requests is an open but opinionated library, created by an open but opinionated developer.567Management Style
38 unmodified lines
modified:docs/dev/todo.rst-2 removed
1How to Help2===========34.. image:: https://farm5.staticflickr.com/4290/34450900104_bc1d424213_k_d.jpg54Requests is under active development, and contributions are more than welcome!56#. 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 very
55 unmodified lines
modified:docs/user/authentication.rst-2 removed
1 unmodified line
23Authentication4==============56.. image:: https://farm5.staticflickr.com/4258/35550409215_3b08d49d22_k_d.jpg76This document discusses using various kinds of authentication with Requests.78Many web services require authentication, and there are many different types.9Below, we outline various forms of authentication available in Requests, from
135 unmodified lines
modified:docs/user/install.rst-3 removed
1 unmodified line
23Installation of Requests4========================56.. image:: https://farm5.staticflickr.com/4230/35550376215_da1bf77a8c_k_d.jpg786This part of the documentation covers the installation of Requests.7The first step to using any software package is getting it properly installed.89
31 unmodified lines
modified:docs/user/intro.rst-2 removed
1 unmodified line
23Introduction4============56.. image:: https://farm5.staticflickr.com/4317/35198386374_1939af3de6_k_d.jpg76Philosophy7----------89Requests was developed with a few :pep:`20` idioms in mind.
36 unmodified lines
modified:docs/user/quickstart.rst-2 removed
1 unmodified line
23Quickstart4==========56.. image:: https://farm5.staticflickr.com/4259/35163667010_8bfcaef274_k_d.jpg76.. module:: requests.models78Eager to get started? This page gives a good introduction in how to get started9with Requests.
554 unmodified lines
modified:docs/index.rst-1 removed
95 unmodified lines
9697.. toctree::98 :maxdepth: 299100 community/sponsors100 community/recommended101 community/faq102 community/out-there103 community/support
32 unmodified lines