-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a class that excludes blocks of text from being added to the OOTB Quarto search index (search.json) #11189
Comments
If you can put together a PR against |
- Users will now be able to create `div`s and `span`s that exclude certain page elements from the search index.
- Users will now be able to create `div`s and `span`s that exclude certain page elements from the search index.
- Users will now be able to create `div`s and `span`s that exclude certain page elements from the search index.
- Users will now be able to create `div`s and `span`s that exclude certain page elements from the search index.
- Users will now be able to create `div`s and `span`s that exclude certain page elements from the search index.
- Users will now be able to create `div`s and `span`s that exclude certain page elements from the search index.
@cscheid Thanks for the tip! I'm still working on the tests. It may take me a few days, since I have a few other higher-priority items, but I'll be sure to get this done as soon as I can. It seems like we already signed and sent over the contributor agreement for TileDB, and I just added a changelog note for 1.6. |
- Users will now be able to create `div`s and `span`s that exclude certain page elements from the search index.
Our use case:
We have several
{{< embed >}}
blocks across our documentation, some of which reference the outputs of running thetree
command on certain folders. Thetree
output contains a bunch of names and terms that are used frequently across different areas of our product. If we happen to search for one of the terms that matches a directory of thetree
output, we get a bunch of irrelevant results. For example, let's say I search for enumerations:The page includes references to an
enumerations
folder, but the page itself isn't about enumerations.I'd like the ability to add a class to a
div
or aspan
block and have Quarto strip that block out before it enterssearch.json
.The text was updated successfully, but these errors were encountered: