IntegrationsHugo
Add AI Chat to your Hugo docs
Overview
In this integration example, we will be integrating Inkeep widget into Ananke theme, which is the default theme used as an example with Hugo.
What is Hugo
Hugo is a popular open-source static site generator often used for documentation.
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 baseof.html file
Create an baseof.html
file at the path layouts/_default
Copy the contents of the baseof.html
file:
Note
Depending on your Hugo theme, this step may differ. The goal is to be able to insert custom scripts into your sites
<head>
tag.Load the script files
In the baseof.html
file, locate the head tag and paste the scripts below at the end:
Create the addInkeep.js script
Create an addInkeep.js
file in your static/js
folder.
Now, configure the chat button component.
For a full list of customizations, check out the Chat Button documentation.