File: sphinx-3rdparty-assets

package info (click to toggle)
python-authlib 0.15.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,408 kB
  • sloc: python: 18,626; makefile: 47; javascript: 37; sh: 10
file content (120 lines) | stat: -rw-r--r-- 6,027 bytes parent folder | download
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
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/lepture/authlib/issues/282
---
 docs/_templates/sponsors.html    | 4 ++--
 docs/_templates/sustainable.html | 3 +--
 docs/_templates/tidelift.html    | 2 --
 docs/conf.py                     | 6 +++---
 docs/oauth/1/intro.rst           | 5 ++---
 docs/oauth/2/intro.rst           | 5 ++---
 6 files changed, 10 insertions(+), 15 deletions(-)

diff --git a/docs/_templates/sponsors.html b/docs/_templates/sponsors.html
index fce1301..d26e383 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/sustainable.html b/docs/_templates/sustainable.html
index bb29021..55022b2 100644
--- a/docs/_templates/sustainable.html
+++ b/docs/_templates/sustainable.html
@@ -1,11 +1,10 @@
 <div class="sponsors">
   <div class="sponsor" style="display:block">
-    <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 with <strong>Plus</strong> plan at <a href="https://authlib.org/plans?utm_source=docs">authlib.org</a></div>
   </div>
   <div class="sponsor" style="display:block">
     <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/_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/conf.py b/docs/conf.py
index c70b16f..a8a55e5 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -49,8 +49,8 @@ html_theme_options = {
         'The ultimate Python library in building OAuth and OpenID Connect '
         'servers. JWS, JWE, JWK, JWA, JWT are included.'
     ),
-    'github_user': 'lepture',
-    'github_repo': 'authlib',
+    #'github_user': 'lepture',
+    #'github_repo': 'authlib',
     'twitter': 'authlib',
     'og_image': 'https://authlib.org/logo.png',
     'meta_html': (
@@ -129,7 +129,7 @@ html_css_files = [
     'sponsors.css',
 ]
 html_js_files = [
-    'sponsors.js',
+#    'sponsors.js',
 ]
 
 
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 9e4f203..02e164a 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