From de81a90794e659f996a85e29f09f4471be98fc98 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Mon, 21 Feb 2022 12:03:36 +0100 Subject: [PATCH] Added privacy plugin to JSON schema --- docs/schema/plugins.json | 3 +++ docs/schema/plugins/privacy.json | 37 ++++++++++++++++++++++++++++++++ docs/schema/plugins/social.json | 3 ++- 3 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 docs/schema/plugins/privacy.json diff --git a/docs/schema/plugins.json b/docs/schema/plugins.json index f4e899378..469364296 100644 --- a/docs/schema/plugins.json +++ b/docs/schema/plugins.json @@ -14,6 +14,9 @@ { "$ref": "plugins/minify.json" }, + { + "$ref": "plugins/privacy.json" + }, { "$ref": "plugins/redirects.json" }, diff --git a/docs/schema/plugins/privacy.json b/docs/schema/plugins/privacy.json new file mode 100644 index 000000000..98929317f --- /dev/null +++ b/docs/schema/plugins/privacy.json @@ -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 + } + ] +} diff --git a/docs/schema/plugins/social.json b/docs/schema/plugins/social.json index c40807a68..b062cbf61 100644 --- a/docs/schema/plugins/social.json +++ b/docs/schema/plugins/social.json @@ -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",