File tree 4 files changed +17
-13
lines changed
4 files changed +17
-13
lines changed Original file line number Diff line number Diff line change 29
29
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
30
30
# ones.
31
31
extensions = [
32
- 'matplotlib.sphinxext.plot_directive' ,
32
+ "matplotlib.sphinxext.plot_directive" ,
33
+ "sphinx_design"
33
34
]
34
35
35
36
# Add any paths that contain templates here, relative to this directory.
61
62
"navbar_links" : "absolute" ,
62
63
}
63
64
65
+ html_sidebars = {
66
+ "index" : [
67
+ "donate_sidebar.html" ,
68
+ ],
69
+ }
70
+
64
71
# Add any paths that contain custom static files (such as style sheets) here,
65
72
# relative to this directory. They are copied after the builtin static files,
66
73
# so a file named "default.css" will overwrite the builtin "default.css".
Original file line number Diff line number Diff line change 1
-
2
-
3
-
4
1
< 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 >
Original file line number Diff line number Diff line change @@ -14,15 +14,15 @@ html[data-theme="dark"] {
14
14
}
15
15
16
16
: root {
17
- --pst-color-link-hover : var (--pst-color-secondary );
17
+ --pst-color-link-hover : var (--pst-color-secondary );
18
18
}
19
19
20
- .sidebar-cheatsheets , . sidebar-donate {
21
- margin : 2.75 rem 0 ;
20
+ .sidebar-donate > . sd-btn {
21
+ width : 100 % ;
22
22
}
23
23
24
24
# navbar-icon-links {
25
- margin-left : 1.5em ;
25
+ margin-left : 1.5em ;
26
26
}
27
27
28
28
# navbar-icon-links .nav-link {
@@ -32,4 +32,3 @@ html[data-theme="dark"] {
32
32
# navbar-icon-links .nav-link : hover {
33
33
color : var (--pst-color-primary );
34
34
}
35
-
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ classifiers = [
21
21
dependencies = [
22
22
" pydata-sphinx-theme>=0.13.1" ,
23
23
" matplotlib" ,
24
+ " sphinx-design" ,
24
25
]
25
26
26
27
[project .urls ]
You can’t perform that action at this time.
0 commit comments