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