Skip to content

Commit e67f5a4

Browse files
committed
Update layout of sidebar in documentation
1 parent 8d53ebf commit e67f5a4

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

doc/_static/mpl.css

+9-3
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,6 @@ div.sphinxsidebar {
232232
text-align: left;
233233
/* margin-left: -100%; */
234234
}
235-
div.sphinxsidebarwrapper {
236-
padding-top: 28px
237-
}
238235

239236
div.sphinxsidebar h4, div.sphinxsidebar h3 {
240237
margin: 1em 0 0.5em 0;
@@ -258,6 +255,11 @@ div.sphinxsidebar ul ul {
258255
margin-left: 20px;
259256
}
260257

258+
#searchbox input[type=text] {
259+
width: 100%;
260+
box-sizing: border-box;
261+
}
262+
261263
p {
262264
margin: 0.8em 0 0.8em 0;
263265
}
@@ -787,6 +789,10 @@ figcaption {
787789
}
788790
}
789791

792+
#sidebar-donations {
793+
margin-top: 28px;
794+
}
795+
790796
.donate_button {
791797
background:#11557C;
792798
font-weight:normal;

doc/_templates/donate_sidebar.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
<div>
2+
<div id="sidebar-donations">
33
<a href="https://www.flipcause.com/secure/cause_pdetails/MjI1OA==" target="_blank"> <div class="donate_button" >Support Matplotlib</div></a>
44
<a href="https://www.flipcause.com/secure/cause_pdetails/MTY3NTU=" target="_blank"> <div class="donate_button" >Support NumFOCUS</div></a>
55
</div>

doc/conf.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,8 @@ def _check_deps():
241241

242242
# Custom sidebar templates, maps page names to templates.
243243
html_sidebars = {
244-
'index': ['donate_sidebar.html', 'searchbox.html'],
245-
'**': ['localtoc.html', 'relations.html',
246-
'sourcelink.html', 'searchbox.html']
244+
'index': ['searchbox.html', 'donate_sidebar.html'],
245+
'**': ['searchbox.html', 'localtoc.html', 'relations.html']
247246
}
248247

249248
# If false, no module index is generated.

0 commit comments

Comments
 (0)