1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-12 01:50:52 +01:00

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,46 +6,72 @@
"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": "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"
},
{
"$ref": "plugins/social.json"
},
{
"$ref": "plugins/tags.json"
"$ref": "#/definitions/external-community"
}
]
},
"uniqueItems": true,
"minItems": 1
"minItems": 1,
"definitions": {
"built-in": {
"description": "Built-in plugins",
"oneOf": [
{
"$ref": "plugins/offline.json"
},
{
"$ref": "plugins/privacy.json"
},
{
"$ref": "plugins/search.json"
},
{
"$ref": "plugins/social.json"
},
{
"$ref": "plugins/tags.json"
}
]
},
"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 %}