vitepress
vitepress copied to clipboard
unable to default to detailedView in local search
Describe the bug
According to changeling this should be possible, but I cannot manage to make this work. I think this is an option of vitepress and not of mini search so it should fallback into the search options in themeconfog. I tried this:
Reproduction
I am using this:
themeConfig: {
...
search: {
provider: 'local',
options: {
detailedView: true
}
}
Expected behavior
I expect to be able to click search and have the detailed view ON instead than OFF by default.
System Info
rc40, macOS, safari.
Additional context
No response
Validations
- [X] Check if you're on the latest VitePress version.
- [X] Follow our Code of Conduct
- [X] Read the docs.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
It seems to be working fine for me. You probably had earlier toggled it. Try opening in incognito, it should be open by default.
I have the same issue in Safari, and only Safari. Indeed, if I open my browser in incognito, search previews are open by default. However, if is not in this mode no previews are available at all. Firefox works well on either mode.