Algolia
Learn how to integrate Algolia DocSearch into your documentation.
Algolia DocSearch provides a fast, relevant search experience for documentation sites. It powers the search in this project (DocuBook). Follow this guide to integrate it into your documentation.
Enable Algolia Search
To enable Algolia DocSearch, update the search.type in your docu.json file:
This will automatically apply Algolia search across all search components in your documentation.
Built-in Search
To use the built-in search instead, set
"type": "default"or remove thesearchconfiguration entirely.
Apply for DocSearch
Algolia provides DocSearch for open-source projects for free. To apply:
- Step 1: Visit the DocSearch
- Step 2: Fill out the form with details about your documentation:
- Step 3: Submit your request. Once approved, Algolia will provide:
Crawler Editor
Now we will customize the crawler to follow the hierarchy of the docs created by DocuBook :
- Step 1: Dashboard Algolia
- Step 2: Navigate to Data Sources
- Step 3: In the Data Sources menu
- Step 4: Editor
copy the entire crawler code below :
Pay attention to the highlighted parts of the crawler syntax below—these are the sections you need to modify.
Deployment
When deploying your DocuBook Flame project, ensure the environment variables are available at build time. Add them to your .env file or configure them in your hosting platform:
For GitHub Pages deployment, use bun deploy which builds and generates the GitHub Actions workflow automatically. Environment variables can be configured as repository secrets in your GitHub repository settings.
Last updated Jul 4, 2026