Replace Neoteroi markdown extensions schema with external URL

This commit is contained in:
Adrian Rumpold 2023-11-22 08:03:04 +01:00
parent 6b3accd2a7
commit 3d76c89483
2 changed files with 25 additions and 34 deletions

View File

@ -4,18 +4,36 @@
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/", "markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/",
"type": "array", "type": "array",
"items": { "items": {
"oneOf": [ "anyOf": [
{ {
"$ref": "extensions/markdown.json" "$ref": "#/$defs/external"
}, },
{ {
"$ref": "extensions/pymdownx.json" "$ref": "#/$defs/external-community"
},
{
"$ref": "extensions/external/neoteroi.json"
} }
] ]
}, },
"uniqueItems": true, "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"
}
]
}
}
} }

View File

@ -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"
}
]
}