diff options
Diffstat (limited to 'site/_includes/algolia.html')
-rw-r--r-- | site/_includes/algolia.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/site/_includes/algolia.html b/site/_includes/algolia.html new file mode 100644 index 0000000..3008a1c --- /dev/null +++ b/site/_includes/algolia.html @@ -0,0 +1,20 @@ +{% if page.version %} + {% assign version = page.version %} +{% else %} + {% assign version = site.latest_docs_version %} +{% endif %} + +{% if page.language %} + {% assign language = page.language %} +{% else %} + {% assign language = site.language %} +{% endif %} + +<script type="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.js"></script> +<script type="text/javascript"> + docsearch({ + apiKey: '{{ site.algolia.apikey }}', + indexName: '{{ site.algolia.index }}', + inputSelector: '#header-search-field', + }); +</script> |