From b0c5fe6aeffabb270465604e50582e8cdea9889c Mon Sep 17 00:00:00 2001 From: Michael Vorburger Date: Fri, 3 May 2024 18:48:34 +0200 Subject: [PATCH] Updated JSON schema (#7150) Since https://github.com/mkdocs/mkdocs/pull/92 for https://github.com/mkdocs/mkdocs/issues/91, an extra_javascript item does not necessarily have to end in *.js; e.g. in https://github.com/enola-dev/enola/pull/669 I have a extra_javascript: - https://unpkg.com/mustache@latest, which this flags up as wrong - although it's not (it works great); ergo it's better to remove this constraint. --- docs/schema.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/schema.json b/docs/schema.json index b8d51395f..8aded7b7c 100644 --- a/docs/schema.json +++ b/docs/schema.json @@ -96,9 +96,8 @@ "markdownDescription": "https://squidfunk.github.io/mkdocs-material/customization/#additional-javascript", "type": "array", "items": { - "title": "Path to JavaScript file", + "title": "Path to JavaScript file (may be local or absolute URL to external JS)", "markdownDescription": "https://squidfunk.github.io/mkdocs-material/customization/#additional-javascript", - "pattern": "\\.m?js($|\\?)" }, "uniqueItems": true, "minItems": 1