Skip to content

Commit 98a02e9

Browse files
committed
instead of opening a new page, open search in the current page
1 parent 05deb41 commit 98a02e9

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

support.mdx

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,16 @@ icon: "circle-help"
44
description: "We're here to help you get the most out of Mintlify"
55
---
66

7-
<Card title="Ask our docs" icon="message-circle-question" href="https://mintlify.com/docs/quickstart?share_chat=3524d1e4-c8bb-4367-87f8-4eb8be8edf4b">
8-
Ask our AI chat assistant that's been trained on our documentation.
9-
</Card>
7+
export function openSearch(e) {
8+
e.preventDefault();
9+
document.getElementById('search-bar-entry').click();
10+
}
11+
12+
<div onClick={openSearch} style={{ cursor: 'pointer' }}>
13+
<Card title="Ask our docs" icon="message-circle-question" href="https://mintlify.com/docs" arrow={true}>
14+
Ask our AI chat assistant that's been trained on our documentation.
15+
</Card>
16+
</div>
1017

1118
<CardGroup cols={2}>
1219
<Card title="Dashboard widget" icon="messages-square" href="https://dashboard.mintlify.com/">

0 commit comments

Comments
 (0)