Skip to content

Commit 1117ae8

Browse files
committed
Add donate sidebar to sample page
1 parent b0d0726 commit 1117ae8

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

docs/conf.py

+6
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@
6161
"navbar_links": "absolute",
6262
}
6363

64+
html_sidebars = {
65+
"index": [
66+
"donate_sidebar.html",
67+
],
68+
}
69+
6470
# Add any paths that contain custom static files (such as style sheets) here,
6571
# relative to this directory. They are copied after the builtin static files,
6672
# so a file named "default.css" will overwrite the builtin "default.css".

mpl_sphinx_theme/donate_sidebar.html

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
2-
3-
41
<div class="sidebar-donate">
5-
<a href="https://numfocus.org/donate-to-matplotlib" target="_blank">
6-
<span class="mpl-button" >Support Matplotlib</span>
7-
</a>
8-
</div>
2+
<a class="sd-btn sd-btn-primary sd-fs-5 sd-px-5 sd-py-2" href="https://numfocus.org/donate-to-matplotlib" target="_blank">
3+
Support Matplotlib
4+
</a>
5+
</div>

0 commit comments

Comments
 (0)