From 20db3c965d3d27860bfbbb48f6be540b4badbc14 Mon Sep 17 00:00:00 2001 From: Jarek Ostrowski Date: Tue, 15 May 2018 12:48:22 -0400 Subject: Fix mobile search results not showing up --- layouts/docsearch.html | 15 +++++++++++++++ layouts/header.html | 10 ++++++---- 2 files changed, 21 insertions(+), 4 deletions(-) (limited to 'layouts') 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 + } +}); diff --git a/layouts/header.html b/layouts/header.html index af6252d8..57d45c51 100644 --- a/layouts/header.html +++ b/layouts/header.html @@ -17,10 +17,12 @@