Skip to content

Commit

Permalink
Use a better name for search attribute (#1547) (#1548)
Browse files Browse the repository at this point in the history
(cherry picked from commit ad42acd)

Co-authored-by: Charlotte Wickham <charlotte.wickham@posit.co>
  • Loading branch information
github-actions[bot] and cwickham authored Jan 17, 2025
1 parent eda60a5 commit 58cad0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/algolia-add-custom-attribute.ts
Original file line number Diff line number Diff line change
@@ -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));

0 comments on commit 58cad0c

Please sign in to comment.