From dc3aaaba6184ad8ef816e7bdec859df19eb8bbf2 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Sat, 29 Jun 2024 03:54:20 -0400 Subject: [PATCH 1/9] Convert introduction from HTML to sphinx-design --- docs/_static/css/landing.css | 40 ++++++++++---------- docs/_static/script.js | 2 +- docs/_templates/landing_footer.html | 2 +- docs/body.html | 57 ----------------------------- docs/conf.py | 1 + docs/index.rst | 43 +++++++++++++++++++++- requirements.txt | 1 + 7 files changed, 66 insertions(+), 80 deletions(-) diff --git a/docs/_static/css/landing.css b/docs/_static/css/landing.css index b0a6a42..a723849 100644 --- a/docs/_static/css/landing.css +++ b/docs/_static/css/landing.css @@ -58,6 +58,14 @@ --shadow: 0px 2px 2px rgba(0, 0, 0, 0.11); } +/* Introductory title. */ +.intro-title { + color: var(--pst-color-primary); + font-family: var(--pst-font-family-heading); + font-size: var(--pst-font-size-h2); + font-weight: var(--regular) !important; +} + /* callout boxes */ .callout { border-left: solid 1px var(--pst-color-border); @@ -493,15 +501,6 @@ main.bd-main { grid-area: intro-start / intro-start / footer-start / intro-text-end; } -.grid__intro-text { - grid-area: intro-text; -} - -.grid__intro { - margin-top: 4em; - grid-area: intro; -} - .grid__quicklinks { margin-top: 2em; grid-area: quicklinks; @@ -657,6 +656,7 @@ a.button { width: fit-content; width: -moz-fit-content; display: block; + border: none; border-radius: var(--border-radius); color: var(--white); margin: 1em 0; @@ -685,30 +685,30 @@ a.button:hover::after { margin-left: 80px; } -.button--purple, -a.button--purple { +.button-purple, +a.button-purple { background: var(--viridis-purple); } -.button--blue, -a.button--blue { +.button-blue, +a.button-blue { background: var(--viridis-blue); } -.button--teal, -a.button--teal { +.button-teal, +a.button-teal { background: var(--viridis-teal); } -.button--green, -a.button--green, -a.button--green:hover { +.button-green, +a.button-green, +a.button-green:hover { background: var(--viridis-green); color: var(--black); } -.button--green::after, -a.button--green::after { +.button-green::after, +a.button-green::after { content: "\f061"; /* fa-arrow-right */ font-family: "Font Awesome 5 Free"; font-weight: 900; diff --git a/docs/_static/script.js b/docs/_static/script.js index a94e644..c9e0c35 100644 --- a/docs/_static/script.js +++ b/docs/_static/script.js @@ -56,7 +56,7 @@ document.addEventListener("DOMContentLoaded", function(event) { '' + '
' + caption + '
' + ''; - document.getElementById('image_rotator').innerHTML = html; + document.getElementById('image-rotator').innerHTML = html; }); diff --git a/docs/_templates/landing_footer.html b/docs/_templates/landing_footer.html index e502188..bf35027 100644 --- a/docs/_templates/landing_footer.html +++ b/docs/_templates/landing_footer.html @@ -30,7 +30,7 @@

Matplotlib

Donate to Matplotlib

{{ copyright }}

diff --git a/docs/body.html b/docs/body.html index d089ad8..cb0783a 100644 --- a/docs/body.html +++ b/docs/body.html @@ -1,60 +1,3 @@ -
-

Matplotlib: Visualization with Python

-

- Matplotlib is a comprehensive library for creating static, animated, - and interactive visualizations in Python. Matplotlib makes easy things - easy and hard things possible. -

- - - - - Try Matplotlib (on Binder) -
-
- -