IntegrationsVitepress
Add AI Search to your VitePress docs
What is VitePress
VitePress is a lightweight static site generator based on Vue.
Get an API key
- Go to the Inkeep Dashboard
- Select your project under Projects
- Go to the Integrations tab
- Click on Create integration
- Select Web
- Provide a Name and URL (optional) for the integration
- Click on Create
- Click the Example < /> button to get your API key and view suggested settings
Copy and add the apiKey
, integrationId
and organizationId
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, embed the widget using the Inkeep.embed()
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.