From f794f3d2e147db71c8a86f6089776e542b0e8da0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Est=C3=A8ve?= Date: Fri, 17 Nov 2023 08:46:28 +0100 Subject: [PATCH 1/3] DOC Add context to sphinx search --- doc/conf.py | 2 +- doc/themes/scikit-learn-modern/layout.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index 288aba5404ae6..9a0c09438d865 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -309,7 +309,7 @@ html_additional_pages[old_link] = "redirects.html" # Not showing the search summary makes the search page load faster. -html_show_search_summary = False +html_show_search_summary = True # The "summary-anchor" IDs will be overwritten via JavaScript to be unique. diff --git a/doc/themes/scikit-learn-modern/layout.html b/doc/themes/scikit-learn-modern/layout.html index c9d232db884b7..140d8ff0bcdeb 100644 --- a/doc/themes/scikit-learn-modern/layout.html +++ b/doc/themes/scikit-learn-modern/layout.html @@ -11,7 +11,7 @@ - + {{ metatags }} @@ -35,7 +35,7 @@ {%- endif %} {%- endfor %} - + {%- block extrahead %} {% endblock %} From 009ebf5fbb34f9f08df05eb120843942af055a62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Est=C3=A8ve?= Date: Fri, 17 Nov 2023 08:59:44 +0100 Subject: [PATCH 2/3] Still use data-url_root for sphinx<7.2 --- doc/themes/scikit-learn-modern/layout.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/themes/scikit-learn-modern/layout.html b/doc/themes/scikit-learn-modern/layout.html index 140d8ff0bcdeb..c3140c190386b 100644 --- a/doc/themes/scikit-learn-modern/layout.html +++ b/doc/themes/scikit-learn-modern/layout.html @@ -35,7 +35,7 @@ {%- endif %} {%- endfor %} - + {%- block extrahead %} {% endblock %} From 77e4c89f05421645e5bd8656128fb12dc9900246 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Est=C3=A8ve?= Date: Fri, 17 Nov 2023 09:09:49 +0100 Subject: [PATCH 3/3] tweak --- doc/themes/scikit-learn-modern/layout.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/themes/scikit-learn-modern/layout.html b/doc/themes/scikit-learn-modern/layout.html index c3140c190386b..779435323be20 100644 --- a/doc/themes/scikit-learn-modern/layout.html +++ b/doc/themes/scikit-learn-modern/layout.html @@ -10,8 +10,8 @@ - - + + {{ metatags }}