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 + } + ] +}