From 5626dc07d6c025b65b4b102a58e52d73fbb68c01 Mon Sep 17 00:00:00 2001 From: Nivedit Jain Date: Thu, 16 Jul 2026 14:28:17 +0000 Subject: [PATCH] [failproofai-540] docs: add contextual menu (copy-to-LLM + ask AI) to docs pages (#540) Enable Mintlify's `contextual` menu in docs/docs.json so every docs page (all tabs, all 15 locales) offers: copy/view as Markdown, hand-off to ChatGPT / Claude / Perplexity, open in MCP / Cursor / VS Code, and an "Ask a question" AI-assistant option. It's a single global setting, so no per-page edits are needed. The `assistant` option additionally requires enabling the assistant in the Mintlify dashboard. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_013hyh7mTnLAwixTrAeHx4gH --- CHANGELOG.md | 1 + docs/docs.json | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 85be096b..4cf5749f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,7 @@ - Backfill **OpenClaw** into the user-facing supported-CLI docs (README + `configuration` / `getting-started` / `introduction`) — it shipped as a wired integration but was never added to those lists. (#508) - Add all 12 supported-CLI logos to the README (added openclaw/factory/devin/antigravity/goose with light+dark variants), link each logo to its official site, and lay them out as 2 rows of 6. (#508) - Document that **VS Code Copilot agent mode** (Preview) is already covered by the `copilot` / `claude` integrations: its agent hooks load from `.github/hooks/*.json`, `~/.copilot/hooks/*.json`, and `~/.claude/settings.json` — the exact paths failproofai already writes — so `--cli copilot` (or `--cli claude`) enforces in VS Code agent-mode sessions with no dedicated `vscode` id. (#508) +- Add a per-page contextual menu to the docs site (`contextual` in `docs.json`): readers can copy the page as Markdown, view the raw Markdown, hand the page off to ChatGPT / Claude / Perplexity, open it in an MCP client / Cursor / VS Code, or ask the AI assistant a question about it. The `assistant` ("Ask a question") option additionally requires enabling the assistant in the Mintlify dashboard. (#540) ## 0.0.13 — 2026-07-14 diff --git a/docs/docs.json b/docs/docs.json index 4549a06b..5fb3e5b4 100644 --- a/docs/docs.json +++ b/docs/docs.json @@ -12,6 +12,19 @@ "dark": "/logo/Failproof_AI_logo.png" }, "favicon": "/favicon.ico", + "contextual": { + "options": [ + "copy", + "view", + "assistant", + "chatgpt", + "claude", + "perplexity", + "mcp", + "cursor", + "vscode" + ] + }, "navigation": { "languages": [ {