1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-12 01:50:52 +01:00

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",
"title": "Literate nav plugin",
"title": "Literate navigation plugin",
"oneOf": [
{
"markdownDescription": "https://github.com/oprypin/mkdocs-literate-nav",
"enum": [
"literate-nav"
]
},
{
"type": "object",
"properties": {
"literate-nav": {
@ -25,3 +33,5 @@
},
"additionalProperties": false
}
]
}

View File

@ -1,6 +1,14 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"title": "Macros plugin",
"oneOf": [
{
"markdownDescription": "https://github.com/oprypin/mkdocs-literate-nav",
"enum": [
"literate-nav"
]
},
{
"type": "object",
"properties": {
"macros": {
@ -8,13 +16,13 @@
"type": "object",
"properties": {
"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",
"type": "string",
"default": "main"
},
"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",
"type": "array"
},
@ -60,3 +68,5 @@
},
"additionalProperties": false
}
]
}