refactor: site code reads the repo root from core

This commit is contained in:
Abdessamad Derraz committed 2026-11-18 19:31:27 +01:00
1 parent d50dfc36e2
commit ab0265408c
13 files changed
+31 -23

No files matched your search

+2 -1
View File
@@ -43,8 +43,9 @@ sys.path.insert(0, str(Path(__file__).resolve().parent))
import siteinputs
import sitemarkup as markup
from core.paths import REPO_ROOT
ROOT = Path(__file__).resolve().parent.parent
ROOT = REPO_ROOT
PLACEHOLDER = re.compile(r"(?m)^([ \t]*)<!--\s*image:\s*([A-Za-z0-9_-]+)\s*-->[ \t]*$")
PLACEHOLDER_ANYWHERE = re.compile(r"<!--\s*image:\s*([A-Za-z0-9_-]+)\s*-->")