Skip to content

Commit 9f84fe0

Browse files
Merge latest main (includes PR #5133)
1 parent 58c3d73 commit 9f84fe0

3 files changed

Lines changed: 22 additions & 7 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
tags: ["ai-features"]
3+
---
4+
5+
## "Connect to Claude Code" page action
6+
7+
Fern Docs sites with [Ask Fern](/learn/docs/ai-features/ask-fern/overview) enabled now display a "Connect to Claude Code" button alongside existing page actions. Clicking the button copies a `claude mcp add` command. Readers can paste it into their terminal to register your site's MCP server with Claude Code.
8+
9+
The action is enabled by default and can be toggled off with `page-actions.options.claude-code: false` in `docs.yml`.
10+
11+
<Button intent="none" outlined rightIcon="arrow-right" href="/learn/docs/configuration/site-level-settings#page-actions-configuration">Read the docs</Button>

fern/products/docs/pages/navigation/frontmatter.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ hide-feedback: true
285285

286286
## Page actions
287287
<ParamField path="hide-page-actions" type="boolean" required={false} default={false}>
288-
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.
288+
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.
289289

290290
Alternatively, configure page actions [for your entire site](/learn/docs/configuration/site-level-settings#page-actions-configuration) in your `docs.yml` file.
291291
</ParamField>

fern/products/docs/pages/navigation/site-level-settings.mdx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ settings:
782782

783783
## Page actions configuration
784784

785-
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.
785+
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.
786786

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

@@ -796,7 +796,7 @@ page-actions:
796796
```
797797

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

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

814814
<ParamField path="page-actions.options.chatgpt" type="boolean" required={false} default="true" toc={true}>
815-
When enabled, displays an "Open in ChatGPT" button that allows users to send the page content to ChatGPT for further exploration and Q&A.
815+
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.
816816
</ParamField>
817817

818818
<ParamField path="page-actions.options.claude" type="boolean" required={false} default="true" toc={true}>
819-
When enabled, displays an "Open in Claude" button that allows users to send the page content to Claude for further exploration and Q&A.
819+
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.
820+
</ParamField>
821+
822+
<ParamField path="page-actions.options.claude-code" type="boolean" required={false} default="true" toc={true}>
823+
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. Displays by default when [Ask Fern](/learn/docs/ai-features/ask-fern/overview) is enabled. Set to `false` to hide it.
820824
</ParamField>
821825

822826
<ParamField path="page-actions.options.cursor" type="boolean" required={false} default="true" toc={true}>
823-
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.
827+
Controls the "Connect to Cursor" button, which installs the docs site's MCP server in Cursor via a deeplink. Displays by default with [Ask Fern](/learn/docs/ai-features/ask-fern/overview) is enabled. Set to `false` to hide it.
824828
</ParamField>
825829

826830
<ParamField path="page-actions.options.vscode" type="boolean" required={false} default="false" toc={true}>
827-
When enabled, displays an "Open in VS Code" button that allows users to open the page content in Visual Studio Code for editing and development. Requires [Ask AI](/learn/docs/ai-features/ask-fern/overview) to be enabled.
831+
When enabled, displays an "Open in VS Code" button that allows users to open the page content in Visual Studio Code for editing and development. Requires [Ask Fern](/learn/docs/ai-features/ask-fern/overview) to be enabled.
828832
</ParamField>
829833

830834
### Custom page actions

0 commit comments

Comments
 (0)