Skip to content

Commit

Permalink
Update conf.py to dynamically show current release number in announce…
Browse files Browse the repository at this point in the history
…ment text at top of Panel site. (#6903)
  • Loading branch information
Coderambling authored Jun 10, 2024
1 parent c90ffd4 commit 3983b0b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <a href='https://panel.holoviz.org/about/releases.html#version-1-4-0'>release notes</a> and support Panel by giving it a 🌟 on <a href='https://github.com/holoviz/panel'>Github</a>."


html_theme_options = {
"logo": {
"image_light": "_static/logo_horizontal_light_theme.png",
Expand Down Expand Up @@ -74,7 +79,7 @@
"panelitelink",
"page-toc",
],
"announcement": "Panel 1.4 has just been released! Checkout the <a href='https://panel.holoviz.org/about/releases.html#version-1-4-0'>release notes</a> and support Panel by giving it a 🌟 on <a href='https://github.com/holoviz/panel'>Github</a>.",
"announcement": announcement_text,
}

extensions += [
Expand Down

0 comments on commit 3983b0b

Please sign in to comment.