diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2020-10-08 09:35:09 +0300 |
---|---|---|
committer | dcouture <dcouture@gitlab.com> | 2020-10-22 17:06:33 +0300 |
commit | f494d1179980f1c116929f7e1c7196a99b4fcc9e (patch) | |
tree | 0fb5e6e52168fff6abd439fe9a2c231abc29ecd8 /layouts/docsearch.html | |
parent | c9c969789347f37ded5a9c14bbc794820ca455d1 (diff) |
Add CSP headers
Diffstat (limited to 'layouts/docsearch.html')
-rw-r--r-- | layouts/docsearch.html | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/layouts/docsearch.html b/layouts/docsearch.html index 88dd752e..21037f14 100644 --- a/layouts/docsearch.html +++ b/layouts/docsearch.html @@ -1,19 +1,3 @@ <!-- 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 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> +<script src="<%= @items['/assets/javascripts/docsearch.*'].path %>"></script> |