From 58cad0c5f97795e3d159bc8425d39a0837d014bb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 17 Jan 2025 11:05:09 -0800 Subject: [PATCH] Use a better name for search attribute (#1547) (#1548) (cherry picked from commit ad42acd77c2fcc6d5f000c86a9f85ac52bc90ac5) Co-authored-by: Charlotte Wickham --- tools/algolia-add-custom-attribute.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/algolia-add-custom-attribute.ts b/tools/algolia-add-custom-attribute.ts index d516338bb..85791e85a 100644 --- a/tools/algolia-add-custom-attribute.ts +++ b/tools/algolia-add-custom-attribute.ts @@ -1,7 +1,7 @@ const j = JSON.parse(Deno.readTextFileSync("_site/search.json")); j.forEach((entry) => { const crumb = entry.crumbs || []; - entry.weight = crumb[0] === "Guide" ? 1 : 0; + entry.guide = crumb[0] === "Guide" ? 1 : 0; }) Deno.writeTextFileSync("_site/search.json", JSON.stringify(j, null, 2)); \ No newline at end of file