diff --git a/doc/conf.py b/doc/conf.py index ad345df71f..448fc6da51 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -43,6 +43,11 @@ html_theme = "pydata_sphinx_theme" html_favicon = "_static/icons/favicon.ico" +current_release = panel.__version__ # Current release version variable + +announcement_text = f"Panel {current_release} has just been released! Check out the release notes and support Panel by giving it a 🌟 on Github." + + html_theme_options = { "logo": { "image_light": "_static/logo_horizontal_light_theme.png", @@ -74,7 +79,7 @@ "panelitelink", "page-toc", ], - "announcement": "Panel 1.4 has just been released! Checkout the release notes and support Panel by giving it a 🌟 on Github.", + "announcement": announcement_text, } extensions += [