IntegrationsSphinx
Add AI Search to your Sphinx docs
What is Sphinx
Sphinx is a documentation platform often used for Python projects.
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.
- Specify a URL for where this integration will be used.
- For production API keys, leave Enforce referrer URL checked.
- Click on Create
- Click the Example < /> button to get your API key and view suggested settings
For local or staging API keys, see here.
Load the script files
Add the below scripts to the conf.py
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
Container element
Create a searchbox.html
file in source/_templates
and paste in the below::
Note
This Inkeep SearchBar
widget will replace the default search bar used on the website.
For a full list of customizations, check out the Search Bar documentation.