-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocgen.schema.json
98 lines (96 loc) · 4.21 KB
/
docgen.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://mcbe-utilities.github.io/docgen/docgen.schema.json",
"title": "JSON schema for MCBE Utilities docgen configuration files",
"definitions": {
"buildOptionsDefinition": {
"required": ["buildOptions"],
"properties": {
"buildOptions": {
"required": ["root", "out"],
"description": "Docgen build options.",
"markdownDescription": "Docgen build options.\n\n[See more](https://mcbe-utilities.github.io/docgen/CONFIG#buildOptions)",
"properties": {
"root": {
"description": "Specify the root folder in which all generated *.d.ts files are located.",
"markdownDescription": "Specify the root folder in which all generated *.d.ts files are located.\n\n[See more](https://mcbe-utilities.github.io/docgen/CONFIG#root)",
"type": "string"
},
"out": {
"description": "Specify the folder to output all generated MDX files to.",
"markdownDescription": "Specify the folder to output all generated MDX files to.\n\n[See more](https://mcbe-utilities.github.io/docgen/CONFIG#out)",
"type": "string"
},
"mixins": {
"description": "Specify a glob or an array of glob patterns pointing to files/folders to copy to the final output.",
"markdownDescription": "Specify a glob or an array of glob patterns pointing to files/folders to copy to the final output.\n\n[See more](https://mcbe-utilities.github.io/docgen/CONFIG#mixins)",
"minItems": 1,
"type": [
"string",
"array"
],
"items": {
"type": "string"
}
},
"resolvers": {
"description": "Provide an object of foreign module documentation resolvers.",
"markdownDescription": "Provide an object of foreign module documentation resolvers.\n\n[See more](https://mcbe-utilities.github.io/docgen/CONFIG#resolvers)",
"type": "object",
"additionalProperties": {
"type": [
"object",
"string"
],
"description": "Link to concatenate foreign object names to or an object with foreign objects and their respective links.",
"markdownDescription": "Link to concatenate foreign object names to or an object with foreign objects and their respective links..\n\n[See more](https://mcbe-utilities.github.io/docgen/CONFIG#resolvers)",
"additionalProperties": {
"description": "Respective link to foreign object.",
"markdownDescription": "Respective link to foreign object.\n\n[See more](https://mcbe-utilities.github.io/docgen/CONFIG#resolvers)",
"type": "string"
}
}
},
"ignore": {
"description": "Specify a glob or an array of glob ignore patterns.",
"markdownDescription": "Specify a glob or an array of glob ignore patterns.\n\n[See more](https://mcbe-utilities.github.io/docgen/CONFIG#ignore)",
"minItems": 1,
"type": [
"string",
"array"
],
"items": {
"type": "string"
}
},
"verbose": {
"description": "Enable verbose logging.",
"markdownDescription": "Enable verbose logging.\n\n[See more](https://mcbe-utilities.github.io/docgen/CONFIG#verbose)",
"type": "boolean",
"default": false
}
}
}
}
},
"styleOptionsDefinition": {
"properties": {
"styleOptions": {
"description": "Docgen style options.",
"markdownDescription": "Docgen style options.\n\n[See more](https://mcbe-utilities.github.io/docgen/CONFIG#styleOptions)",
"properties": {
}
}
}
}
},
"type": "object",
"allOf": [
{
"$ref": "#/definitions/buildOptionsDefinition"
},
{
"$ref": "#/definitions/styleOptionsDefinition"
}
]
}