Docsy
Add AI Search to your Docsy docs
What is Docsy
Docsy is a theme for the Hugo static site generator that’s specifically designed for technical documentation sets and has a lot of best practices built in.
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
Create the head-end.html file
Create an head-end.html
file at the path layouts/partials/hooks
Load the script files
Add the below scripts to the head-end.html
file:
head-end.html
Create the addInkeep.js script
Create an addInkeep.js
file in your static/js
folder.
Disable the default search in the
config.toml (or hugo.toml)
file, by setting the offlineSearch
parameter to false.Now, create a container and configure the search bar component.
addInkeep.js
For a full list of customizations, check out the Search Bar documentation.