From fe67ca6afc1193beaf20d2e051ad59aa69f31d2b Mon Sep 17 00:00:00 2001 From: luisaFelixSalles Date: Mon, 21 Oct 2024 11:32:43 +0200 Subject: [PATCH] adapt logo for light and dark modes --- doc/source/conf.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 4042e35481c..c67aee8a0a6 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -7,7 +7,7 @@ import pyvista from ansys.dpf.core import __version__, server, server_factory from ansys.dpf.core.examples import get_example_required_minimum_dpf_version -from ansys_sphinx_theme import pyansys_logo_black, ansys_favicon, get_version_match +from ansys_sphinx_theme import ansys_favicon, get_version_match, pyansys_logo_light_mode, pyansys_logo_dark_mode # Manage errors pyvista.set_error_output_file("errors.txt") @@ -193,9 +193,12 @@ def reset_servers(gallery_conf, fname, when): # -- Options for HTML output ------------------------------------------------- html_short_title = html_title = "PyDPF-Core" html_theme = "ansys_sphinx_theme" -html_logo = pyansys_logo_black html_favicon = ansys_favicon html_theme_options = { + "logo": { + "image_dark": pyansys_logo_dark_mode, + "image_light": pyansys_logo_light_mode, + }, "github_url": "https://github.com/ansys/pydpf-core", "show_prev_next": False, "show_breadcrumbs": True,