Skip to content

Commit

Permalink
Update website-search.qmd (#1415)
Browse files Browse the repository at this point in the history
Document quarto-cli/pulls/11191
  • Loading branch information
cscheid authored Oct 24, 2024
1 parent 70e1aca commit c269d85
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/websites/website-search.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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.

0 comments on commit c269d85

Please sign in to comment.