Skip to content

Commit fd834d8

Browse files
authored
Merge pull request matplotlib#28339 from meeseeksmachine/auto-backport-of-pr-28336-on-v3.9.x
Backport PR matplotlib#28336 on branch v3.9.x (DOC: Add version warning banner for docs versions different from stable)
2 parents de85de2 + 0fae228 commit fd834d8

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)