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: