Solitude Docs

DocSearch

Configure an existing Algolia DocSearch index in Solitude 4.

DocSearch requires an approved or self-hosted crawler and a populated index. Configure only the public search credentials in _config.solitude.yml:

search:
  enable: true
  type: docsearch
  docsearch:
    appId: your-app-id
    apiKey: your-search-only-key
    indexName: your-index-name
    option:
      insights: true

Solitude passes option to the DocSearch client. Keep crawler credentials outside the generated site, and verify the DocSearch stylesheet, script, modal, and result URLs after deployment.