Skip to content

Commit b0c5fe6

Browse files
authored
Updated JSON schema (#7150)
Since mkdocs/mkdocs#92 for mkdocs/mkdocs#91, an extra_javascript item does not necessarily have to end in *.js; e.g. in enola-dev/enola#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.
1 parent 0e0a678 commit b0c5fe6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/schema.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,8 @@
9696
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/customization/#additional-javascript",
9797
"type": "array",
9898
"items": {
99-
"title": "Path to JavaScript file",
99+
"title": "Path to JavaScript file (may be local or absolute URL to external JS)",
100100
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/customization/#additional-javascript",
101-
"pattern": "\\.m?js($|\\?)"
102101
},
103102
"uniqueItems": true,
104103
"minItems": 1

0 commit comments

Comments
 (0)