diff --git a/docs/schema/extensions.json b/docs/schema/extensions.json index a237216d8..6e4b128b5 100644 --- a/docs/schema/extensions.json +++ b/docs/schema/extensions.json @@ -4,18 +4,36 @@ "markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/", "type": "array", "items": { - "oneOf": [ + "anyOf": [ { - "$ref": "extensions/markdown.json" + "$ref": "#/$defs/external" }, { - "$ref": "extensions/pymdownx.json" - }, - { - "$ref": "extensions/external/neoteroi.json" + "$ref": "#/$defs/external-community" } ] }, "uniqueItems": true, - "minItems": 1 + "minItems": 1, + "$defs": { + "external": { + "description": "External markdown extensions, schema provided by us", + "anyOf": [ + { + "$ref": "extensions/markdown.json" + }, + { + "$ref": "extensions/pymdownx.json" + } + ] + }, + "external-community": { + "description": "External markdown extensions, schema provided by our community", + "anyOf": [ + { + "$ref": "https://raw.githubusercontent.com/Neoteroi/mkdocs-plugins/main/docs/extensions-schema.json" + } + ] + } + } } diff --git a/docs/schema/extensions/external/neoteroi.json b/docs/schema/extensions/external/neoteroi.json deleted file mode 100644 index de9543663..000000000 --- a/docs/schema/extensions/external/neoteroi.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft-07/schema", - "title": "Neoteroi markdown extensions", - "markdownDescription": "https://www.neoteroi.dev/mkdocs-plugins", - "oneOf": [ - { - "title": "Cards – Neoteroi Markdown", - "markdownDescription": "https://www.neoteroi.dev/mkdocs-plugins/cards/", - "const": "neoteroi.cards" - }, - { - "title": "Timeline – Neoteroi Markdown", - "markdownDescription": "https://www.neoteroi.dev/mkdocs-plugins/timeline/", - "const": "neoteroi.timeline" - }, - { - "title": "Gantt – Neoteroi Markdown", - "markdownDescription": "https://www.neoteroi.dev/mkdocs-plugins/gantt/", - "const": "neoteroi.projects" - }, - { - "title": "Spantable – Neoteroi Markdown", - "markdownDescription": "https://www.neoteroi.dev/mkdocs-plugins/spantable/", - "const": "neoteroi.spantable" - } - ] -}