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:
authorAchilleas Pipinellis <axil@gitlab.com>2022-06-12 16:53:23 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2022-06-12 16:53:23 +0300
commit9b6a54d0951b5a0a79bbbcb990c3a152c90780eb (patch)
tree198dfc19c6b166d858dca11e882fb73e5cf5a0fa
parent50fd8a46c9c29695f09597a0580ef69d5ed7f040 (diff)
parentae68e68dcd81cab61643b20dcf7ad91d4b2ce2e8 (diff)
Merge branch '13.12-search-facets' into '13.12'
Backport version facets for Algolia search to 13.12 See merge request gitlab-org/gitlab-docs!2793
-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: {