From ae511115fcc5866727d20669aaee58ca54654557 Mon Sep 17 00:00:00 2001 From: TetraTheta <37061801+TetraTheta@users.noreply.github.com> Date: Sat, 17 Dec 2022 02:50:43 +0900 Subject: [PATCH] Add 'on_error_fail' to macros schema But it supports '!env' but I don't know how to support it on schema --- docs/schema/plugins/external/macros.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/schema/plugins/external/macros.json b/docs/schema/plugins/external/macros.json index 13f9578b2..80a1f4e74 100644 --- a/docs/schema/plugins/external/macros.json +++ b/docs/schema/plugins/external/macros.json @@ -47,6 +47,12 @@ "title": "Non-standard Jinja2 marker for end of variable", "markdownDescription": "https://mkdocs-macros-plugin.readthedocs.io/en/latest/advanced/#solution-4-altering-the-syntax-of-jinja2-for-mkdocs-macros", "type": "string" + }, + "on_error_fail": { + "title": "Stop build/serve when macro error happens", + "markdownDescription": "https://mkdocs-macros-plugin.readthedocs.io/en/latest/advanced/#can-i-make-mkdocs-macros-build-process-to-fail-in-case-of-error-instead-of-displaying-the-error-on-the-page", + "type": "boolean", + "default": false } }, "additionalProperties": false