Skip to content

Commit 0fae228

Browse files
story645meeseeksmachine
authored andcommitted
Backport PR matplotlib#28336: DOC: Add version warning banner for docs versions different from stable
1 parent de85de2 commit 0fae228

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

doc/_static/switcher.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
{
33
"name": "3.9 (stable)",
44
"version": "stable",
5-
"url": "https://matplotlib.org/stable/"
5+
"url": "https://matplotlib.org/stable/",
6+
"preferred": true
67
},
78
{
89
"name": "3.10 (dev)",

doc/conf.py

+1
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,7 @@ def js_tag_with_cache_busting(js):
508508
# this special value indicates the use of the unreleased banner. If we need
509509
# an actual announcement, then just place the text here as usual.
510510
"announcement": "unreleased" if not is_release_build else "",
511+
"show_version_warning_banner": True,
511512
}
512513
include_analytics = is_release_build
513514
if include_analytics:

0 commit comments

Comments
 (0)