Add Chat Button to Hugo Docsy
Copy page
Integrate Inkeep's chat button into your Hugo Docsy theme for real-time user assistance.
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
Follow these steps to create an API key for your web assistant.
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:
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.
Positioning
We support customization of styles via custom css in baseSettings, you can style "Ask AI" button by targetting it's class as so:
You can find more information in the Custom Styles documentation.