I have a question about integrating Typesense with...
# community-help
d
I have a question about integrating Typesense with Vuepress. I discovered Vuepress via the Typesense docs and want to use it to build my own. Can the provided
TypesenseSearchBox.vue
component be used with the default theme, or does it need to be integrated with a custom theme? I’m trying to do whatever I can to use the default theme for simplicity (focus on content!).
j
You can definitely use it with the default theme. In fact Typesense docs just uses the default theme. You just have to copy the
TypesenseSearchBox.vue
into your
.vuepress/theme/components
directory, along with this slightly tweaked
Navbar
component (which overrides the default one): https://github.com/typesense/typesense-website/blob/master/docs-site/content/.vuepress/theme/components/Navbar.vue
Actually, there are a couple of other Typesense specific modifications in that Navbar file. I'd recommend copying the Navar.vue file that's part of the default theme and then replace the AlgoliaSearchBox markup with TypesenseSearchBox
d
Excellent! I was wondering how to customize the NavBar for it, so that’s extremely helpful. Also very useful to know that you are using the default theme as it will help me get up to speed on Vuepress.
👍 1