# `banner` Display announcement banners at the top of your documentation pages. Banners are sticky notification bars that appear at the top of pages to communicate important announcements, updates, or information to your users. Banners support Markdown content, can be configured to appear on specific pages using glob patterns, and can be made dismissible so users can hide them. ## Options Configure banners as an array of banner objects in your `redocly.yaml` file or in page front matter. | Option | Type | Description | | --- | --- | --- | | content | string | **REQUIRED.** The banner content text. Supports Markdown syntax for formatting, links, tags and emphasis. Example: `This is **a great announcement.** [Button](https://redocly.com)` | | dismissible | boolean | Configure whether users can dismiss the banner. When `true`, a close button appears on the banner. Dismissed banners are stored in browser's `localStorage` and won't appear again for that user. Default: `false` | | target | string | Glob pattern that determines which pages display the banner. Uses glob pattern matching to target specific pages or sections. If not specified, matches all pages. **Note:** When configuring banners in front matter, the `target` option is not needed. Front matter banners automatically target the page where they're configured. **Pattern examples:** - `blog/**` - matches all pages under the `blog/` path - `docs/api/**` - matches all pages under `docs/api/` - `**` - matches all pages (catch-all) - `getting-started.md` - matches a specific page If not specified, the banner appears on all pages. **Matching rules:** - more specific patterns take priority over less specific ones - exact matches take priority over wildcard patterns - when multiple banners match a page, only the most specific one is displayed - patterns are case-insensitive and normalized for matching - front matter banners take priority over global config banners | | tone | string | The visual style tone of the banner. Controls the color scheme of the banner. **Available tones:**- `info` - Blue background (default) - `success` - Green background - `warning` - Yellow background - `error` - Red background Default: `info` | ## Configuration Add banners to your `redocly.yaml` file: ```yaml redocly.yaml banner: - content: This is **a great announcement.** [Button](https://redocly.com) dismissible: true target: blog/** - content: Important update for all users target: '**' color: warning ``` ## Examples Configure multiple banners for different sections: ```yaml redocly.yaml banner: - content: Check out our **new blog posts** this week! dismissible: true target: blog/** - content: API documentation has been updated target: api/** - content: Site maintenance scheduled for this weekend dismissible: true target: '**' ``` Configure a banner in the front matter of a specific page: ```md example.md --- banner: - content: Introducing the miracle of documentation --- # Example page This is an example page. ## Resources - **[Navigation elements](../navigation/index.md)** - Overview of navigation components and patterns - **[Navbar configuration](./navbar.md)** - Configure the top navigation bar - **[Footer configuration](./footer.md)** - Configure the footer section - **[Custom styles](../branding/customize-styles.md)** - Customize banner appearance with CSS - **[Configuration options](./index.md)** - Explore other project configuration options ```