From 798fbdc198be9d456a33075838209fe1ce01d599 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Thu, 31 Mar 2022 23:53:54 -0400 Subject: [PATCH] DOC: add job advert Co-authored-by: Elliott Sales de Andrade --- doc/_static/mpl.css | 24 ++++++++++++++++++++++++ doc/_templates/sidebar_announcement.html | 13 ++++++++++--- doc/conf.py | 1 + 3 files changed, 35 insertions(+), 3 deletions(-) diff --git a/doc/_static/mpl.css b/doc/_static/mpl.css index 1cafdf14e3f1..7663ae8d5196 100644 --- a/doc/_static/mpl.css +++ b/doc/_static/mpl.css @@ -256,6 +256,30 @@ table.property-table td { width: 210px; } +.sidebar-announcement { + border-left: solid 1px #e5e5e5; + border-bottom: solid 1px #e5e5e5; + border-right: solid 1px #e5e5e5; + border-bottom-right-radius: 4px; + border-bottom-left-radius: 4px; + box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.11); + margin-bottom: 20px; + padding: 28px 20px 20px; + position: relative; +} + +.sidebar-announcement::before { + content: ""; + position: absolute; + top: 0; + left: 0; + display: block; + height: 8px; + width: 100%; + background-color: #355f8d; + background-image: linear-gradient(90deg, #440154, #355f8d); +} + /* Two columns for install code blocks */ div.twocol { padding-left: 0; diff --git a/doc/_templates/sidebar_announcement.html b/doc/_templates/sidebar_announcement.html index f8fa4d8a5efb..07fe64889d75 100644 --- a/doc/_templates/sidebar_announcement.html +++ b/doc/_templates/sidebar_announcement.html @@ -1,5 +1,12 @@ diff --git a/doc/conf.py b/doc/conf.py index 9f69a44639d6..c6d7f08be0d6 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -321,6 +321,7 @@ def matplotlib_reduced_latex_scraper(block, block_vars, gallery_conf, # and CI builds https://github.com/pydata/pydata-sphinx-theme/pull/386 "collapse_navigation": not is_release_build, "show_prev_next": False, + "left_sidebar_end": ["sidebar_announcement.html"], } include_analytics = is_release_build if include_analytics: