blob: 3b449fe3ab49ddf43824dac385fc8f069b598364 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
<!-- 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">
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 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
}
});
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>
|