From a121aaae814eb2cb21cf3d9d9467250b60cc248e Mon Sep 17 00:00:00 2001 From: ssarahgm Date: Fri, 24 May 2024 16:01:33 +0200 Subject: [PATCH] added some keywords --- docs/app/_components/SiteMenu.tsx | 6 ++++-- docs/lib/commandlist.ts | 4 ++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/app/_components/SiteMenu.tsx b/docs/app/_components/SiteMenu.tsx index b080f9b2a4..0fc4bf2b38 100644 --- a/docs/app/_components/SiteMenu.tsx +++ b/docs/app/_components/SiteMenu.tsx @@ -105,8 +105,9 @@ export const SiteMenu = () => { { - if (value.toLowerCase().includes(query)) return 1; + filter={(value, query, keywords) => { + const searchValue = `${value} ${keywords}`; + if (searchValue.toLowerCase().includes(query)) return 1; return 0; }} > @@ -180,6 +181,7 @@ export const SiteMenu = () => { key={page.href} value={page.href} onSelect={() => window.open(page.href, '_blank')} + keywords={page.keywords} > {page.name} diff --git a/docs/lib/commandlist.ts b/docs/lib/commandlist.ts index 1c2a8e8f93..87eeb56286 100644 --- a/docs/lib/commandlist.ts +++ b/docs/lib/commandlist.ts @@ -5,6 +5,7 @@ export const links = [ { name: 'Slack', href: 'https://reservix.slack.com/archives/C02727BNZ3J', + keywords: ['help'], }, { name: 'Jira', @@ -13,10 +14,12 @@ export const links = [ { name: 'Figma Core Kit', href: 'https://www.figma.com/design/NbTUW9zk15nN8idlfsEttS/%F0%9F%8C%BC-Marigold-CORE?t=VfTLYo5foFEjRxFY-0', + keywords: ['design'], }, { name: 'Support Center', href: 'https://reservix.atlassian.net/servicedesk/customer/portal/77', + keywords: ['help'], }, { name: 'Storybook', @@ -25,6 +28,7 @@ export const links = [ { name: 'Starter', href: 'https://stackblitz.com/edit/github-v1evcv?file=src%2FApp.tsx', + keywords: ['playground'], }, ], },