Custom robots.txt
You can now serve your own robots.txt at the root of your documentation site by pointing agents.robots-txt at a file in your repo. Use this to opt in or out of specific AI crawlers like GPTBot or ClaudeBot, gate sensitive sections from indexing, or signal training and search preferences with the Cloudflare Content Signals Policy. Your file is served verbatim at /robots.txt, and Fern appends a managed block disallowing internal API routes after your content.
Multi-source docs
Multi-source docs lets each team publish independently to a shared custom domain — for example, docs.nvidia.com spans sub-paths like /nvcf, /brev, and /aiperf, each owned by a different product team and repository.
Set multi-source: true on the instance and reference a global theme for consistent branding across repositories.
API catalog discovery
AI agents, MCP clients, and API catalog crawlers can now discover your APIs automatically. Every Fern Docs site exposes a standards-based (RFC 9727) /.well-known/api-catalog endpoint generated from your visible API Reference navigation.
Custom URL actions on the Prompt component
You can now point <Prompt> actions at any AI tool, not just Cursor, Claude, and ChatGPT. Send readers to Perplexity, your own internal AI assistant, or any other URL.
Generate a TypeScript SDK
Generate a TypeScript SDK from my OpenAPI spec. Follow the [TypeScript SDK quickstart](https://buildwithfern.com/learn/sdks/generators/typescript/quickstart.md).Prompt component
The <Prompt> component displays an AI prompt card with a title, icon, copy button, and optional “Open in” action buttons. Add it to any page so readers can copy instructions or open them directly in Cursor, Claude, or ChatGPT.
Use it in tutorials, quickstarts, migration guides, or any page where you want readers to hand off a task to an AI assistant — for example, scaffolding a project, generating an SDK, or applying a code change.
Create a docs site
You are a **docs setup assistant**. Help the user create and publish a new docs site.
Follow the [Quickstart guide](https://buildwithfern.com/learn/docs/getting-started/quickstart) step by step.Global themes
Define your documentation branding in a single control repository and share it across multiple sites. Use the fern docs theme CLI commands to export, upload, and manage themes, then reference a theme by name in any child repository’s docs.yml with the global-theme property.
“Connect to Claude Code” page action
Fern Docs sites with Ask Fern 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.
The action is enabled by default and can be toggled off with page-actions.options.claude-code: false in docs.yml.
Clean up GitHub Actions preview deployments on merge
The GitHub Actions preview workflow now has an optional companion cleanup-preview.yml workflow that deletes a pull request’s preview deployment once the PR merges, so stale previews don’t linger.
To adopt this workflow, add .github/workflows/cleanup-preview.yml alongside your existing preview workflow.
Clean up GitLab preview deployments on merge
The updated GitLab CI/CD pipeline now includes a cleanup_preview stage that deletes a merge request’s preview deployment once the MR merges into the default branch, so stale previews don’t linger.
To adopt this workflow, replace your .gitlab-ci.yml file with the updated version.
Mobile table of contents bar
Pages using the guide and overview layouts can now display a sticky table of contents bar below the header on mobile and tablet viewports. The bar shows a scroll progress indicator and the current heading, and expands to the full table of contents when tapped.
Enable it by adding mobile-toc: true under layout in docs.yml:
AI search model update
Ask Fern now uses Claude 4.6 Sonnet and Claude 4.5 Haiku.
Link to API Reference sections with api: syntax
The api: link syntax now supports linking to the root of an API Reference section. Use api:apiName to create a link that resolves to the landing page of a specific API Reference at build time. This is useful when your project has multiple APIs.