Skip to content

Commit f353a99

Browse files
adapt logo for light and dark modes (#1820)
1 parent 3ad9835 commit f353a99

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

doc/source/conf.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import pyvista
88
from ansys.dpf.core import __version__, server, server_factory
99
from ansys.dpf.core.examples import get_example_required_minimum_dpf_version
10-
from ansys_sphinx_theme import pyansys_logo_black, ansys_favicon, get_version_match
10+
from ansys_sphinx_theme import ansys_favicon, get_version_match, pyansys_logo_light_mode, pyansys_logo_dark_mode
1111

1212
# Manage errors
1313
pyvista.set_error_output_file("errors.txt")
@@ -193,9 +193,12 @@ def reset_servers(gallery_conf, fname, when):
193193
# -- Options for HTML output -------------------------------------------------
194194
html_short_title = html_title = "PyDPF-Core"
195195
html_theme = "ansys_sphinx_theme"
196-
html_logo = pyansys_logo_black
197196
html_favicon = ansys_favicon
198197
html_theme_options = {
198+
"logo": {
199+
"image_dark": pyansys_logo_dark_mode,
200+
"image_light": pyansys_logo_light_mode,
201+
},
199202
"github_url": "https://github.com/ansys/pydpf-core",
200203
"show_prev_next": False,
201204
"show_breadcrumbs": True,

0 commit comments

Comments
 (0)