Add a banner to display important site-wide announcements and notifications.
Use banners to display important announcements, updates, or notifications across your entire documentation site. Banners appear at the top of every page, support Markdown formatting, and can be made dismissible. Banners use the color defined by the colors.dark property in your docs.json.To add a banner, use the banner property in your docs.json:
Report incorrect code
Copy
Ask AI
"banner": { "content": "🚀 Version 2.0 is now live! See our [changelog](/changelog) for details.", "dismissible": true}
Configure different banner content for each language in your documentation. Define language-specific banners in the navigation.languages array in your docs.json.
Report incorrect code
Copy
Ask AI
{ "navigation": { "languages": [ { "language": "en", "banner": { "content": "🚀 Version 2.0 is now live! See our [changelog](/en/changelog) for details.", "dismissible": true }, "groups": [ { "group": "Getting started", "pages": ["en/overview", "en/quickstart"] } ] }, { "language": "es", "banner": { "content": "🚀 ¡La versión 2.0 ya está disponible! Consulta nuestro [registro de cambios](/es/changelog) para más detalles.", "dismissible": true }, "groups": [ { "group": "Getting started", "pages": ["es/overview", "es/quickstart"] } ] } ] }, "banner": { "content": "🚀 Version 2.0 is now live!", "dismissible": true }}