From 1ddac72dc549833c42fbd661418b50b81a976454 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Tue, 10 Oct 2023 20:16:57 -0700 Subject: [PATCH] Build: Exclude `.desc strong:first-child` from search excerpts Fix a long-standing bug that also affected Algolia previously, where excerpts of API pages all start with "Description:". Ref https://github.com/jquery/infrastructure-puppet/issues/33 --- docsearch.config.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docsearch.config.json b/docsearch.config.json index ed567926..f420af4a 100644 --- a/docsearch.config.json +++ b/docsearch.config.json @@ -44,7 +44,8 @@ ".section-title", ".icon-link.toc-link", "[class^=toclevel]", - "#toctitle" + "#toctitle", + ".desc strong:first-child" ], "min_indexed_level": 2, "scrape_start_urls": false