From ed29d882c22325e81bfa8af28c533ba80bc619e1 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Tue, 18 Nov 2025 18:59:45 +0100 Subject: [PATCH] zensical:fix - config parser expects name to be `zensical.toml` Signed-off-by: squidfunk --- python/zensical/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/zensical/config.py b/python/zensical/config.py index 4e4e965..d08e2bc 100644 --- a/python/zensical/config.py +++ b/python/zensical/config.py @@ -77,7 +77,9 @@ def parse_config(path: str) -> dict: """ Parse configuration file. """ - if path.endswith("zensical.toml"): + # Decide by extension; no need to convert to Path + _, ext = os.path.splitext(path) + if ext.lower() == ".toml": return parse_zensical_config(path) else: return parse_mkdocs_config(path)