Skip to content

Commit 73c67d7

Browse files
authored
Merge pull request #6381 from AdrianoKF/6378-json-schema-neoteroi
Added mkdocs.yml JSON schema support for `sane_lists` and Neoteroi markdown extensions
2 parents 5fd86bd + 3d76c89 commit 73c67d7

File tree

2 files changed

+33
-4
lines changed

2 files changed

+33
-4
lines changed

docs/schema/extensions.json

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,36 @@
44
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/",
55
"type": "array",
66
"items": {
7-
"oneOf": [
7+
"anyOf": [
88
{
9-
"$ref": "extensions/markdown.json"
9+
"$ref": "#/$defs/external"
1010
},
1111
{
12-
"$ref": "extensions/pymdownx.json"
12+
"$ref": "#/$defs/external-community"
1313
}
1414
]
1515
},
1616
"uniqueItems": true,
17-
"minItems": 1
17+
"minItems": 1,
18+
"$defs": {
19+
"external": {
20+
"description": "External markdown extensions, schema provided by us",
21+
"anyOf": [
22+
{
23+
"$ref": "extensions/markdown.json"
24+
},
25+
{
26+
"$ref": "extensions/pymdownx.json"
27+
}
28+
]
29+
},
30+
"external-community": {
31+
"description": "External markdown extensions, schema provided by our community",
32+
"anyOf": [
33+
{
34+
"$ref": "https://raw.githubusercontent.com/Neoteroi/mkdocs-plugins/main/docs/extensions-schema.json"
35+
}
36+
]
37+
}
38+
}
1839
}

docs/schema/extensions/markdown.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@
5959
"md_in_html"
6060
]
6161
},
62+
{
63+
"title": "Sane Lists – Python Markdown",
64+
"markdownDescription": "https://python-markdown.github.io/extensions/sane_lists/",
65+
"enum": [
66+
"markdown.extensions.sane_lists",
67+
"sane_lists"
68+
]
69+
},
6270
{
6371
"title": "Tables – Python Markdown",
6472
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown/#tables",

0 commit comments

Comments
 (0)