Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 479bd7a

Browse filesBrowse 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
Copy full SHA for 479bd7a

File tree

Expand file treeCollapse file tree

2 files changed

+3
-1
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+3
-1
lines changed

‎doc/_static/switcher.json

Copy file name to clipboardExpand all lines: doc/_static/switcher.json
+2-1Lines 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

Copy file name to clipboardExpand all lines: doc/conf.py
+1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.