gabrielcsapo / gabrielcsapo/docusaurus-plugin-search-local

Allow solo indexes to be created per path

Open
#54 1 comment 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
27
Forks
9
PR merge metrics
No merged PRs in 30d

Description

We have a documentation project with multiple "books". E.g. android, ios, web, etc.
Books may have similar titles and headings. If a user is in the android documentation, we don't want to show them ios results.

If the user is viewing a page with the /android path, there should be an option to show only results from the `/android` path, ignoring all other search results.

Similarly, If the user is viewing a page with the /ios path, there should be an option to show only results from the `/ios` path, ignoring all other search results.

And so on...

This could probably be achieved with an option called `showResultsByBasePath`, and have paths be explicitly specified (easier to implement) or implicitly determined (harder to implement I think).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.