1
0
mirror of https://github.com/minio/docs.git synced 2025-07-30 07:03:26 +03:00

Add filter to exclude non-docs domains from search results (#1277)

As part of [min.io issue
#2136](https://github.com/miniohq/min.io/issues/2136), the crawler now
includes results from domains such as blog.min.io and resource.min.io.
By default, the search returns results from all these sources. This
update adds a filter to exclude results from domains other than
docs.min.io.

Also, added some minor CSS changes to fix the gray color palette
variables.
This commit is contained in:
Rushan
2024-07-24 02:04:05 +05:30
committed by GitHub
parent 3e5df481f0
commit 2f0fb0aa3d
2 changed files with 9 additions and 5 deletions

View File

@ -104,6 +104,7 @@ window.addEventListener("DOMContentLoaded", () => {
minio: {
refinementList: {
platform: [activePlatform],
site: "docs"
},
},
},
@ -286,6 +287,9 @@ window.addEventListener("DOMContentLoaded", () => {
},
},
}),
instantsearch.widgets.configure({
filters: `site:docs`,
})
]);
// Function to clear search field and filters