We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3bf5e06 commit 26a261dCopy full SHA for 26a261d
src/pydata_sphinx_theme/__init__.py
@@ -1168,6 +1168,10 @@ def copy_logo_images(app: Sphinx, exception=None) -> None:
1168
path_image = logo.get(f"image_{kind}")
1169
if not path_image or isurl(path_image):
1170
continue
1171
+ if (staticdir / Path(path_image).name).exists():
1172
+ # file already exists in static dir e.g. because a theme has
1173
+ # bundled the logo and installed it there
1174
+ continue
1175
if not (Path(app.srcdir) / path_image).exists():
1176
logger.warning(f"Path to {kind} image logo does not exist: {path_image}")
1177
# Ensure templates cannot be passed for logo path to avoid security vulnerability
0 commit comments