From c269d855defb3f757fdc4ddaeed458da4def5b71 Mon Sep 17 00:00:00 2001 From: Carlos Scheidegger <285675+cscheid@users.noreply.github.com> Date: Thu, 24 Oct 2024 14:44:09 -0700 Subject: [PATCH] Update website-search.qmd (#1415) Document quarto-cli/pulls/11191 --- docs/websites/website-search.qmd | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/websites/website-search.qmd b/docs/websites/website-search.qmd index f2d190db6e..04d37b271a 100644 --- a/docs/websites/website-search.qmd +++ b/docs/websites/website-search.qmd @@ -190,7 +190,7 @@ website: tagFilters: ['tag1','tag2'] ``` -## Disabling Search +## Disabling/Forcing Search You can disable search for an individual document by adding `search: false` to the document metadata. For example: @@ -207,3 +207,8 @@ If you'd like to disable search support for an entire website, you can do so by website: search: false ``` + +### Forcing the inclusion of individual elements + +If you need elements from the document to be included in the search that otherwise wouldn't, add the `quarto-include-in-search-index` class to the element. +To include only a portion of a paragraph, etc, wrap the text in a span or a div and add the class to the element.