summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Pradet <quentin.pradet@gmail.com>2020-11-17 03:01:44 +0400
committerGitHub <noreply@github.com>2020-11-16 17:01:44 -0600
commit993bcb778615116d910ae187c7bdab1389dbb240 (patch)
tree95e5d18cbdff8eb72a9a09c884cc54a78a1c0344
parentde946a7075739fb22e1bbc990b919c5e8288be76 (diff)
downloadurllib3-993bcb778615116d910ae187c7bdab1389dbb240.tar.gz
Add alternate 'dark mode' banner to documentation
-rw-r--r--docs/_static/banner.svg (renamed from docs/images/banner.svg)0
-rw-r--r--docs/_static/dark-logo.svg1
-rw-r--r--docs/conf.py4
3 files changed, 4 insertions, 1 deletions
diff --git a/docs/images/banner.svg b/docs/_static/banner.svg
index 86e6661e..86e6661e 100644
--- a/docs/images/banner.svg
+++ b/docs/_static/banner.svg
diff --git a/docs/_static/dark-logo.svg b/docs/_static/dark-logo.svg
new file mode 100644
index 00000000..a11012fb
--- /dev/null
+++ b/docs/_static/dark-logo.svg
@@ -0,0 +1 @@
+<svg viewBox="0 0 400 119.35" xmlns="http://www.w3.org/2000/svg"><path d="m23.05 31v51.88q0 7.35 1.73 11.05 3.06 6.55 12 6.56 11.48 0 15.71-9.32 2.2-5.06 2.2-13.34v-46.83h22.82v86h-21.86v-12.09c-.21.26-.74 1-1.57 2.36a15.9 15.9 0 0 1 -3 3.48 31.44 31.44 0 0 1 -10.2 6.47 34.57 34.57 0 0 1 -11.52 1.78q-19 0-25.66-13.74-3.7-7.61-3.7-22.38v-51.88z" fill="#fff"/><path d="m140.44 29c.29 0 .93.07 1.93.12v23.06c-1.42-.16-2.68-.27-3.79-.32s-2-.08-2.68-.08q-13.58 0-18.23 8.84-2.61 5-2.61 15.32v41.12h-22.65v-86.06h21.47v15q5.2-8.61 9.08-11.76 6.3-5.24 16.41-5.24z" fill="#fff"/><path d="m177.56 86h-22.81v-86h22.81zm-22.81 10.3h22.81v20.76h-22.81z" fill="#cb3b0f"/><path d="m210.13 86h-22.82v-86h22.82zm-22.82 10.3h22.82v20.76h-22.82z" fill="#ea9b1c"/><path d="m242.69 20.76h-22.81v-20.76h22.81zm-22.81 10.24h22.81v86h-22.81z" fill="#577a27"/><path d="m333.45 41.36q9.66 12.24 9.66 31.58 0 20-9.53 33.23t-26.58 13.18q-10.71 0-17.21-4.26-3.89-2.53-8.41-8.84v10.81h-22.18v-116.19h22.49v41.36a32.94 32.94 0 0 1 9.46-9.16q6.11-3.94 15.57-3.94 17.07 0 26.73 12.23zm-18.8 52.41q4.86-7 4.85-18.47 0-9.15-2.38-15.15-4.55-11.37-16.72-11.37-12.33 0-16.95 11.13-2.38 5.93-2.39 15.32 0 11 4.94 18.31t15 7.26a15.6 15.6 0 0 0 13.65-7.03z" fill="#fff"/><path d="m363 49.73q.31 5.06 1.74 7.42 2.59 4.34 9.47 4.34a11.79 11.79 0 0 0 5.6-1.42q5.06-2.68 5-9.24t-5-8.6q-3.07-1.33-11.6-1.66v-9.57q7-.15 9.87-1.34 5-2.13 5-8.21a7.91 7.91 0 0 0 -2.81-6.45 10.56 10.56 0 0 0 -6.87-2.25 8.91 8.91 0 0 0 -7.3 3.12 12.32 12.32 0 0 0 -2.57 8.09h-13.53a20.75 20.75 0 0 1 7.42-17.37q5.96-4.78 16.58-4.77 10.89 0 17.33 5.17a16.55 16.55 0 0 1 6.43 13.53 14.06 14.06 0 0 1 -2.42 8.48 17.71 17.71 0 0 1 -6.55 5.41 13 13 0 0 1 7.78 4.34q3.43 3.72 3.43 11.45 0 10.59-7.3 16.38a27.25 27.25 0 0 1 -17.49 5.8q-12.07 0-19.37-5.32t-7.31-17.33z" fill="#fff"/></svg>
diff --git a/docs/conf.py b/docs/conf.py
index 8d6c6877..23b67162 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -71,8 +71,8 @@ pygments_style = "friendly"
# a list of builtin themes.
html_theme = "furo"
html_favicon = "images/favicon.png"
-html_logo = "images/banner.svg"
+html_static_path = ["_static"]
html_theme_options = {
"announcement": """
<a style=\"text-decoration: none; color: white;\"
@@ -81,6 +81,8 @@ html_theme_options = {
</a>
""",
"sidebar_hide_name": True,
+ "light_logo": "banner.svg",
+ "dark_logo": "dark-logo.svg",
}
intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}