Merge pull request #6381 from AdrianoKF/6378-json-schema-neoteroi

Added mkdocs.yml JSON schema support for `sane_lists` and Neoteroi markdown extensions
This commit is contained in:
Martin Donath 2023-11-22 09:53:46 +01:00 committed by GitHub
commit 73c67d774b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 4 deletions

View File

@ -4,7 +4,21 @@
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/",
"type": "array",
"items": {
"oneOf": [
"anyOf": [
{
"$ref": "#/$defs/external"
},
{
"$ref": "#/$defs/external-community"
}
]
},
"uniqueItems": true,
"minItems": 1,
"$defs": {
"external": {
"description": "External markdown extensions, schema provided by us",
"anyOf": [
{
"$ref": "extensions/markdown.json"
},
@ -13,6 +27,13 @@
}
]
},
"uniqueItems": true,
"minItems": 1
"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

@ -59,6 +59,14 @@
"md_in_html"
]
},
{
"title": "Sane Lists Python Markdown",
"markdownDescription": "https://python-markdown.github.io/extensions/sane_lists/",
"enum": [
"markdown.extensions.sane_lists",
"sane_lists"
]
},
{
"title": "Tables Python Markdown",
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/#tables",