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

Skip to content

Backport PR #11028 on branch v2.2.2-doc #11033

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 12, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions doc/_static/mpl.css
Original file line number Diff line number Diff line change
Expand Up @@ -309,11 +309,11 @@ h2 {
margin: 0.5em 0 0.2em 0;
padding-top: 0.5em;
font-size: 1.7em;
padding: 0;
}

h3 {
margin: 0.2em 0 0.1em 0;
padding-top: 0.5em;
font-size: 1.2em;
}

Expand Down Expand Up @@ -846,14 +846,12 @@ figcaption {
}

#sidebar-donations {
margin-top: 28px;
margin-top: 40px;
}

.donate_button {
background:#11557C;
font-weight:normal;
border:solid 1px #fff;
outline: solid 1px #11557C;
clear: both;
display: block;
width:200px;
Expand All @@ -864,6 +862,7 @@ figcaption {
color:#fff;
text-decoration: none;
margin: 30px auto 0;
border-radius: 6px;
z-index:1;
transition: background .25s ease;
}
Expand Down Expand Up @@ -972,3 +971,13 @@ p.sphx-glr-signature a.reference.external {
font-weight: 400;
}

.sidebar-announcement {
border: 1px solid #11557C;
background: #eff9ff;
padding: 2px;
margin-top: 40px;
}

.sidebar-announcement p {
margin: 0.4em 0.4em 0.6em 0.4em;
}
5 changes: 5 additions & 0 deletions doc/_templates/sidebar_announcement.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div class="sidebar-announcement">
<p>The upcoming version Matplotlib 3.0 will be Python 3 only.</p>
<p>For Python 2 support, Matplotlib 2.2.x will be continued as a LTS release
and updated with bugfixes until January 1, 2020.</p>
</div>
3 changes: 2 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,8 @@ def _check_deps():

# Custom sidebar templates, maps page names to templates.
html_sidebars = {
'index': ['searchbox.html', 'donate_sidebar.html'],
'index': ['searchbox.html', 'sidebar_announcement.html',
'donate_sidebar.html'],
'**': ['searchbox.html', 'localtoc.html', 'relations.html',
'pagesource.html']
}
Expand Down