IntegrationsVitepress
Add Search Bar to VitePress
Integrate Inkeep's search bar into your VitePress documentation for powerful content discovery.
What is VitePress
VitePress is a lightweight static site generator based on Vue.
Get an API key
Follow these steps to create an API key for your web integration.
Copy and add the apiKey
to your environment variables:
Load the script files
Add the below scripts to the config.ts
file:
Create the addInkeep.js script
Create an addInkeep.js
file in your static
folder.
Now, create a container and configure the search bar component.
Configure the component
Next, initialize the widget using the Inkeep.SearchBar()
function.
Note
This will replace the default search bar used on the website.
For a full list of customizations, check out the Search Bar documentation.