Skip to content

Commit

Permalink
Updated JSON schema (#7150)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vorburger committed May 3, 2024
1 parent 0e0a678 commit b0c5fe6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit b0c5fe6

@Abderion
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI you seem to have accidentally introduced a trailing comma on line 100.

This is causing my JSON parser to fail 😢

This is my first time using this library (and really contributing at all to any public repository), so please forgive me if this isn't the right place to point this out!

Please sign in to comment.