Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarek Ostrowski <jarek.j.ostrowski@gmail.com>2018-05-15 19:48:22 +0300
committerJarek Ostrowski <jarek.j.ostrowski@gmail.com>2018-05-15 19:48:22 +0300
commit20db3c965d3d27860bfbbb48f6be540b4badbc14 (patch)
tree3a1209c149c6e66108ff71b94ac266fbe56788d6 /layouts/docsearch.html
parentad66411498c62e85d41f5ccb98433b4e7f093b45 (diff)
Fix mobile search results not showing up
Diffstat (limited to 'layouts/docsearch.html')
-rw-r--r--layouts/docsearch.html15
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>