# `navigation`

The `navigation` option under `openapi` controls the page actions on OpenAPI reference pages.
Use it to hide the page actions on these pages, or to display other actions than on the other pages of the project.

The option replaces the root [`navigation.actions`](/docs/platform/config/navigation) option for these pages.
An option that you do not set under `openapi` keeps its root value.
The `nextButton` and `previousButton` options of the root `navigation` option are not available under `openapi`.

The `hide` option under `openapi` hides only the page actions in the page header.
The **Connect to Cursor** and **Connect to VS Code** buttons of an MCP server that the API description declares with [`x-mcp`](/docs/platform/content/api-docs/openapi-extensions/x-mcp) stay on the page.
The root `hide` option removes these buttons too.

Redoc Community Edition supports only the `copy`, `claude`, and `chatgpt` items.
It ignores all other items.

## Options

| Option | Type | Description |
| --- | --- | --- |
| actions | [PageAction object](#pageaction-object) | Controls the actions that appear on OpenAPI reference pages. |

### PageAction object

| Option | Type | Description |
| --- | --- | --- |
| hide | boolean | Hides the page actions. Default: `false`. |
| items | [string] | Lists the items that appear on the page and defines their order. The project hides items that you omit from the list.  Allowed values:  - `copy`: copy the page content as Markdown to the clipboard. - `view`: view the page content as Markdown in a new tab. - `chatgpt`: ask ChatGPT about this page.   Supported only on public pages. - `claude`: ask Claude about this page.   Supported only on public pages. - `grok`: ask Grok about this page.   Supported only on public pages. - `docs-mcp-claude`: connect to the MCP server with Claude.   Opens claude.ai with the server name and URL filled in. - `docs-mcp-vscode`: connect to the MCP server with VS Code. - `docs-mcp-cursor`: connect to the MCP server with Cursor. - `copy-mcp-url`: copy the MCP server URL to the clipboard.  The `copy`, `view`, `chatgpt`, `claude`, and `grok` actions require `seo.llmstxt.hide` set to `false` (default). These actions also hide when `search.hide` is set to `true` or when the page is excluded from search. The `docs-mcp-*` and `copy-mcp-url` actions require `mcp.hide` and `mcp.docs.hide` set to `false` (default).  The first item in the list is the default action. Default: `copy`, `view`, `chatgpt`, `claude`, `grok`, `docs-mcp-claude`, `docs-mcp-vscode`, `docs-mcp-cursor`, `copy-mcp-url` in this order. |

## Examples

### Hide page actions on API pages

The following example hides the page actions on OpenAPI reference pages.
The other pages of the project keep their page actions.

```yaml
openapi:
  navigation:
    actions:
      hide: true
```

### Display page actions only on API pages

The following example hides the page actions on all pages of the project, and displays the `copy` and `view` actions on OpenAPI reference pages:

```yaml
navigation:
  actions:
    hide: true
openapi:
  navigation:
    actions:
      hide: false
      items:
        - copy
        - view
```

### Set the page actions of one API

The following example displays only the `copy` action on the pages of one API.
The other APIs keep the page actions of the `openapi` option or of the root option.

```yaml
apis:
  cafe:
    root: ./openapi/cafe.yaml
    openapi:
      navigation:
        actions:
          items:
            - copy
```

## Resources

- **[`navigation`](/docs/platform/config/navigation)** - Page actions and navigation buttons for all the pages of your project
- **[OpenAPI configuration](/docs/platform/config/openapi)** - All the options you can set under `openapi`
- **[Configuration options](/docs/platform/config)** - All the other options for your project
