mirror of
https://github.com/minio/docs.git
synced 2025-07-27 08:41:57 +03:00
Minor fix to filter results based on platform
This commit is contained in:
committed by
Harshavardhana
parent
b72a4667bd
commit
0b9a9effb2
@ -302,6 +302,7 @@ window.addEventListener("DOMContentLoaded", (event) => {
|
||||
// --------------------------------------------------
|
||||
(function () {
|
||||
const docSearchEl = document.getElementById("docsearch");
|
||||
const platform = document.head.querySelector('meta[name="docsearch:platform"]').content
|
||||
|
||||
if(docSearchEl) {
|
||||
// Init Docsearch
|
||||
@ -311,6 +312,9 @@ window.addEventListener("DOMContentLoaded", (event) => {
|
||||
indexName: 'minio',
|
||||
apiKey: '6bc246d81fd3b79f51cf88f0b2481bac',
|
||||
placeholder: 'Search Documentation',
|
||||
searchParameters: {
|
||||
facetFilters: ['platform:' + platform]
|
||||
}
|
||||
});
|
||||
|
||||
// Trigger Docsearch modal on custom button clicks
|
||||
|
Reference in New Issue
Block a user