Skip to content

Commit af81a9a

Browse files
committed
Updated JSON schema
1 parent 7c91d1b commit af81a9a

File tree

5 files changed

+54
-6
lines changed

5 files changed

+54
-6
lines changed

docs/schema/plugins.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@
4040
{
4141
"$ref": "plugins/privacy.json"
4242
},
43+
{
44+
"$ref": "plugins/projects.json"
45+
},
4346
{
4447
"$ref": "plugins/search.json"
4548
},

docs/schema/plugins/optimize.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424
"concurrency": {
2525
"title": "Concurrency (number of CPUs)",
2626
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/building-an-optimized-site/#+optimize.concurrency",
27-
"type": "number",
28-
"default": 1
27+
"type": "number"
2928
},
3029
"cache": {
3130
"title": "Enable caching",

docs/schema/plugins/privacy.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424
"concurrency": {
2525
"title": "Concurrency (number of CPUs)",
2626
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/ensuring-data-privacy/#+privacy.concurrency",
27-
"type": "number",
28-
"default": 1
27+
"type": "number"
2928
},
3029
"assets": {
3130
"title": "Process external assets",

docs/schema/plugins/projects.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"$schema": "https://json-schema.org/draft-07/schema",
3+
"title": "Built-in projects plugin",
4+
"oneOf": [
5+
{
6+
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/building-an-optimized-site/#built-in-projects-plugin",
7+
"enum": [
8+
"projects"
9+
]
10+
},
11+
{
12+
"type": "object",
13+
"properties": {
14+
"projects": {
15+
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/building-an-optimized-site/#built-in-projects-plugin",
16+
"type": "object",
17+
"properties": {
18+
"enabled": {
19+
"title": "Enable plugin",
20+
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/building-an-optimized-site/#+projects.enabled",
21+
"type": "boolean",
22+
"default": true
23+
},
24+
"concurrency": {
25+
"title": "Concurrency (number of CPUs)",
26+
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/building-an-optimized-site/#+projects.concurrency",
27+
"type": "number"
28+
},
29+
"projects": {
30+
"title": "Enable projects",
31+
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/building-an-optimized-site/#+projects.projects",
32+
"type": "boolean",
33+
"default": true
34+
},
35+
"projects_dir": {
36+
"title": "Projects directory",
37+
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/building-an-optimized-site/#+projects.projects_dir",
38+
"type": "string",
39+
"default": "projects"
40+
}
41+
},
42+
"additionalProperties": false
43+
}
44+
},
45+
"additionalProperties": false
46+
}
47+
]
48+
}

docs/schema/plugins/social.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424
"concurrency": {
2525
"title": "Concurrency (number of CPUs)",
2626
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/setting-up-social-cards/#+social.concurrency",
27-
"type": "number",
28-
"default": 1
27+
"type": "number"
2928
},
3029
"cards": {
3130
"title": "Social cards",

0 commit comments

Comments
 (0)