cmfcmf / docusaurus-search-local

Offline / Local Search for Docusaurus v2. Try it live at:
https://cmfcmf.github.io/OpenWeatherMap-PHP-API/
MIT License
438 stars 67 forks source link

Tag pages or folders to be excluded from search index? #81

Open jjpank opened 2 years ago

jjpank commented 2 years ago

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?

cmfcmf commented 2 years ago

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"
]
jjpank commented 2 years ago

Yes, that seems a straight forward and simple approach.

cmfcmf commented 2 years ago

PR: https://github.com/cmfcmf/docusaurus-search-local/pull/87