From 2a561b14637e4eff8d3b83c332cef579e7a9f1b5 Mon Sep 17 00:00:00 2001 From: Deborah Barnard Date: Fri, 8 Aug 2025 14:16:44 +0100 Subject: [PATCH] From Kapa feedback: restore site search, remove Kapa search, move button (#3459) --- _overrides/main.html | 1 - _overrides/partials/header.html | 29 +++++++++++++++++++--- _overrides/partials/nav.html | 13 +--------- docs/_extra/css/extra.css | 13 +++------- docs/_extra/javascript/init_kapa_widget.js | 3 --- mkdocs.yml | 1 + 6 files changed, 32 insertions(+), 28 deletions(-) diff --git a/_overrides/main.html b/_overrides/main.html index 58f3eb736..9f6f65db1 100644 --- a/_overrides/main.html +++ b/_overrides/main.html @@ -47,7 +47,6 @@ https://plausible.io/docs/script-extensions?ref=ryansechrest.com#all-our-script- {% endblock %} - {% block container %} diff --git a/_overrides/partials/header.html b/_overrides/partials/header.html index 3a91d0a88..e248bb812 100644 --- a/_overrides/partials/header.html +++ b/_overrides/partials/header.html @@ -113,9 +113,32 @@ {% endif %} - + + + + + {% if "material/search" in config.plugins %} + {% set search = config.plugins["material/search"] | attr("config") %} + + + {% if search.enabled %} + + + + {% include "partials/search.html" %} + {% endif %} + {% endif %} diff --git a/_overrides/partials/nav.html b/_overrides/partials/nav.html index 69d2d9e55..2de8f1151 100644 --- a/_overrides/partials/nav.html +++ b/_overrides/partials/nav.html @@ -53,21 +53,10 @@ - - +