mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Restructured JSON schemas
This commit is contained in:
parent
d023e49593
commit
3ea15d7379
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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
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>
|
||||
{% 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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user