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:
authorSarah German <sgerman@gitlab.com>2022-06-10 18:18:45 +0300
committerSarah German <sgerman@gitlab.com>2022-06-10 18:18:45 +0300
commitae68e68dcd81cab61643b20dcf7ad91d4b2ce2e8 (patch)
tree198dfc19c6b166d858dca11e882fb73e5cf5a0fa
parent50fd8a46c9c29695f09597a0580ef69d5ed7f040 (diff)
Backport version facets for Algolia search to 13.1213.12-search-facets
-rw-r--r--content/assets/javascripts/docsearch.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/content/assets/javascripts/docsearch.js b/content/assets/javascripts/docsearch.js
index ac788034..1323095f 100644
--- a/content/assets/javascripts/docsearch.js
+++ b/content/assets/javascripts/docsearch.js
@@ -10,7 +10,8 @@ var search = docsearch({
// 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
+ 'hitsPerPage': 10,
+ 'facetFilters': ["version:13.12"],
},
debug: false, // Set debug to true if you want to inspect the dropdown
autocompleteOptions: {