Skip to content

Commit 1fa345e

Browse files
committed
add docs for contextual menu
1 parent 0a17bd8 commit 1fa345e

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

docs.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,7 @@
141141
{
142142
"group": "Model Context Protocol",
143143
"icon": "server",
144-
"pages": [
145-
"advanced/mcp/quickstart",
146-
"advanced/mcp/generate"
147-
]
144+
"pages": ["advanced/mcp/quickstart", "advanced/mcp/generate"]
148145
},
149146
{
150147
"group": "REST API",
@@ -373,5 +370,8 @@
373370
"koala": {
374371
"publicApiKey": "pk_76a6caa274e800f3ceff0b2bc6b9b9d82ab8"
375372
}
373+
},
374+
"contextual": {
375+
"options": ["copy", "view", "chatgpt", "claude"]
376376
}
377377
}

images/page-context-menu.png

409 KB
Loading

settings/global.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,20 @@ Every documentation site requires a `docs.json` file that contains the core conf
446446
</Expandable>
447447
</ResponseField>
448448

449+
<ResponseField name="contextual" type="object">
450+
<Expandable title="Contextual">
451+
<ResponseField name="options" type="('copy' | 'view' | 'chatgpt' | 'claude')[]" required>
452+
The options to be displayed in the contextual menu. The first option is the default option.
453+
- `copy`: Copy the current page as markdown to the clipboard
454+
- `view`: View the current page as markdown in a new tab
455+
- `chatgpt`: Feed the current page to ChatGPT
456+
- `claude`: Feed the current page to Claude
457+
458+
<img src="/images/page-context-menu.png" alt="Contextual Menu" className="rounded-xl" />
459+
</ResponseField>
460+
</Expandable>
461+
</ResponseField>
462+
449463
### API Configurations
450464

451465
<ResponseField name="api" type="object">

0 commit comments

Comments
 (0)