message: docs: unrelated but cleanup algolia search code
diff: @@ -157,28 +157,10 @@ function AlgoliaSearch() {
  }}
  hitComponent={Hit}
  transformItems={(items) => {
  - return items
  - .filter((item) => {
  - console.log(item._snippetResult?.hierarchy?.lvl1.value)
  - const lvl1 = item.hierarchy.lvl1
  - return (
  - item._snippetResult != null &&
  - !item._snippetResult.content?.value.includes(".css") &&
  - !item._snippetResult.hierarchy?.lvl1.value.includes(".css")
  - )
  - })
  - .map((item) => {
  + return items.map((item) => {
  const a = document.createElement("a")
  a.href = item.url
  const hash = a.hash === "#content-wrapper" ? "" : a.hash
  -
  - // patch snippet result by removing `.css-` values
  - if (item._snippetResult?.hierarchy?.lvl1?.value) {
  - item._snippetResult.hierarchy.lvl1.value = santize(
  - item._snippetResult.hierarchy.lvl1.value,
  - )
  - }
  -
  item.url = `${a.pathname}${hash}`
  return item
  })
  