From 78e7e8f3fe44ae03f81dabb612db0cbc1d88add6 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sun, 27 Feb 2022 15:15:02 +0100 Subject: [PATCH] Updated JSON schema --- docs/schema/plugins.json | 3 +++ docs/schema/plugins/offline.json | 31 +++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 docs/schema/plugins/offline.json diff --git a/docs/schema/plugins.json b/docs/schema/plugins.json index 469364296..0696d1404 100644 --- a/docs/schema/plugins.json +++ b/docs/schema/plugins.json @@ -14,6 +14,9 @@ { "$ref": "plugins/minify.json" }, + { + "$ref": "plugins/offline.json" + }, { "$ref": "plugins/privacy.json" }, diff --git a/docs/schema/plugins/offline.json b/docs/schema/plugins/offline.json new file mode 100644 index 000000000..daa53b716 --- /dev/null +++ b/docs/schema/plugins/offline.json @@ -0,0 +1,31 @@ +{ + "$schema": "https://json-schema.org/draft-07/schema", + "title": "Built-in offline plugin", + "oneOf": [ + { + "markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/building-for-offline-usage/", + "enum": [ + "offline" + ] + }, + { + "type": "object", + "properties": { + "offline": { + "markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/building-for-offline-usage/", + "type": "object", + "properties": { + "enabled": { + "title": "Enable plugin", + "markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/building-for-offline-usage/#enabled", + "type": "boolean", + "default": true + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + } + ] +}