Skip to content

Commit c77f50c

Browse files
authored
Update custom example in contextual menu page (#965)
* update custom example * change object to string
1 parent 0c5187c commit c77f50c

File tree

1 file changed

+15
-21
lines changed

1 file changed

+15
-21
lines changed

ai/contextual-menu.mdx

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -84,28 +84,22 @@ Create custom options in the contextual menu by adding an object to the `options
8484

8585
Example custom option:
8686

87-
```json {8-21}
88-
"contextual": {
89-
"options": [
90-
"copy",
91-
"view",
92-
"chatgpt",
93-
"claude",
94-
"perplexity",
95-
{
96-
"title": "Ask Gemini",
97-
"description": "Ask Google Gemini about the current page",
98-
"icon": "sparkle",
99-
"href": {
100-
"base": "https://gemini.google.com/app",
101-
"query": [
102-
{
103-
"key": "q",
104-
"value": "Ask question about https://mintlify.com/docs$path.md"
105-
}
87+
```json {9-14} wrap
88+
{
89+
"contextual": {
90+
"options": [
91+
"copy",
92+
"view",
93+
"chatgpt",
94+
"claude",
95+
"perplexity",
96+
{
97+
"title": "Request a feature",
98+
"description": "Join the discussion on GitHub to request a new feature",
99+
"icon": "plus",
100+
"href": "https://github.com/orgs/mintlify/discussions/categories/feature-requests"
101+
}
106102
]
107-
}
108103
}
109-
]
110104
}
111105
```

0 commit comments

Comments
 (0)