davsclaus commented on code in PR #1457:
URL: https://github.com/apache/camel-website/pull/1457#discussion_r2658773615
##########
antora-ui-camel/src/js/vendor/algoliasearch.bundle.js:
##########
@@ -46,11 +64,14 @@
cancel.style.display = 'block'
index
.search(search.value, {
- hitsPerPage: 5,
+ hitsPerPage: 10,
})
.then((results) => {
- const hits = results.hits
- const data = hits.reduce((data, hit) => {
+ // Filter out sub-project results to focus on camel-core
documentation
+ const filteredHits = results.hits.filter(function (hit) {
+ return !isSubProjectUrl(hit.url)
+ }).slice(0, 5)
Review Comment:
this slice(0,5) seems not correct
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]