Skip to content

Commit 3ea15d7

Browse files
committed
Restructured JSON schemas
1 parent d023e49 commit 3ea15d7

File tree

11 files changed

+65
-80
lines changed

11 files changed

+65
-80
lines changed

docs/schema/plugins.json

Lines changed: 60 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -6,46 +6,72 @@
66
"items": {
77
"oneOf": [
88
{
9-
"$ref": "https://raw.githubusercontent.com/mondeja/mkdocs-include-markdown-plugin/master/schema.json"
9+
"$ref": "#/definitions/built-in"
1010
},
1111
{
12-
"$ref": "plugins/git-revision-date.json"
12+
"$ref": "#/definitions/external"
1313
},
1414
{
15-
"$ref": "plugins/git-revision-date-localized.json"
16-
},
17-
{
18-
"$ref": "https://mondeja.github.io/mkdocs-mdpo-plugin/schema.json"
19-
},
20-
{
21-
"$ref": "plugins/minify.json"
22-
},
23-
{
24-
"$ref": "plugins/offline.json"
25-
},
26-
{
27-
"$ref": "plugins/privacy.json"
28-
},
29-
{
30-
"$ref": "plugins/redirects.json"
31-
},
32-
{
33-
"$ref": "https://raw.githubusercontent.com/mondeja/mkdocs-material-relative-language-selector/master/schema.json"
34-
},
35-
{
36-
"$ref": "https://guts.github.io/mkdocs-rss-plugin/schema.json"
37-
},
38-
{
39-
"$ref": "plugins/search.json"
40-
},
41-
{
42-
"$ref": "plugins/social.json"
43-
},
44-
{
45-
"$ref": "plugins/tags.json"
15+
"$ref": "#/definitions/external-community"
4616
}
4717
]
4818
},
4919
"uniqueItems": true,
50-
"minItems": 1
20+
"minItems": 1,
21+
"definitions": {
22+
"built-in": {
23+
"description": "Built-in plugins",
24+
"oneOf": [
25+
{
26+
"$ref": "plugins/offline.json"
27+
},
28+
{
29+
"$ref": "plugins/privacy.json"
30+
},
31+
{
32+
"$ref": "plugins/search.json"
33+
},
34+
{
35+
"$ref": "plugins/social.json"
36+
},
37+
{
38+
"$ref": "plugins/tags.json"
39+
}
40+
]
41+
},
42+
"external": {
43+
"description": "External plugins, schema provided by us",
44+
"oneOf": [
45+
{
46+
"$ref": "plugins/external/git-revision-date.json"
47+
},
48+
{
49+
"$ref": "plugins/external/git-revision-date-localized.json"
50+
},
51+
{
52+
"$ref": "plugins/external/minify.json"
53+
},
54+
{
55+
"$ref": "plugins/external/redirects.json"
56+
}
57+
]
58+
},
59+
"external-community": {
60+
"description": "External plugins, schema provided by the community",
61+
"oneOf": [
62+
{
63+
"$ref": "https://raw.githubusercontent.com/mondeja/mkdocs-include-markdown-plugin/master/schema.json"
64+
},
65+
{
66+
"$ref": "https://mondeja.github.io/mkdocs-mdpo-plugin/schema.json"
67+
},
68+
{
69+
"$ref": "https://raw.githubusercontent.com/mondeja/mkdocs-material-relative-language-selector/master/schema.json"
70+
},
71+
{
72+
"$ref": "https://guts.github.io/mkdocs-rss-plugin/schema.json"
73+
}
74+
]
75+
}
76+
}
5177
}

docs/schema/theme.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -748,11 +748,7 @@
748748
"$ref": "assets/fonts.json"
749749
}
750750
},
751-
"additionalProperties": false,
752-
"required": [
753-
"text",
754-
"code"
755-
]
751+
"additionalProperties": false
756752
},
757753
{
758754
"title": "Disable Google Fonts",

material/assets/javascripts/bundle.144dcfcd.min.js renamed to material/assets/javascripts/bundle.5b261bfc.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/assets/javascripts/bundle.144dcfcd.min.js.map renamed to material/assets/javascripts/bundle.5b261bfc.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/assets/javascripts/bundle.a7a86d2a.min.js

Lines changed: 0 additions & 29 deletions
This file was deleted.

material/assets/javascripts/bundle.a7a86d2a.min.js.map

Lines changed: 0 additions & 8 deletions
This file was deleted.

material/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214
</script>
215215
{% endblock %}
216216
{% block scripts %}
217-
<script src="{{ 'assets/javascripts/bundle.a7a86d2a.min.js' | url }}"></script>
217+
<script src="{{ 'assets/javascripts/bundle.5b261bfc.min.js' | url }}"></script>
218218
{% for path in config["extra_javascript"] %}
219219
<script src="{{ path | url }}"></script>
220220
{% endfor %}

0 commit comments

Comments
 (0)