Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions fern/products/docs/pages/changelog/2026-04-24.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
tags: ["ai"]
---

## "Connect to Claude Code" page action
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [vale] reported by reviewdog 🐶
[FernStyles.Headings] '"Connect to Claude Code" page action' should use sentence-style capitalization.


Docs sites with Ask AI enabled display a "Connect to Claude Code" button alongside existing page actions. Clicking it copies a `claude mcp add` command to the clipboard so users can register the docs site's MCP server with Claude Code.

The action is enabled by default and can be toggled off with `page-actions.options.claude-code: false` in `docs.yml`.

<Button intent="none" outlined rightIcon="arrow-right" href="/learn/docs/configuration/site-level-settings#page-actions-configuration">Read the docs</Button>
2 changes: 1 addition & 1 deletion fern/products/docs/pages/navigation/frontmatter.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ hide-feedback: true

## Page actions
<ParamField path="hide-page-actions" type="boolean" required={false} default={false}>
Controls the conditional rendering of page action buttons (Copy Page, View as Markdown, Ask AI). Set to true to turn off page actions for an individual page.
Controls the conditional rendering of page action buttons (Copy Page, View as Markdown, Ask AI, ChatGPT, Claude, Claude Code, Cursor). Set to true to turn off page actions for an individual page.

Alternatively, configure page actions [for your entire site](/learn/docs/configuration/site-level-settings#page-actions-configuration) in your `docs.yml` file.
</ParamField>
Expand Down
14 changes: 9 additions & 5 deletions fern/products/docs/pages/navigation/site-level-settings.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ settings:

## Page actions configuration

Configure the page action buttons that appear throughout your documentation. By default, **Copy Page** (`copy-page`), **View as Markdown** (`view-as-markdown`), **Ask AI** (`ask-ai`), **ChatGPT** (`chatgpt`), **Claude** (`claude`), and **Cursor** (`cursor`) are enabled.
Configure the page action buttons that appear throughout your documentation. By default, **Copy Page** (`copy-page`), **View as Markdown** (`view-as-markdown`), **Ask AI** (`ask-ai`), **ChatGPT** (`chatgpt`), **Claude** (`claude`), **Claude Code** (`claude-code`), and **Cursor** (`cursor`) are enabled.

To hide page actions on an individual page, use the [`hide-page-actions` frontmatter property](/learn/docs/configuration/page-level-settings#page-actions).

Expand All @@ -796,7 +796,7 @@ page-actions:
```

<ParamField path="page-actions.default" type="string" required={false} toc={true}>
The default page action to display. Options: `copy-page`, `view-as-markdown`, `ask-ai`, `chatgpt`, `claude`, `cursor`, `vscode`.
The default page action to display. Options: `copy-page`, `view-as-markdown`, `ask-ai`, `chatgpt`, `claude`, `claude-code`, `cursor`, `vscode`.
</ParamField>

<ParamField path="page-actions.options.copy-page" type="boolean" required={false} default="true" toc={true}>
Expand All @@ -812,15 +812,19 @@ page-actions:
</ParamField>

<ParamField path="page-actions.options.chatgpt" type="boolean" required={false} default="true" toc={true}>
When enabled, displays an "Open in ChatGPT" button that allows users to send the page content to ChatGPT for further exploration and Q&A.
Controls the "Open in ChatGPT" button, which sends the page content to ChatGPT for further exploration and Q&A. Set to `false` to hide it.
</ParamField>

<ParamField path="page-actions.options.claude" type="boolean" required={false} default="true" toc={true}>
When enabled, displays an "Open in Claude" button that allows users to send the page content to Claude for further exploration and Q&A.
Controls the "Open in Claude" button, which sends the page content to Claude for further exploration and Q&A. Set to `false` to hide it.
</ParamField>

<ParamField path="page-actions.options.claude-code" type="boolean" required={false} default="true" toc={true}>
Controls the "Connect to Claude Code" button, which copies a `claude mcp add` command to the clipboard so users can register the docs site's MCP server with Claude Code. Requires [Ask AI](/learn/docs/ai-features/ask-fern/overview) to be enabled. Set to `false` to hide it.
</ParamField>

<ParamField path="page-actions.options.cursor" type="boolean" required={false} default="true" toc={true}>
When enabled, displays an "Open in Cursor" button that allows users to open the page content in Cursor IDE with AI-powered code assistance. Requires [Ask AI](/learn/docs/ai-features/ask-fern/overview) to be enabled.
Controls the "Connect to Cursor" button, which installs the docs site's MCP server in Cursor via a deeplink. Requires [Ask AI](/learn/docs/ai-features/ask-fern/overview) to be enabled. Set to `false` to hide it.
</ParamField>

<ParamField path="page-actions.options.vscode" type="boolean" required={false} default="false" toc={true}>
Expand Down
Loading