Skip to content

Commit 479bd7a

Browse files
authored
Merge pull request #28336 from melissawm/version-banner
DOC: Add version warning banner for docs versions different from stable
2 parents 03a73c8 + e682e64 commit 479bd7a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

doc/_static/switcher.json

Lines changed: 2 additions & 1 deletion
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

Lines changed: 1 addition & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy