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:
parent
d023e49593
commit
3ea15d7379
@ -6,46 +6,72 @@
|
|||||||
"items": {
|
"items": {
|
||||||
"oneOf": [
|
"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": "#/definitions/external-community"
|
||||||
},
|
|
||||||
{
|
|
||||||
"$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"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"uniqueItems": true,
|
"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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -748,11 +748,7 @@
|
|||||||
"$ref": "assets/fonts.json"
|
"$ref": "assets/fonts.json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false,
|
"additionalProperties": false
|
||||||
"required": [
|
|
||||||
"text",
|
|
||||||
"code"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Disable Google Fonts",
|
"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
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -214,7 +214,7 @@
|
|||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block scripts %}
|
{% 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"] %}
|
{% for path in config["extra_javascript"] %}
|
||||||
<script src="{{ path | url }}"></script>
|
<script src="{{ path | url }}"></script>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user