File: sphinx-3rdparty-assets

package info (click to toggle)
python-authlib 1.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,016 kB
  • sloc: python: 26,998; makefile: 53; sh: 14
file content (91 lines) | stat: -rw-r--r-- 4,534 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
From: Stefano Rivera <stefanor@debian.org>
Date: Tue, 18 Aug 2020 18:01:29 -0700
Subject: Disable 3rd party assets in docs

Fetching assets from external websites can cause a privacy breach.

Bug-Upstream: https://github.com/authlib/authlib/issues/282
---
 docs/_templates/funding.html  | 2 --
 docs/_templates/sponsors.html | 4 ++--
 docs/_templates/tidelift.html | 2 --
 docs/oauth/1/intro.rst        | 5 ++---
 docs/oauth/2/intro.rst        | 5 ++---
 5 files changed, 6 insertions(+), 12 deletions(-)

diff --git a/docs/_templates/funding.html b/docs/_templates/funding.html
index 5de39b4..8f5dc1b 100644
--- a/docs/_templates/funding.html
+++ b/docs/_templates/funding.html
@@ -13,8 +13,6 @@
 </style>
 <div class="funding-sponsors">
   <a href="https://auth0.com/overview?utm_source=authlib&utm_medium=devsponsor&utm_campaign=authlib">
-    <img alt="Auth0"
-         src="https://user-images.githubusercontent.com/290496/39297078-89d00928-497d-11e8-8119-0c53afe14cd0.png">
     <div>Auth0</div>
   </a>
 </div>
diff --git a/docs/_templates/sponsors.html b/docs/_templates/sponsors.html
index 249fbf9..5231722 100644
--- a/docs/_templates/sponsors.html
+++ b/docs/_templates/sponsors.html
@@ -1,10 +1,10 @@
 <div class="sponsors">
   <div class="sponsor">
-    <a class="image" href="https://authlib.org/plans?utm_source=docs"><img src="https://authlib.org/assets/logo-blue.svg" alt="Authlib"></a>
+    <a class="image" href="https://authlib.org/plans?utm_source=docs"><img src="_static/authlib.svg" alt="Authlib"></a>
     <div class="text">Get a commercial license at <a href="https://authlib.org/plans?utm_source=docs">authlib.org</a></div>
   </div>
   <div class="sponsor">
-    <a class="image" href="https://auth0.com/overview?utm_source=authlib&utm_medium=devsponsor&utm_campaign=authlib"><img src="https://user-images.githubusercontent.com/290496/39297078-89d00928-497d-11e8-8119-0c53afe14cd0.png" alt="Sponsor"></a>
+    <a class="image" href="https://auth0.com/overview?utm_source=authlib&utm_medium=devsponsor&utm_campaign=authlib">
     <div class="text">The new way to solve Identity. Sponsored by <a href="https://auth0.com/overview?utm_source=authlib&utm_medium=devsponsor&utm_campaign=authlib">auth0.com</a></div>
   </div>
   <div class="patron">
diff --git a/docs/_templates/tidelift.html b/docs/_templates/tidelift.html
index 3fe26be..c2f0e34 100644
--- a/docs/_templates/tidelift.html
+++ b/docs/_templates/tidelift.html
@@ -1,7 +1,5 @@
 <div class="sponsors">
   <div class="sponsor">
-    <a class="image" href="https://tidelift.com/subscription/pkg/pypi-authlib?utm_source=pypi-authlib&amp;utm_medium=referral&amp;utm_campaign=docs">
-      <img src="https://user-images.githubusercontent.com/2379650/45126032-50b69880-b13f-11e8-9c2c-abd16c433495.png" alt="Sponsor"></a>
     <div class="text">Professionally-supported Authlib is available with the
       <a href="https://tidelift.com/subscription/pkg/pypi-authlib?utm_source=pypi-authlib&amp;utm_medium=referral&amp;utm_campaign=docs">Tidelift Subscription</a>.
     </div>
diff --git a/docs/oauth/1/intro.rst b/docs/oauth/1/intro.rst
index bf4e12d..360f2dc 100644
--- a/docs/oauth/1/intro.rst
+++ b/docs/oauth/1/intro.rst
@@ -24,10 +24,9 @@ concepts in OAuth 1.0, the authorization flow of OAuth 1.0, and etc.
 
 .. _RFC5849: https://tools.ietf.org/html/rfc5849
 
-Here is an overview of a typical OAuth 1.0 authorization flow:
+Here is an overview of a `typical OAuth 1.0 authorization flow`_:
 
-.. figure:: https://user-images.githubusercontent.com/290496/48671968-2c316080-eb73-11e8-9e6a-9e895cd67262.png
-    :alt: OAuth 1.0 Flow
+.. _typical OAuth 1.0 authorization flow: https://user-images.githubusercontent.com/290496/48671968-2c316080-eb73-11e8-9e6a-9e895cd67262.png
 
 OAuth 1.0 Flow
 --------------
diff --git a/docs/oauth/2/intro.rst b/docs/oauth/2/intro.rst
index 953659e..ba4c634 100644
--- a/docs/oauth/2/intro.rst
+++ b/docs/oauth/2/intro.rst
@@ -15,10 +15,9 @@ Introduce OAuth 2.0
     its own behalf.
 
 This section will help developers understand the concepts in OAuth 2.0, but not
-in deep of OAuth 2.0. Here is an overview of a very simple OAuth 2.0 flow:
+in deep of OAuth 2.0. Here is an overview of a `very simple OAuth 2.0 flow`_:
 
-.. figure:: https://user-images.githubusercontent.com/290496/48670041-e5803e00-eb53-11e8-91a9-3776276d6bf6.png
-    :alt: OAuth 2.0 Flow
+.. _very simple OAuth 2.0 flow: https://user-images.githubusercontent.com/290496/48670041-e5803e00-eb53-11e8-91a9-3776276d6bf6.png
 
 
 OAuth 2.0 Roles