Enable search widget on Learn tab (#2247)

* Enable search widget on Learn tab

* allow courses in sitemap + search multiple sections

---------

Co-authored-by: generall <andrey@vasnetsov.com>
This commit is contained in:
Abdon Pijpelink
2026-04-01 08:48:54 +02:00
committed by GitHub
co-authored by generall
parent c46bade691
commit 4ce2e09c2b
2 changed files with 5 additions and 9 deletions
@@ -23,4 +23,8 @@ import 'qdrant-page-search/dist/js/search.min.js';
if (/course/.test(window.location?.pathname)) {
window.initQdrantSearch({ searchApiUrl: 'https://search.qdrant.tech/api/search', section: 'course', partition: partition });
}
if (/learn/.test(window.location?.pathname)) {
window.initQdrantSearch({ searchApiUrl: 'https://search.qdrant.tech/api/search', section: 'articles,course,documentation' });
}
})();