Ajouter Algolia DocSearch à un site Cecil.
Installation
composer require cecil/theme-docsearch
Configuration
theme:
- docsearch
docsearch:
appId: <YOUR_APP_ID>
apiKey: <YOUR_SEARCH_API_KEY>
indexName: <YOUR_INDEX_NAME>
Templates
{# dans <head> #}
{{ include('partials/docsearch/head.html.twig') }}
{# là où le bouton de recherche doit être affiché #}
{{ include('partials/docsearch.html.twig') }}