mirror of
https://github.com/zensical/zensical.git
synced 2026-05-03 09:30:43 +00:00
fix: shim for MkDocs validation syntax overrides Zensical's (#607)
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
This commit is contained in:
@@ -418,10 +418,10 @@ def _apply_defaults(config: dict, path: str) -> dict:
|
||||
validation, config["validation"]
|
||||
)
|
||||
|
||||
# Read nested links validation settings, if present
|
||||
# Hoist links configuration to the top level, if present
|
||||
input = config["validation"]
|
||||
if "links" in input:
|
||||
input = input["links"]
|
||||
input.update(input.pop("links"))
|
||||
|
||||
# We only support a subset of MkDocs' validation settings, so we ignore
|
||||
# the ones we don't support. We also map info to warn for simplicity.
|
||||
|
||||
Reference in New Issue
Block a user