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.
This commit is contained in:
Michael Vorburger 2024-05-03 18:48:34 +02:00 committed by GitHub
parent 0e0a678b78
commit b0c5fe6aef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -96,9 +96,8 @@
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/customization/#additional-javascript", "markdownDescription": "https://squidfunk.github.io/mkdocs-material/customization/#additional-javascript",
"type": "array", "type": "array",
"items": { "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", "markdownDescription": "https://squidfunk.github.io/mkdocs-material/customization/#additional-javascript",
"pattern": "\\.m?js($|\\?)"
}, },
"uniqueItems": true, "uniqueItems": true,
"minItems": 1 "minItems": 1