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.