mirror of
https://github.com/zensical/zensical.git
synced 2026-09-25 07:45:36 +00:00
zensical:fix - config parser expects name to be zensical.toml
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user