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

Skip to content

Commit 435520f

Browse files
authored
Merge pull request #10025 from dstansby/website-sidebar
Remove badges from website sidebar
2 parents c5b70cb + 187e7a8 commit 435520f

File tree

5 files changed

+6
-15
lines changed

5 files changed

+6
-15
lines changed

doc/_templates/badgesidebar.html

Lines changed: 0 additions & 10 deletions
This file was deleted.

doc/_templates/donate_sidebar.html

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

22
<div>
3-
<div onclick="open_window('MjI1OA==')" class="donate_button">Support matplotlib</div>
3+
<div onclick="open_window('MjI1OA==')" class="donate_button">Support Matplotlib</div>
44
<div onclick="open_window('MjM2OA==')" class="donate_button">Support NumFOCUS</div>
55
</div>

doc/_templates/indexsidebar.html

Whitespace-only changes.

doc/conf.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,9 @@ def _check_deps():
241241

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

250249
# If false, no module index is generated.

doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,11 @@ Open source
174174

175175
.. raw:: html
176176

177+
<a href="https://www.numfocus.org/">
177178
<img src="_static/numfocus_badge.png"
178179
alt="A Fiscally Sponsored Project of NUMFocus"
179180
style="float:right; margin-left:20px" />
181+
</a>
180182

181183
Please consider `donating to the Matplotlib project <donating_>`_ through
182184
the Numfocus organization or to the `John Hunter Technology Fellowship

0 commit comments

Comments
 (0)