Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 3 additions & 0 deletions fern/products/docs/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ navigation:
- page: Page settings
path: ./pages/navigation/frontmatter.mdx
slug: page-level-settings
- page: Disabling features
path: ./pages/navigation/disabling-features.mdx
slug: disabling-features
- section: Navigation
skip-slug: true
contents:
Expand Down
2 changes: 1 addition & 1 deletion fern/products/docs/pages/ask-fern/what-is-ask-fern.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Ask Fern is Fern's AI Search feature, powered by [Claude 4.6 Sonnet](https://www

<Steps>
<Step title="Enable in the Dashboard">
Open the [Fern Dashboard](https://dashboard.buildwithfern.com/). Navigate to the **Settings** tab and click **Enable** on the Ask AI card.
Open the [Fern Dashboard](https://dashboard.buildwithfern.com/). Navigate to the **Settings** tab and click **Enable** on the Ask AI card. The same card [turns Ask Fern off](/learn/docs/configuration/disabling-features#ask-fern-and-the-ask-ai-button), which is separate from hiding the **Ask AI** page action button in `docs.yml`.

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 🐶
[Microsoft.UIVerbs] Use 'select' instead of the input-specific verb 'click'.


<Info>
Enabling Ask Fern triggers an automatic reindex of your content. This typically takes a few minutes, though sites with extensive custom components may take longer. Once this process is finished, the Ask Fern side panel will appear on your site.
Expand Down
2 changes: 2 additions & 0 deletions fern/products/docs/pages/customization/hiding-content.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ description: Control visibility of pages, sections, tabs, tab variants, versions

Fern gives you two main tools for controlling content visibility: `hidden: true` in `docs.yml` removes content from your site's sidebar and search results, while `noindex: true` in page frontmatter excludes a page from search without affecting navigation.

Both control which of your content readers can reach. To turn off a built-in feature such as Ask Fern, a page action, or the API Explorer, see [Disabling features](/learn/docs/configuration/disabling-features).

## Hiding a page

### Accessible only by direct URL
Expand Down
91 changes: 91 additions & 0 deletions fern/products/docs/pages/navigation/disabling-features.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
---
title: Disabling features
subtitle: Turn off Ask Fern, page actions, the MCP server, the API Explorer, and other built-in features
description: Reference for turning off built-in Fern Docs features, including which controls live in docs.yml, page frontmatter, and the Fern Dashboard.
---

Most Fern Docs features are on by default. Where the off switch lives depends on the feature: `docs.yml` for site-wide behavior, page frontmatter for a single page, and the [Fern Dashboard](https://dashboard.buildwithfern.com/) for [Ask Fern](/learn/docs/ai-features/ask-fern/overview).

## Ask Fern and the Ask AI button

Ask Fern and the **Ask AI** page action button are separate controls.

| To turn off | Set |
|-------------|-----|
| Ask Fern itself: AI search and the side panel | **Settings** > **Ask AI** card in the Dashboard |
| The **Ask AI** page action button | `page-actions.options.ask-ai: false` in `docs.yml` |

The [`ai-search` key](/learn/docs/configuration/site-level-settings#ask-fern-configuration) configures Ask Fern once it's enabled, setting PII masking, additional datasources, and the system prompt. It has no enable or disable property, so `ai-search: {}` leaves Ask Fern running with its default behavior.

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.Acronyms] 'PII' has no definition.


Setting `ask-ai: false` hides the button from the page action bar and leaves Ask Fern reachable everywhere else it appears.

## Page actions and the MCP server

Every built-in page action is a boolean under [`page-actions.options`](/learn/docs/configuration/site-level-settings#built-in-actions). **Copy Page**, **View as Markdown**, **Ask AI**, **ChatGPT**, **Claude**, **Claude Code**, and **Cursor** are on by default.

```yaml title="docs.yml"
page-actions:
options:
copy-page: false
view-as-markdown: false
ask-ai: false
chatgpt: false
claude: false
claude-code: false
cursor: false
```

The site's [MCP server](/learn/docs/ai-features/mcp-server) is configured under the same key, even though it controls an endpoint rather than a button:

```yaml title="docs.yml"
page-actions:
options:
mcp: false
```

Setting `mcp: false` makes `/_mcp/server` return 404, omits its URL from [`llms.txt`](/learn/docs/ai-features/llms-txt) and agent prompts, and hides the **Connect to Claude Code** and **Connect to Cursor** buttons. This is the setting to use on [authenticated sites](/learn/docs/authentication/overview), where unauthenticated agents would otherwise discover an endpoint they can't reach.

## The API Explorer

An empty `environments` list disables the [API Explorer](/learn/docs/api-references/api-explorer). Set it on the `- api` entry to cover every endpoint in that API:

```yaml title="docs.yml" {3,4}
navigation:
- api: API Reference
playground:
environments: []
```

`playground` applies at the level it's declared on and can be overridden on a section or an individual endpoint in `layout`. For the full set of Explorer options, see [Setting API Explorer options](/learn/docs/api-references/customize-api-reference-layout#setting-api-explorer-options).

## Individual pages

Frontmatter turns features off for one page without changing the site-wide setting.

| Frontmatter | Effect |
|-------------|--------|
| `hide-page-actions: true` | Hides every page action button |
| `hide-toc: true` | Hides the table of contents |
| `hide-nav-links: true` | Hides the previous and next navigation links |
| `hide-feedback: true` | Hides the on-page feedback widget |

See [Page settings](/learn/docs/configuration/page-level-settings) for the full frontmatter reference.

## Other site-wide settings

| To turn off | Set |
|-------------|-----|
| The [search bar](/learn/docs/customization/search) | `settings.disable-search: true` |
| [Web analytics](/learn/dashboard/metrics/web-analytics) and every configured analytics provider | `settings.disable-analytics: true` |
| The 404 page, redirecting to the home page instead | `settings.hide-404-page: true` |
| [HTTP snippets](/learn/docs/api-references/http-snippets) in the API Reference | `settings.http-snippets: false` |
| [AI-generated examples](/learn/docs/ai-features/ai-examples) in the API Reference | `ai-examples.enabled: false` |
| The [directive prepended to pages served to agents](/learn/docs/ai-features/llms-txt) | `agents.page-directive: ""` |

`settings.disable-explorer-proxy: true` is not an off switch for the Explorer. It keeps the Explorer running and sends requests directly to your API instead of through Fern's proxy, which requires CORS on your API. To turn the Explorer off, use an empty `playground.environments` list.

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 🐶
[Microsoft.Contractions] Use 'isn't' instead of 'is not'.


Full details for each key are in [Site settings](/learn/docs/configuration/site-level-settings#settings-configuration).

## Hiding pages, sections, and endpoints

Removing content from the sidebar, search results, and `llms.txt` uses `hidden` and `noindex` rather than any of the settings covered here. See [Hiding content](/learn/docs/customization/hiding-content).
5 changes: 4 additions & 1 deletion fern/products/docs/pages/navigation/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Fern documentation is configured at two levels: **site-level** settings in `docs

`docs.yml` covers two concerns. Site-level settings determine how the site looks and behaves — branding, layout, navbar links, and analytics. Navigation determines what the site contains: which files become pages, how they group into sections, and what URL each one gets. Navigation is where most structural decisions land, so it spans several pages of its own.

<CardGroup cols={3}>
<CardGroup cols={2}>
<Card title="Site settings" icon="fa-duotone fa-sliders" href="/learn/docs/configuration/site-level-settings">
Colors, typography, logo, layout, navbar links, and analytics
</Card>
Expand All @@ -19,4 +19,7 @@ Fern documentation is configured at two levels: **site-level** settings in `docs
<Card title="Navigation" icon="fa-duotone fa-sitemap" href="/learn/docs/configuration/navigation-overview">
Products, versions, tabs, sections, folders, and pages
</Card>
<Card title="Disabling features" icon="fa-duotone fa-toggle-off" href="/learn/docs/configuration/disabling-features">
Turn off Ask Fern, page actions, the MCP server, and the API Explorer
</Card>
</CardGroup>
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,7 @@ integrations:

## Ask Fern configuration

Specify [Ask Fern](/learn/ask-fern/getting-started/what-is-ask-fern) to control where it appears and what content it can access.
Specify [Ask Fern](/learn/ask-fern/getting-started/what-is-ask-fern) to control where it appears and what content it can access. These keys configure Ask Fern once it's enabled; enabling and [disabling Ask Fern](/learn/docs/configuration/disabling-features#ask-fern-and-the-ask-ai-button) happens in the Dashboard.

```yaml docs.yml
ai-search:
Expand Down
Loading