From 1c713d5b023cfbf4916cb077a883b8083d561c19 Mon Sep 17 00:00:00 2001 From: Kamil Majkrzak Date: Thu, 15 Feb 2024 17:19:43 +0100 Subject: [PATCH 1/2] Resolving site_features issue --- public/docs/js/search.js | 2 +- src/themes/accelerator/components/Search.astro | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/public/docs/js/search.js b/public/docs/js/search.js index 2fe8eb982f..80154bbe5f 100644 --- a/public/docs/js/search.js +++ b/public/docs/js/search.js @@ -6,7 +6,7 @@ import { contains, sanitise, explode, highlight } from "./modules/string.js"; import { stemmer } from "./modules/stemmer.js"; // @ts-ignore -const f = site_features ?? {}; +const f = window.site_features ?? {}; /** * diff --git a/src/themes/accelerator/components/Search.astro b/src/themes/accelerator/components/Search.astro index 49eafd8562..6dbaa33510 100644 --- a/src/themes/accelerator/components/Search.astro +++ b/src/themes/accelerator/components/Search.astro @@ -59,7 +59,11 @@ const searchUrl = autocomplete="off" data-site-search-query /> -