Skip to content

Commit

Permalink
Merge pull request #6381 from AdrianoKF/6378-json-schema-neoteroi
Browse files Browse the repository at this point in the history
Added mkdocs.yml JSON schema support for `sane_lists` and Neoteroi markdown extensions
  • Loading branch information
squidfunk authored Nov 22, 2023
2 parents 5fd86bd + 3d76c89 commit 73c67d7
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 4 deletions.
29 changes: 25 additions & 4 deletions docs/schema/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +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": "#/$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"
}
]
}
}
}
8 changes: 8 additions & 0 deletions docs/schema/extensions/markdown.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 73c67d7

Please sign in to comment.