-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Algolia search does not find code in code blocks? #3172
Comments
@francoischalifour any idea? |
the code block is not scrapped by default |
u need to add it scrap config |
👋 @slorber and @anshulrgoyal, I am part of the DocSearch team. Usually we do not recommend indexing code samples. These samples are often very similar and duplicated along your documentation such as examples. It introduces noise to the user experience. Displaying matching code would require to enlarge the snippeting to give the context of the matching token. |
Hi @s-pace, |
Hi @s-pace Wonder if you have an idea to index correctly API items that are only found in code-block? Do we rather document everything outside of code blocks too? |
I would definitely recommend to document all API items outside of code-block. It enables a better UX to redirect end users with scrolling to the exact matching item. It also helps to give the context of the matching item when the search query is matching the description of the API item. Last but not least, the relevancy would be better since matching a |
Thanks Closing this, but we'll need to document better some attributes that are only found in code blocks |
👋 @slorber |
thanks wonder what you can do for the original usecase I had ^^ (beforeDefaultRemarkPlugins) |
👋 @slorber
|
🐛 Bug Report
Search for beforeDefaultRemarkPlugins
This term exist here in a code block: https://v2.docusaurus.io/docs/using-plugins/#docusaurusplugin-content-blog
The text was updated successfully, but these errors were encountered: