docusaurus-search-local
docusaurus-search-local copied to clipboard
Tag pages or folders to be excluded from search index?
Hello, I could not find any feature to tag certain pages or folders to be excluded from the search features. As we are building out our docusaurus pages, some teams have work in progress, and as we publish releases sometimes those are not yet linked into the navigation because they're not ready, but the index still picks them up. Is there any feature for this, or is this a reasonable feature that might be useful to include?
Sounds like a reasonable idea! There currently is no option to do that. Would a solution where you can specify a list of urls to not index work for you? E.g.:
const doNotIndex = [
"/docs/page-1",
"/docs/entire-folder"
]
Yes, that seems a straight forward and simple approach.
PR: https://github.com/cmfcmf/docusaurus-search-local/pull/87