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

Add "alternative words" to filter items in docs #21068

Open
hikalkan opened this issue Oct 13, 2024 · 0 comments
Open

Add "alternative words" to filter items in docs #21068

hikalkan opened this issue Oct 13, 2024 · 0 comments

Comments

@hikalkan
Copy link
Member

For example, user may type "Error" instead of "Exception". In that case, it would be good to also find the "Exception" in filter results.

image

We can simply add optional "keywords" definition to an item on the navigation tree.

Example:

{
  "text": "Exception Handling",
  "path": "framework/fundamentals/exception-handling.md",
  "keywords": ["Error", "Another Value"]
}

We may define more than one keyword in the array as shown above. Then "filtering" will also consider these keywords.

This will be done in the docs module.

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

No branches or pull requests

2 participants