Skip to content
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

Only index pages for searching under the same directory #4117

Open
4 tasks done
Deaadman opened this issue Aug 9, 2024 · 0 comments
Open
4 tasks done

Only index pages for searching under the same directory #4117

Deaadman opened this issue Aug 9, 2024 · 0 comments

Comments

@Deaadman
Copy link

Deaadman commented Aug 9, 2024

Is your feature request related to a problem? Please describe.

It isn't really an issue per say, more just an optional feature that I think would come in handy for me and others if they wanted it.

I guess the issue is that the search function always indexes all pages no matter what directory you are under - but that may be confusing to some people if they want to search for a specific keyword and are only expecting it to return results from the directory they are under.

Describe the solution you'd like

I'm not sure if it's entirely possible, because directories in each VitePress project are completely separate - but I was hoping that developers could have a 'list' of strings which each of their directories, so...

  • /docs/manuals
  • /docs/guides
  • /docs/api

Or something along the lines above, then whenever a user browsers to one of those directories and searches, it only returns keywords within the same directory if that makes sense?

Describe alternatives you've considered

No response

Additional context

No response

Validations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant