Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commite67f5a4

Browse files
committed
Update layout of sidebar in documentation
1 parent8d53ebf commite67f5a4

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

‎doc/_static/mpl.css

Lines changed: 9 additions & 3 deletions
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.sphinxsidebarh4,div.sphinxsidebarh3 {
240237
margin:1em00.5em0;
@@ -258,6 +255,11 @@ div.sphinxsidebar ul ul {
258255
margin-left:20px;
259256
}
260257

258+
#searchboxinput[type=text] {
259+
width:100%;
260+
box-sizing: border-box;
261+
}
262+
261263
p {
262264
margin:0.8em00.8em0;
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

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

‎doc/conf.py

Lines changed: 2 additions & 3 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp