diff options
author | Achilleas Pipinellis <axilleas@axilleas.me> | 2017-02-20 20:58:03 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axilleas@axilleas.me> | 2017-02-20 20:58:03 +0300 |
commit | 24b57200c8cd633183585c8a75238c858914150f (patch) | |
tree | b7639bfb2b172573e789c5cf4c3a1eb14c282f03 /layouts/docsearch.html | |
parent | ee0406fb066846bb251211ac34cbb3c8fe56a79d (diff) |
Increase search results to 10
Diffstat (limited to 'layouts/docsearch.html')
-rw-r--r-- | layouts/docsearch.html | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/layouts/docsearch.html b/layouts/docsearch.html index 1c931d18..d34e2b98 100644 --- a/layouts/docsearch.html +++ b/layouts/docsearch.html @@ -1,10 +1,16 @@ <!-- Algolia docsearch https://community.algolia.com/docsearch/ --> <script type="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.js"></script> -<script type="text/javascript"> docsearch({ +<script type="text/javascript"> +docsearch({ apiKey: 'a28a7d97a1c7b6a4770b31ce4e48415e', indexName: 'gitlab', inputSelector: '.docsearch', -algoliaOptions: { 'filters': "tags:ce OR tags:ee OR tags:omnibus OR tags:runner" }, +algoliaOptions: { + // Filter by tags as described in https://github.com/algolia/docsearch-configs/blob/master/configs/gitlab.json + 'filters': "tags:ce OR tags:ee 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 }); </script> |