Added default variants for plugins to schema

This commit is contained in:
squidfunk 2022-12-17 23:00:06 +01:00
parent 6d99740536
commit 65501ffc93
2 changed files with 89 additions and 69 deletions

View File

@ -1,6 +1,14 @@
{ {
"$schema": "http://json-schema.org/draft-07/schema", "$schema": "http://json-schema.org/draft-07/schema",
"title": "Literate nav plugin", "title": "Literate navigation plugin",
"oneOf": [
{
"markdownDescription": "https://github.com/oprypin/mkdocs-literate-nav",
"enum": [
"literate-nav"
]
},
{
"type": "object", "type": "object",
"properties": { "properties": {
"literate-nav": { "literate-nav": {
@ -25,3 +33,5 @@
}, },
"additionalProperties": false "additionalProperties": false
} }
]
}

View File

@ -1,6 +1,14 @@
{ {
"$schema": "http://json-schema.org/draft-07/schema", "$schema": "http://json-schema.org/draft-07/schema",
"title": "Macros plugin", "title": "Macros plugin",
"oneOf": [
{
"markdownDescription": "https://github.com/oprypin/mkdocs-literate-nav",
"enum": [
"literate-nav"
]
},
{
"type": "object", "type": "object",
"properties": { "properties": {
"macros": { "macros": {
@ -8,13 +16,13 @@
"type": "object", "type": "object",
"properties": { "properties": {
"module_name": { "module_name": {
"title": "Name of the Python module containing macros, filters and variables.", "title": "Name of the Python module containing macros, filters and variables",
"markdownDescription": "https://mkdocs-macros-plugin.readthedocs.io/en/latest/#configuration-of-the-plugin", "markdownDescription": "https://mkdocs-macros-plugin.readthedocs.io/en/latest/#configuration-of-the-plugin",
"type": "string", "type": "string",
"default": "main" "default": "main"
}, },
"modules": { "modules": {
"title": "List of preinstalled Python modules, i.e. listed by `pip list`.", "title": "List of preinstalled Python modules, i.e. listed by `pip list`",
"markdownDescription": "https://mkdocs-macros-plugin.readthedocs.io/en/latest/#configuration-of-the-plugin", "markdownDescription": "https://mkdocs-macros-plugin.readthedocs.io/en/latest/#configuration-of-the-plugin",
"type": "array" "type": "array"
}, },
@ -60,3 +68,5 @@
}, },
"additionalProperties": false "additionalProperties": false
} }
]
}