Move extensions to their own folder (#3773)

This commit is contained in:
Kendell R 2024-11-11 15:47:00 -08:00 committed by GitHub
parent f1af727e22
commit 2d18034759
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ class SEODirective(Directive):
if not image.startswith("/"):
local_img = f"/images/{image}"
image = "/_images/" + image
p = Path(__file__).parent / local_img[1:]
p = Path(__file__).parent.parent / local_img[1:]
if not p.is_file():
raise ValueError(f"File {p} for seo tag does not exist {self.state.document}")

View File

@ -25,7 +25,7 @@ import os
import sys
sys.path.append(os.path.abspath("."))
sys.path.append(os.path.abspath("_extensions"))
# -- General configuration ------------------------------------------------