Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 22f49b7

Browse files
dstansbyMeeseeksDev[bot]
authored and
MeeseeksDev[bot]
committed
Backport PR #11028: Add note concerning python2 support on doc start page
1 parent f855d1a commit 22f49b7

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

doc/_static/mpl.css

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -309,11 +309,11 @@ h2 {
309309
margin: 0.5em 0 0.2em 0;
310310
padding-top: 0.5em;
311311
font-size: 1.7em;
312-
padding: 0;
313312
}
314313

315314
h3 {
316315
margin: 0.2em 0 0.1em 0;
316+
padding-top: 0.5em;
317317
font-size: 1.2em;
318318
}
319319

@@ -846,14 +846,12 @@ figcaption {
846846
}
847847

848848
#sidebar-donations {
849-
margin-top: 28px;
849+
margin-top: 40px;
850850
}
851851

852852
.donate_button {
853853
background:#11557C;
854854
font-weight:normal;
855-
border:solid 1px #fff;
856-
outline: solid 1px #11557C;
857855
clear: both;
858856
display: block;
859857
width:200px;
@@ -864,6 +862,7 @@ figcaption {
864862
color:#fff;
865863
text-decoration: none;
866864
margin: 30px auto 0;
865+
border-radius: 6px;
867866
z-index:1;
868867
transition: background .25s ease;
869868
}
@@ -972,3 +971,13 @@ p.sphx-glr-signature a.reference.external {
972971
font-weight: 400;
973972
}
974973

974+
.sidebar-announcement {
975+
border: 1px solid #11557C;
976+
background: #eff9ff;
977+
padding: 2px;
978+
margin-top: 40px;
979+
}
980+
981+
.sidebar-announcement p {
982+
margin: 0.4em 0.4em 0.6em 0.4em;
983+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<div class="sidebar-announcement">
2+
<p>The upcoming version Matplotlib 3.0 will be Python 3 only.</p>
3+
<p>For Python 2 support, Matplotlib 2.2.x will be continued as a LTS release
4+
and updated with bugfixes until January 1, 2020.</p>
5+
</div>

doc/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,8 @@ def _check_deps():
242242

243243
# Custom sidebar templates, maps page names to templates.
244244
html_sidebars = {
245-
'index': ['searchbox.html', 'donate_sidebar.html'],
245+
'index': ['searchbox.html', 'sidebar_announcement.html',
246+
'donate_sidebar.html'],
246247
'**': ['searchbox.html', 'localtoc.html', 'relations.html',
247248
'pagesource.html']
248249
}

0 commit comments

Comments
 (0)