Skip to content

Commit 7ff5300

Browse files
authored
Update website-search.qmd
Document quarto-cli/pulls/11191
1 parent 70e1aca commit 7ff5300

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/websites/website-search.qmd

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ website:
190190
tagFilters: ['tag1','tag2']
191191
```
192192

193-
## Disabling Search
193+
## Disabling/Forcing Search
194194

195195
You can disable search for an individual document by adding `search: false` to the document metadata. For example:
196196

@@ -207,3 +207,8 @@ If you'd like to disable search support for an entire website, you can do so by
207207
website:
208208
search: false
209209
```
210+
211+
### Forcing the inclusion of individual elements
212+
213+
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.
214+
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.

0 commit comments

Comments
 (0)