Skip to content

Commit b273633

Browse files
committed
Fix sponsor banner in docs
1 parent 45d1b4b commit b273633

File tree

3 files changed

+27
-3
lines changed

3 files changed

+27
-3
lines changed

docs/_static/theme_overrides.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
img.auth0-logo {
2+
max-width: 45px !important;
3+
}
4+
5+
@media screen and (min-width: 767px) {
6+
.wy-table-responsive table td {
7+
/* !important prevents the common CSS stylesheets from overriding
8+
this as on RTD they are loaded after this stylesheet */
9+
white-space: normal !important;
10+
}
11+
12+
.wy-table-responsive {
13+
overflow: visible !important;
14+
}
15+
}

docs/conf.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,13 @@ def get_version(package):
152152
# so a file named "default.css" will overwrite the builtin "default.css".
153153
html_static_path = ['_static']
154154

155+
html_context = {
156+
'css_files': [
157+
# override wide tables in RTD theme
158+
'_static/theme_overrides.css',
159+
],
160+
}
161+
155162
# Add any extra paths that contain custom files (such as robots.txt or
156163
# .htaccess) here, relative to this directory. These files are copied
157164
# directly to the root of the documentation.

docs/index.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@ claims securely between two parties.
88
Sponsor
99
-------
1010

11-
+--------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
12-
| |auth0-logo| | If you want to quickly add secure token-based authentication to Python projects, feel free to check Auth0's Python SDK and free plan at `auth0.com/overview <https://auth0.com/overview?utm_source=GHsponsor&utm_medium=GHsponsor&utm_campaign=pyjwt&utm_content=auth>`_. |
13-
+--------------+-----------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
11+
+--------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
12+
| |auth0-logo| | If you want to quickly add secure token-based authentication to Python projects, feel free to check |
13+
| | Auth0's Python SDK and free plan at `auth0.com/overview <https://auth0.com/overview?utm_source=GHsponsor&utm_medium=GHsponsor&utm_campaign=pyjwt&utm_content=auth>`_. |
14+
+--------------+-----------------------------------------------------------------+-----------------------------------------------------------------------------------------------------+
1415

1516
.. |auth0-logo| image:: https://user-images.githubusercontent.com/83319/31722733-de95bbde-b3ea-11e7-96bf-4f4e8f915588.png
17+
:class: auth0-logo
1618

1719
Installation
1820
------------

0 commit comments

Comments
 (0)