From d5458a32f0fd7d6b8a3fef008828e759d884abce Mon Sep 17 00:00:00 2001 From: "mintlify-development[bot]" <109878554+mintlify-development[bot]@users.noreply.github.com> Date: Wed, 11 Mar 2026 22:25:32 +0000 Subject: [PATCH] Add display option for contextual menu Generated-By: mintlify-agent --- ai/contextual-menu.mdx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ai/contextual-menu.mdx b/ai/contextual-menu.mdx index d956788e3..ee0561f0b 100644 --- a/ai/contextual-menu.mdx +++ b/ai/contextual-menu.mdx @@ -58,6 +58,24 @@ Add the `contextual` field to your `docs.json` file and specify which options yo } ``` +## Display location + +By default, the contextual menu appears in the page header. You can configure it to display in the table of contents sidebar instead using the `display` option. + +```json +{ + "contextual": { + "options": ["copy", "view", "chatgpt", "claude"], + "display": "toc" + } +} +``` + +| Value | Description | +|:------|:------------| +| `header` | Displays options in the top-of-page context menu (default) | +| `toc` | Displays options in the table of contents sidebar | + ## Adding custom options Create custom options in the contextual menu by adding an object to the `options` array. Each custom option requires these properties: