Skip to content
Last updated

Configuration options

The redocly.yaml file is the single place to configure everything Redocly. This configuration file allows you to customize your API documentation, developer projects, and other Redocly services according to your needs.

This guide provides a comprehensive overview of available configuration options organized by functional areas.

Filter configuration options
Choose your plan to see only the configuration options available to you. Select a plan below to get started.
Plan

API Management

Define your APIs and control how API descriptions are processed and validated.

apis
CommunityProScale
+1 more

Configure rules and settings for individual APIs in multi-API projects.

asyncapi
ProScaleEnterprise

Customize the behavior and appearance of AsyncAPI documentation. Requires an AsyncAPI description file.

catalogClassic
ScaleEnterprise

Organize your content into a catalog that users can filter and search. You can configure multiple catalogs and set the link text, description, and filters.

decorators
CommunityProScale
+1 more

Define transformation steps applied to your API description when it is bundled.

extends
CommunityProScale
+1 more

Extend an existing configuration set.

graphql
ProScaleEnterprise

Customize the behavior and appearance of integrated GraphQL documentation. Requires a GraphQL schema.

mockServer
ProScaleEnterprise

Configure a mock server in your Redocly-powered API documentation.

openapi
ProScaleEnterprise

Customize the behavior and appearance of OpenAPI documentation. Requires an OpenAPI description file.

preprocessors
CommunityProScale
+1 more

Define preprocessor transformation steps for your API description files.

rules
CommunityProScale
+1 more

Configure linting rules and their severity.

scorecardClassic
ScaleEnterprise

Add and create sets of rules and test your API description files against them.

Navigation elements

These settings control how users navigate through your documentation project.

aiAssistant
ProScaleEnterprise

Customize the AI assistant functionality in your project.

footer
ProScaleEnterprise

Customize the footer for the pages in your project.

navbar
ProScaleEnterprise

Configure a navbar for your project.

navigation
ProScaleEnterprise

Control the Previous and Next navigation buttons on project pages.

search
ProScaleEnterprise

Customize the search functionality in your project.

sidebar
ProScaleEnterprise

Set the visibility of the sidebar in your project.

User interface

Customize the look and feel of your documentation project with these options.

banner
ProScaleEnterprise

Display announcement banners at the top of your documentation pages.

breadcrumbs
ProScaleEnterprise

Control breadcrumb links that indicate a page's location in navigation.

codeSnippet
ProScaleEnterprise

Configure which control UI elements are available for code snippets.

colorMode
ProScaleEnterprise

Configure the behavior of the color mode UI control and add more color modes.

logo
ProScaleEnterprise

Configure a custom logo for the project navbar.

markdown
ProScaleEnterprise

Customize behavior and appearance of pages rendered from Markdown files.

userMenu
ProScaleEnterprise

Set the visibility of the user menu in your project.

Content management

Organize and control documentation content, versions, and localization.

l10n
ProScaleEnterprise

Configure localization (internationalization) for your project to support multiple languages.

metadata
ProScaleEnterprise

Configure metadata properties for your project, APIs, and documentation files.

metadataGlobs
ProScaleEnterprise

Configure glob patterns to apply metadata to specific files or directories.

products
ScaleEnterprise

Set up multiple product documentation sets in your project.

versionPicker
ProScaleEnterprise

Configure the visibility of the version picker in your project.

Security and access management

Configure user authentication and access controls for your documentation.

access
ProScaleEnterprise

Configure authentication and access-related settings in a single object.

idps
ScaleEnterprise

Restrict project login to specific identity providers (IdPs) selected by unique ID.

logoutReturnUrl
ProScaleEnterprise

Configure a URL where users are redirected after they log out.

rbac
Enterprise

Use team-based access controls to assign permissions required to files and project access.

requiresLogin
ProScaleEnterprise

This configuration option makes all your content private for non-authenticated users.

residency
Enterprise

Select a geographical location to host your project.

sso
ScaleEnterprise

Restrict project login to specific identity provider categories defined in the Redocly platform.

corsProxy
ProScaleEnterprise

Restrict the built-in CORS proxy to specific remote hosts and paths.

Customization

Extend functionality with custom code and additional features.

apiFunctions
ProScaleEnterprise

Control where Redocly detects and hosts API functions.

env
ProScaleEnterprise

Customize the redocly.yaml configuration for each environment.

links
ProScaleEnterprise

Add custom fonts, stylesheets, and other links to pages.

mcp
ProScaleEnterprise

Make your content accessible to AI tools.

plugins
ProScaleEnterprise

Configure custom plugins to extend lint and decorator behavior.

resolve
CommunityProScale
+1 more

Configure how to resolve URLs referenced from API descriptions.

responseHeaders
ProScaleEnterprise

Configure custom response headers for your project.

scripts
ProScaleEnterprise

Insert custom scripts in the head or body of a page.

skills
ProScaleEnterprise

Control how agent skills are published from your project.

Analytics and SEO

Improve discoverability and track usage of your documentation.

analytics
ProScaleEnterprise

Configure popular analytics providers for your documentation project.

consent
ScaleEnterprise

Show a cookie consent banner and load analytics only after the visitor agrees.

ignore
ProScaleEnterprise

Exclude files and folders from the project build without removing the source files from your project.

redirects
ProScaleEnterprise

Configure redirects to resources within your project.

seo
ProScaleEnterprise

Setup Search Engine Optimization(SEO) for your project.

Developer experience

Enhance the experience for developers using your APIs.

developerOnboarding
ProScaleEnterprise

Configure developer onboarding to enable external developers to self-register applications and manage API credentials.

feedback
ProScaleEnterprise

Customize how users leave feedback about your documentation content with this option.

Unknown config property

No metadata found for: platform.md

Example configuration

The following example demonstrates a typical redocly.yaml configuration combining various options:

logo:
  srcSet: './images/redocly-logo.svg light, ./images/redocly-logo-inverted.svg dark'
  altText: Redocly logo
  link: '/'
navbar:
  items:
    - page: index.md
      label: '{{ process.env.HOME_LABEL }}' 
    - page: config/index.md
      label: Config
feedback:
  type: sentiment
  settings:
    comment:
      likeLabel: What was most helpful?
      dislikeLabel: What can we improve?

apis:
  redocly-museum:
    root: './openapi-files/redocly-museum.yaml'

extends:
  - recommended

rules:
  info-license: error
  no-ambiguous-paths: error
  no-http-verbs-in-paths:
    severity: error
    splitIntoWords: true
  rule/operationId-casing:
    subject:
      type: Operation
      property: operationId
    assertions:
      casing: camelCase
  rule/no-description-start-with-the-a-an:
    subject:
      type: any
      property: description
    assertions:
      notPattern: /^(The\s|A\s|An\s)/

rbac:
  content:
    '**'
      authenticated: read

redirects:
  '/concepts/categories/':
    to: 'author/concepts/categories/'
  '/concepts/navigation/':
    to: 'author/concepts/navigation/'

This example includes logo customization, navigation setup, feedback controls, API descriptions, rule configurations, access controls, and redirects.

Configuration principles

Redocly has a few important configuration philosophies:

  • universal config (all configuration in one place)
  • zero config (you don't need to do any configuration because we have sane defaults)
  • config-as-code (all configuration should be writable in a simple source-control friendly format)

Boolean options should be false by default, and each name must say what true does. Set one only when you want to turn that behavior on. A few options are true by default. Check the reference pages for the option you need.

Some options have multiple levels of nesting. Pay attention to the indentation and nesting when modifying the file.

Next steps

After configuring your redocly.yaml file, you can validate it using the Redocly CLI with npx @redocly/cli check-config. For more detailed information about specific configuration options, follow the links in each section.