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
Allow bypassing the lvl0 #38
Comments
In such case, I was also used to hide the left sidebar (with CSS overrides), what do you think? |
So no records are grouped, they are all on the same level, without separation nor grouping? I never had to do that, but if this is needed then maybe we need to think of another API. Instead of a value of So, to start the hierarchy at the level 2, we would have to do:
This would simply put |
For the record: https://secure.helpscout.net/conversation/153468099/4734/?folderId=696686 Final implementation: http://help.fastnotesapp.com/ (at that time, I even hided the headers but I've updated the crawler and reached out to propose him to show it again) |
I like the |
Fixed with #45 |
For documentations that have only 1 or 2 levels, the default display adds too many constraints. We usually do not need the lvl0, and would want to start the hierarchy at the lvl1, and only display two columns without the horizontal bars.
Using default values for lvl0, we could easily set it to a hardcoded "Documentation" string, and then in the front end hide the bar using CSS.
But this will leave with with a
lvl0
of Documentation that is searchable, so if a user searches for "Documentation", all the records would match.So we need to provide a way to bypass completly the lvl0. The proposal is to allow a value of
None
on thelvl0
, that will trigger a specific behavior.lvl0
will be hardcoded toDocumentation
for all recordslvl0
will not be added to the rankingIn a second step, we will add a
removeTitle
option on docsearch.js that will automatically hide the horizontal bar. In the meantime, those default options will simply group all the results under the same header, but disallowing searching in it.Checklist
None
toselectors.lvl0
lvl0
from all rankingThe text was updated successfully, but these errors were encountered: