Added privacy plugin to JSON schema

This commit is contained in:
squidfunk 2022-02-21 12:03:36 +01:00
parent b14a5233e7
commit de81a90794
3 changed files with 42 additions and 1 deletions

View File

@ -14,6 +14,9 @@
{
"$ref": "plugins/minify.json"
},
{
"$ref": "plugins/privacy.json"
},
{
"$ref": "plugins/redirects.json"
},

View File

@ -0,0 +1,37 @@
{
"$schema": "https://json-schema.org/draft-07/schema",
"title": "Built-in privacy plugin",
"oneOf": [
{
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/ensuring-data-privacy/",
"enum": [
"privacy"
]
},
{
"type": "object",
"properties": {
"privacy": {
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/ensuring-data-privacy/",
"type": "object",
"properties": {
"download": {
"title": "Download of external assets",
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/ensuring-data-privacy/#download",
"type": "boolean",
"default": true
},
"download_directory": {
"title": "Download directory for external assets",
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/ensuring-data-privacy/#download_directory",
"type": "string",
"default": "assets/externals"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
}

View File

@ -18,7 +18,8 @@
"cards": {
"title": "Social card generation",
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-social-cards/#cards",
"type": "boolean"
"type": "boolean",
"default": true
},
"cards_color": {
"title": "Social card color palette",