File tree Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ There are two main templates that replace the defaults in ``pydata-sphinx-theme`
2828
2929 Note that the logo options need not be specified as they are included in theme
3030initialization. The logo is stored at
31- ``mpl_sphinx_theme/static/images/logo2 .svg ``.
31+ ``mpl_sphinx_theme/static/logo_{light,dark} .svg ``.
3232
3333To change the top navbar, edit ``mpl_sphinx_theme/mpl_nav_bar.html ``
3434
Original file line number Diff line number Diff line change 4646html_theme_options = {
4747 # logo is installed by mpl-sphinx-theme as:
4848 # "logo": {"link": "https://matplotlib.org/stable/",
49- # "image_light": "_static/logo2 .svg",
49+ # "image_light": "_static/logo_light .svg",
5050 # "image_dark": "_static/logo_dark.svg"},
5151 # if this default is OK, then no need to modify "logo"
5252 # collapse_navigation in pydata-sphinx-theme is slow, so skipped for local
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ There are two main templates that replace the defaults in ``pydata-sphinx-theme`
2929
3030 Note that the logo options need not be specified as they are included in theme
3131initialization. The logo is stored at
32- ``mpl_sphinx_theme/static/images/logo2 .svg ``.
32+ ``mpl_sphinx_theme/static/logo_{light,dark} .svg ``.
3333
3434To change the top navbar, edit ``mpl_sphinx_theme/mpl_nav_bar.html ``
3535
Original file line number Diff line number Diff line change 44
55
66def set_config_defaults (app ):
7-
7+ """Set default logo in theme options."""
88 try :
99 theme = app .builder .theme_options
1010 except AttributeError :
@@ -17,7 +17,7 @@ def set_config_defaults(app):
1717 if "image_dark" not in logo :
1818 logo ["image_dark" ] = "_static/logo_dark.svg"
1919 if "image_light" not in logo :
20- logo ["image_light" ] = "_static/logo2 .svg"
20+ logo ["image_light" ] = "_static/logo_light .svg"
2121 if "link" not in logo :
2222 logo ["link" ] = "https://matplotlib.org/stable/"
2323 theme ["logo" ] = logo
Original file line number Diff line number Diff line change @@ -6,4 +6,4 @@ stylesheet = css/style.css
66navbar_links = absolute
77navbar_center = mpl_nav_bar.html
88navbar_end = theme-switcher.html, mpl_icon_links.html
9- logo = images/logo2 .svg
9+ logo = logo_light .svg
You can’t perform that action at this time.
0 commit comments