From 88873fca308aab53b80bc92eb897c0066875b24c Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sun, 7 Jan 2018 09:20:17 -0800 Subject: [PATCH] Prefer readthedocs.io instead of readthedocs.org for doc links Read the Docs moved hosting to readthedocs.io instead of readthedocs.org. Fix all links in the project. For additional details, see: https://blog.readthedocs.com/securing-subdomains/ > Starting today, Read the Docs will start hosting projects from subdomains on > the domain readthedocs.io, instead of on readthedocs.org. This change > addresses some security concerns around site cookies while hosting user > generated data on the same domain as our dashboard. Update badge link per the documentation: https://read-the-docs.readthedocs.io/en/latest/badges.html > If you leave the version argument off, it will default to your latest > version. This is probably best to include in your README, since it > will stay up to date with your Read the Docs project: --- README.rst | 8 ++++---- docs/conf.py | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.rst b/README.rst index c470b64b..5b236150 100644 --- a/README.rst +++ b/README.rst @@ -24,7 +24,7 @@ Accessing protected resources using requests_oauthlib is as simple as: Before accessing resources you will need to obtain a few credentials from your provider (e.g. Twitter) and authorization from the user for whom you wish to retrieve resources for. You can read all about this in the full -`OAuth 1 workflow guide on RTD `_. +`OAuth 1 workflow guide on RTD `_. The OAuth 2 workflow -------------------- @@ -37,7 +37,7 @@ Fetching a protected resource after obtaining an access token can be extremely simple. However, before accessing resources you will need to obtain a few credentials from your provider (e.g. Google) and authorization from the user for whom you wish to retrieve resources for. You can read all about this in the -full `OAuth 2 workflow guide on RTD `_. +full `OAuth 2 workflow guide on RTD `_. Installation ------------- @@ -52,7 +52,7 @@ To install requests and requests_oauthlib you can use pip: :target: https://travis-ci.org/requests/requests-oauthlib .. |coverage-status| image:: https://img.shields.io/coveralls/requests/requests-oauthlib.svg :target: https://coveralls.io/r/requests/requests-oauthlib -.. |docs| image:: https://readthedocs.org/projects/requests-oauthlib/badge/?version=latest +.. |docs| image:: https://readthedocs.org/projects/requests-oauthlib/badge/ :alt: Documentation Status :scale: 100% - :target: https://readthedocs.org/projects/requests-oauthlib/ + :target: https://requests-oauthlib.readthedocs.io/ diff --git a/docs/conf.py b/docs/conf.py index d790af8c..adc9fcdf 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -251,7 +251,7 @@ # Example configuration for intersphinx: refer to the Python standard library. intersphinx_mapping = { - 'python': ('http://python.readthedocs.org/en/latest/', None), - 'requests': ('http://requests.readthedocs.org/en/latest/', None), - 'oauthlib': ('http://oauthlib.readthedocs.org/en/latest/', None), + 'python': ('https://python.readthedocs.io/en/latest/', None), + 'requests': ('https://requests.readthedocs.io/en/latest/', None), + 'oauthlib': ('https://oauthlib.readthedocs.io/en/latest/', None), }