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.
AsyncAPI spec endpoints
Fern docs sites serve your raw AsyncAPI 2.6.0 specification at /asyncapi.json and /asyncapi.yaml for sites with WebSocket channels. Download it for client generation, contract testing, or importing into AsyncAPI-compatible tools. The spec is also linked from your site’s llms.txt, so AI coding assistants can discover and use it automatically.
Custom llms.txt and llms-full.txt files
Provide your own llms.txt and llms-full.txt files instead of using the auto-generated versions. Add paths to your files under the agents key in docs.yml:
Custom files are served at the root-level /llms.txt and /llms-full.txt endpoints. Nested paths continue to use auto-generated output.
Requires Fern CLI version 4.67.0 or later.
Default per-page directive for AI agents
Every page served to AI agents now includes a default directive that tells agents how to navigate your documentation programmatically — pointing them to .md URLs, llms.txt, and llms-full.txt. The directive is automatically generated using your site’s domain and basepath, so no configuration is needed.
You can still override the default with a custom directive or disable it entirely.
Standalone search widget
Embed Ask Fern’s AI-powered search on any React site using the @fern-api/search-widget package. The widget renders a button that opens a search modal connected to your documentation content. It requires React 19; all other dependencies are bundled.
Per-page directives in llms.txt
You can add a directive that’s automatically prepended to every page when it’s served to AI agents — both individual Markdown page URLs and each page section within llms-full.txt. The directive is only visible to agents requesting Markdown; human-facing documentation is unaffected.
Missing redirects check rule
The missing-redirects rule for fern check detects pages that were removed or moved without a redirect. It compares your current docs navigation against the previously published state and warns when a previously published URL would return a 404. Configure its severity in docs.yml:
Requires authentication via fern login or the FERN_TOKEN environment variable. The check is skipped on first publish, when unauthenticated, or when the network is unavailable.
Requires Fern CLI version 4.57.0 or later.
Library docs generator
Generate MDX documentation pages from your Python or C++ library source code and include them in your Fern Docs site. Configure your libraries in docs.yml, run fern docs md generate, and the generated pages appear as navigation sections alongside your other documentation.
Configure fern check rule severity
You can now configure the severity of validation rules run by fern check directly in your docs.yml file using the check.rules property. Set individual rules to "warn" (non-blocking) or "error" (blocking) to control which checks fail your build.
The --broken-links and --strict-broken-links CLI flags are now deprecated in favor of this configuration.
AI search upgrade
Ask Fern now runs on Claude 4.6 Sonnet for faster, more accurate answers.
Context7 integration
Host a Context7 verification file on your Fern docs site. Add integrations.context7 to your docs.yml pointing to your context7.json file, and Fern serves it at /context7.json on your domain.
Requires Fern CLI version 4.52.0 or later.
Tab alignment and placement options
You can now finetune how your tabs look and behave using theme.tabs in docs.yml. Choose between the default underline or bubble style, place tabs in the header or sidebar, and center-align header tabs from a single configuration block.
The existing string shorthand (e.g., theme.tabs: bubble) continues to work for simple style changes.
On-page feedback logging for self-hosted deployments
Self-hosted deployments now log on-page feedback events as structured JSON with the [fern-docs-feedback] prefix. Filter your container logs to capture user feedback, including thumbs up/down votes and written messages.
Stable named preview links
Share a single preview link with reviewers that stays up to date as you push changes by passing an --id to fern generate --docs --preview. Rerunning with the same --id updates the existing preview in place rather than creating a new URL.
To set this up in CI, update your GitHub Actions workflow to pass the branch name as the --id.
Multi-file ZIP downloads
The <Download> component now supports bundling multiple files into a single ZIP download using the new sources prop. This is useful when you want users to download a collection of related assets — such as brand logos, SDK files, or configuration templates — without needing to host a pre-built ZIP file.
Pass an array of publicly accessible URLs to sources, and the component fetches each file client-side and packages them into a ZIP archive:
open-by-default option for collapsed sections
Sections and folders in your sidebar navigation support a new collapsed: open-by-default value. Sections configured with this value start expanded but display a toggle so users can collapse them.