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

Skip to content

Commit 4650534

Browse files
authored
Merge pull request #11028 from timhoffm/py2support-note
Add note concerning python2 support on doc start page
2 parents 90ac523 + 2598954 commit 4650534

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
@@ -233,7 +233,8 @@ def _check_deps():
233233

234234
# Custom sidebar templates, maps page names to templates.
235235
html_sidebars = {
236-
'index': ['searchbox.html', 'donate_sidebar.html'],
236+
'index': ['searchbox.html', 'sidebar_announcement.html',
237+
'donate_sidebar.html'],
237238
'**': ['searchbox.html', 'localtoc.html', 'relations.html',
238239
'pagesource.html']
239240
}

0 commit comments

Comments
 (0)