diff options
Diffstat (limited to 'layouts/docsearch.html')
-rw-r--r-- | layouts/docsearch.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/layouts/docsearch.html b/layouts/docsearch.html index 72da891d..3b449fe3 100644 --- a/layouts/docsearch.html +++ b/layouts/docsearch.html @@ -16,4 +16,19 @@ var search = docsearch({ 'autoselect': false } }); +var mobileSearch = docsearch({ + apiKey: 'ce1690e1421303458a1fcbea0cc4a927', + indexName: 'gitlab', + inputSelector: '.docsearch-mobile', + algoliaOptions: { + // Filter by tags as described in https://github.com/algolia/docsearch-configs/blob/master/configs/gitlab.json + 'filters': "tags:gitlab OR tags:omnibus OR tags:runner", + // Number of results shown in the search dropdown + 'hitsPerPage': 10 + }, + debug: false, // Set debug to true if you want to inspect the dropdown + autocompleteOptions: { + 'autoselect': false + } +}); </script> |