From 3983b0ba887cf29228677234e3a9c9d4fdc3f7c4 Mon Sep 17 00:00:00 2001 From: Coderambling <159031875+Coderambling@users.noreply.github.com> Date: Mon, 10 Jun 2024 18:54:58 +0200 Subject: [PATCH] Update conf.py to dynamically show current release number in announcement text at top of Panel site. (#6903) --- doc/conf.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 += [