colors.dark property in your docs.json.
To add a banner, use the banner property in your docs.json:
Properties
The banner message. Supports plain text and Markdown formatting.
Whether users can dismiss the banner. When
true, users can close the banner and it won’t reappear for their session. Defaults to false.Language-specific banners
Configure different banner content for each language in your documentation. Language-specific banners are defined within thenavigation.languages array in your docs.json.
Fallback behavior
Banners follow a priority order when determining which content to display:- Language-specific banner: If the current language has a
bannerconfiguration, it takes priority. - Global banner: If no language-specific banner exists, the global
bannerproperty is used.
Banner dismissals
Banner dismissals are tracked per language. When a user dismisses a banner:- The dismissal is stored for that specific language
- Switching to a different language will show that language’s banner (if not previously dismissed)
- If the banner content changes, the banner will reappear even if previously dismissed