# Configure Redocly 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. ## API management These options let you define your APIs and control how API descriptions are processed and validated. - [apis](/docs/realm/config/apis) - [openapi](/docs/realm/config/openapi) - [graphql](/docs/realm/config/graphql) - [mockServer](/docs/realm/config/mock-server) - [decorators](/docs/realm/config/openapi/decorators) - [preprocessors](/docs/realm/config/openapi/preprocessors) - [extends](/docs/realm/config/openapi/extends) - [rules](/docs/realm/config/rules) - [scorecard](/docs/realm/config/scorecard) - [catalogClassic](/docs/realm/config/catalog-classic) ## Navigation elements These settings control how users navigate through your documentation project. - [navbar](/docs/realm/config/navbar) - [sidebar](/docs/realm/config/sidebar) - [footer](/docs/realm/config/footer) - [navigation](/docs/realm/config/navigation) - [search](/docs/realm/config/search) ## User interface Customize the look and feel of your documentation project with these options. - [codeSnippet](/docs/realm/config/code-snippet) - [breadcrumbs](/docs/realm/config/breadcrumbs) - [markdown](/docs/realm/config/markdown) - [removeAttribution](/docs/realm/config/remove-attribution) - [logo](/docs/realm/config/logo) - [colorMode](/docs/realm/config/color-mode) - [userMenu](/docs/realm/config/user-menu) ## Content management Organize and control documentation content, versions, and localization. - [products](/docs/realm/config/products) - [versionPicker](/docs/realm/config/version-picker) - [l10n](/docs/realm/config/l10n) - [metadata](/docs/realm/config/metadata) - [metadataGlobs](/docs/realm/config/metadata-globs) ## Security and access management Configure user authentication and access controls for your documentation. - [rbac](/docs/realm/config/rbac) - [requiresLogin](/docs/realm/config/requires-login) - [sso](/docs/realm/config/sso) - [residency](/docs/realm/config/residency) ## Customization Extend functionality with custom code and additional features. - [apiFunctions](/docs/realm/config/api-functions) - [plugins](/docs/realm/config/plugins) - [resolve](/docs/realm/config/openapi/resolve) - [env](/docs/realm/config/env) - [responseHeaders](/docs/realm/config/response-headers) - [links](/docs/realm/config/links) - [scripts](/docs/realm/config/scripts) ## Analytics and SEO Improve discoverability and track usage of your documentation. - [analytics](/docs/realm/config/analytics) - [seo](/docs/realm/config/seo) - [redirects](/docs/realm/config/redirects) - [ignore](/docs/realm/config/ignore) ## Developer experience Enhance the experience for developers using your APIs. - [developerOnboarding](/docs/realm/config/developer-onboarding) - [feedback](/docs/realm/config/feedback) - [reunite](/docs/realm/config/reunite) ## Example configuration The following example demonstrates a typical `redocly.yaml` configuration combining various options: ```yaml 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) 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.