Restructured JSON schemas

This commit is contained in:
squidfunk 2022-03-06 11:45:09 +01:00
parent d023e49593
commit 3ea15d7379
11 changed files with 65 additions and 80 deletions

View File

@ -6,35 +6,28 @@
"items": {
"oneOf": [
{
"$ref": "https://raw.githubusercontent.com/mondeja/mkdocs-include-markdown-plugin/master/schema.json"
"$ref": "#/definitions/built-in"
},
{
"$ref": "plugins/git-revision-date.json"
"$ref": "#/definitions/external"
},
{
"$ref": "plugins/git-revision-date-localized.json"
},
{
"$ref": "https://mondeja.github.io/mkdocs-mdpo-plugin/schema.json"
},
{
"$ref": "plugins/minify.json"
"$ref": "#/definitions/external-community"
}
]
},
"uniqueItems": true,
"minItems": 1,
"definitions": {
"built-in": {
"description": "Built-in plugins",
"oneOf": [
{
"$ref": "plugins/offline.json"
},
{
"$ref": "plugins/privacy.json"
},
{
"$ref": "plugins/redirects.json"
},
{
"$ref": "https://raw.githubusercontent.com/mondeja/mkdocs-material-relative-language-selector/master/schema.json"
},
{
"$ref": "https://guts.github.io/mkdocs-rss-plugin/schema.json"
},
{
"$ref": "plugins/search.json"
},
@ -46,6 +39,39 @@
}
]
},
"uniqueItems": true,
"minItems": 1
"external": {
"description": "External plugins, schema provided by us",
"oneOf": [
{
"$ref": "plugins/external/git-revision-date.json"
},
{
"$ref": "plugins/external/git-revision-date-localized.json"
},
{
"$ref": "plugins/external/minify.json"
},
{
"$ref": "plugins/external/redirects.json"
}
]
},
"external-community": {
"description": "External plugins, schema provided by the community",
"oneOf": [
{
"$ref": "https://raw.githubusercontent.com/mondeja/mkdocs-include-markdown-plugin/master/schema.json"
},
{
"$ref": "https://mondeja.github.io/mkdocs-mdpo-plugin/schema.json"
},
{
"$ref": "https://raw.githubusercontent.com/mondeja/mkdocs-material-relative-language-selector/master/schema.json"
},
{
"$ref": "https://guts.github.io/mkdocs-rss-plugin/schema.json"
}
]
}
}
}

View File

@ -748,11 +748,7 @@
"$ref": "assets/fonts.json"
}
},
"additionalProperties": false,
"required": [
"text",
"code"
]
"additionalProperties": false
},
{
"title": "Disable Google Fonts",

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -214,7 +214,7 @@
</script>
{% endblock %}
{% block scripts %}
<script src="{{ 'assets/javascripts/bundle.a7a86d2a.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.5b261bfc.min.js' | url }}"></script>
{% for path in config["extra_javascript"] %}
<script src="{{ path | url }}"></script>
{% endfor %}