From 9926d195aed0aeeb236ec5b22dbffdd3d218c670 Mon Sep 17 00:00:00 2001 From: Joel Ostblom Date: Mon, 9 Oct 2023 08:45:33 -0700 Subject: [PATCH 1/3] Do not display search keyboard shortcut on home page --- doc/_static/custom.css | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/doc/_static/custom.css b/doc/_static/custom.css index f5c32b728..43e39311b 100644 --- a/doc/_static/custom.css +++ b/doc/_static/custom.css @@ -70,11 +70,18 @@ properly displayed on mobile devices and not restricted to 20% */ vertical-align: text-bottom; margin-right: 3px; } - + .full-width-plot { width: 100%; } +/* This hides the Ctrl + K from the search box on the start page + * to make it less distracting on the home page. + * The shortcut still shows up when clicking the search box */ +.search-button-field > .search-button__kbd-shortcut { + display: none; +} + /* Configurations for the start page ------------------------------------ */ .lead { @@ -92,4 +99,4 @@ properly displayed on mobile devices and not restricted to 20% */ /* Default is bolder which is less */ font-weight: bold; } -/* ---------------------------------- */ \ No newline at end of file +/* ---------------------------------- */ From 2c37791b20ce46fd08525419922d230e2f0fb4c8 Mon Sep 17 00:00:00 2001 From: Joel Ostblom Date: Mon, 9 Oct 2023 11:21:10 -0700 Subject: [PATCH 2/3] Set minimum version on pydata theme --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 1489225f9..87b6c079b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -81,7 +81,7 @@ doc = [ "jinja2", "numpydoc", "pillow>=9,<10", - "pydata-sphinx-theme", + "pydata-sphinx-theme>=0.14.1", "geopandas", "myst-parser", "sphinx_copybutton", From 402e0dc09beb316e7f0caa89f251b34d90ac2bb7 Mon Sep 17 00:00:00 2001 From: Joel Ostblom Date: Mon, 9 Oct 2023 11:35:23 -0700 Subject: [PATCH 3/3] Use old color for banner since it goes better with the altair logo --- doc/_static/custom.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/_static/custom.css b/doc/_static/custom.css index 43e39311b..d6546af64 100644 --- a/doc/_static/custom.css +++ b/doc/_static/custom.css @@ -82,6 +82,11 @@ properly displayed on mobile devices and not restricted to 20% */ display: none; } +/* Use old light blue color for banner since it goes better with the Altair logo */ +.bd-header-announcement { + background-color: #daebf1 !important; +} + /* Configurations for the start page ------------------------------------ */ .lead {