File tree Expand file tree Collapse file tree 7 files changed +14
-47
lines changed Expand file tree Collapse file tree 7 files changed +14
-47
lines changed Original file line number Diff line number Diff line change @@ -19,17 +19,16 @@ installation.
19
19
20
20
See the ``docs/conf.py `` file for other settings.
21
21
22
- There are three main templates that replace the defaults in ``pydata-sphinx-theme ``:
22
+ There are two main templates that replace the defaults in ``pydata-sphinx-theme ``:
23
23
24
24
.. code-block ::
25
25
26
- navbar_start = mpl_navbar_logo.html
27
26
navbar_center = mpl_nav_bar.html
28
27
navbar_end = mpl_icon_links.html
29
28
30
- Note that the option `` html_logo `` need not be specified as it is included
31
- in `` mpl_sphinx_theme/mpl_navbar_logo.html ``. The logo is stored at
32
- ``mpl_sphinx_theme/static/images/logo2 .svg ``.
29
+ Note that the logo options need not be specified as they are included in theme
30
+ initialization. The logo is stored at
31
+ ``mpl_sphinx_theme/static/logo_{light,dark} .svg ``.
33
32
34
33
To change the top navbar, edit ``mpl_sphinx_theme/mpl_nav_bar.html ``
35
34
Original file line number Diff line number Diff line change 46
46
html_theme_options = {
47
47
# logo is installed by mpl-sphinx-theme as:
48
48
# "logo": {"link": "https://matplotlib.org/stable/",
49
- # "image_light": "_static/logo2 .svg",
49
+ # "image_light": "_static/logo_light .svg",
50
50
# "image_dark": "_static/logo_dark.svg"},
51
51
# if this default is OK, then no need to modify "logo"
52
52
# collapse_navigation in pydata-sphinx-theme is slow, so skipped for local
Original file line number Diff line number Diff line change @@ -20,17 +20,16 @@ line in your conf.py file
20
20
And by including ``mpl_sphinx_theme `` as a requirement in your documentation
21
21
installation.
22
22
23
- There are three main templates that replace the defaults in ``pydata-sphinx-theme ``:
23
+ There are two main templates that replace the defaults in ``pydata-sphinx-theme ``:
24
24
25
25
.. code-block ::
26
26
27
- navbar_start = mpl_navbar_logo.html
28
27
navbar_center = mpl_nav_bar.html
29
28
navbar_end = mpl_icon_links.html
30
29
31
- Note that the option `` html_logo `` need not be specified as it is included
32
- in `` mpl_sphinx_theme/mpl_navbar_logo.html ``. The logo is stored at
33
- ``mpl_sphinx_theme/static/images/logo2 .svg ``.
30
+ Note that the logo options need not be specified as they are included in theme
31
+ initialization. The logo is stored at
32
+ ``mpl_sphinx_theme/static/logo_{light,dark} .svg ``.
34
33
35
34
To change the top navbar, edit ``mpl_sphinx_theme/mpl_nav_bar.html ``
36
35
@@ -77,4 +76,4 @@ Configuration for this demo
77
76
78
77
The full ``conf.py `` is
79
78
80
- .. literalinclude :: conf.py
79
+ .. literalinclude :: conf.py
Original file line number Diff line number Diff line change 4
4
5
5
6
6
def set_config_defaults (app ):
7
-
7
+ """Set default logo in theme options."""
8
8
try :
9
9
theme = app .builder .theme_options
10
10
except AttributeError :
@@ -17,7 +17,7 @@ def set_config_defaults(app):
17
17
if "image_dark" not in logo :
18
18
logo ["image_dark" ] = "_static/logo_dark.svg"
19
19
if "image_light" not in logo :
20
- logo ["image_light" ] = "_static/logo2 .svg"
20
+ logo ["image_light" ] = "_static/logo_light .svg"
21
21
if "link" not in logo :
22
22
logo ["link" ] = "https://matplotlib.org/stable/"
23
23
theme ["logo" ] = logo
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ stylesheet = css/style.css
4
4
5
5
[options]
6
6
navbar_links = absolute
7
- # navbar_start = mpl_navbar_logo.html
8
7
navbar_center = mpl_nav_bar.html
9
8
navbar_end = theme-switcher.html, mpl_icon_links.html
10
- logo = images/logo2 .svg
9
+ logo = logo_light .svg
You can’t perform that action at this time.
0 commit comments