77import pyvista
88from ansys .dpf .core import __version__ , server , server_factory
99from ansys .dpf .core .examples import get_example_required_minimum_dpf_version
10- from ansys_sphinx_theme import pyansys_logo_light_mode , 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
1313pyvista .set_error_output_file ("errors.txt" )
@@ -194,7 +194,6 @@ def reset_servers(gallery_conf, fname, when):
194194# -- Options for HTML output -------------------------------------------------
195195html_short_title = html_title = "PyDPF-Core"
196196html_theme = "ansys_sphinx_theme"
197- html_logo = pyansys_logo_light_mode
198197html_favicon = ansys_favicon
199198html_theme_options = {
200199 "github_url" : "https://github.com/ansys/pydpf-core" ,
@@ -203,6 +202,10 @@ def reset_servers(gallery_conf, fname, when):
203202 "additional_breadcrumbs" : [
204203 ("PyAnsys" , "https://docs.pyansys.com/" ),
205204 ],
205+ "logo" : {
206+ "image_dark" : pyansys_logo_dark_mode ,
207+ "image_light" : pyansys_logo_light_mode ,
208+ },
206209 "switcher" : {
207210 "json_url" : f"https://{ cname } /versions.json" ,
208211 "version_match" : get_version_match (__version__ ),
0 commit comments