You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have trouble figuring out the best place to adapt the mkdocs search to deliver a more helpful result when using the camel case in the search string. I know mkdocs uses lunr search under the hood but I was not able to find a solution anyway.
Problem:
When using camel case words in the search bar (e.g. VerySpecificVariableName) the search seems to convert this into a separated word list Very* Specific* Variable* Name ... This makes searching for variable names in a documentation impossible.
Question
Is there a way to prevent the splitting of camel-case words?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have trouble figuring out the best place to adapt the mkdocs search to deliver a more helpful result when using the camel case in the search string. I know mkdocs uses lunr search under the hood but I was not able to find a solution anyway.
Problem:
When using camel case words in the search bar (e.g.
VerySpecificVariableName
) the search seems to convert this into a separated word listVery* Specific* Variable* Name
... This makes searching for variable names in a documentation impossible.Question
Is there a way to prevent the splitting of camel-case words?
Example
Searching for
camelCase
on https://squidfunk.github.io/mkdocs-material/ will returncamelCase
results and results likeCase
.Beta Was this translation helpful? Give feedback.
All reactions