diff options
author | Jacques Erasmus <jerasmus@gitlab.com> | 2020-10-23 15:40:08 +0300 |
---|---|---|
committer | Jacques Erasmus <jerasmus@gitlab.com> | 2020-10-23 15:40:08 +0300 |
commit | ea37f4856ea7af2c5f888b3bea3a5487589d49a9 (patch) | |
tree | 2d6ad8c4d99e7e29f0f9e1b926a0fcabd631f72d /layouts/docsearch.html | |
parent | fdd1fc948cd47c6b130e78e00b6b9e8f4e1b39eb (diff) |
Revert "Merge branch 'csp-headers' into 'master'"
This reverts merge request !1217
Diffstat (limited to 'layouts/docsearch.html')
-rw-r--r-- | layouts/docsearch.html | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/layouts/docsearch.html b/layouts/docsearch.html index 21037f14..88dd752e 100644 --- a/layouts/docsearch.html +++ b/layouts/docsearch.html @@ -1,3 +1,19 @@ <!-- Algolia docsearch https://community.algolia.com/docsearch/ --> <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script> -<script src="<%= @items['/assets/javascripts/docsearch.*'].path %>"></script> +<script type="text/javascript"> +var search = docsearch({ + apiKey: 'ce1690e1421303458a1fcbea0cc4a927', + indexName: 'gitlab', + inputSelector: '.docsearch', + algoliaOptions: { + // Filter by tags as described in https://github.com/algolia/docsearch-configs/blob/master/configs/gitlab.json + 'filters': "tags:gitlab<score=4> OR tags:omnibus<score=3> OR tags:runner<score=2> OR tags:charts<score=1>", + // 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> |