@cloudcannon/configuration-types 0.0.49 → 0.0.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cloudcannon-config.documentation.schema.json +89 -2
- package/dist/cloudcannon-config.latest.schema.json +117 -3
- package/dist/cloudcannon-config.legacy-eleventy.schema.json +98 -3
- package/dist/cloudcannon-config.legacy-hugo.schema.json +98 -3
- package/dist/cloudcannon-config.legacy-jekyll.schema.json +98 -3
- package/dist/cloudcannon-config.legacy-reader.schema.json +98 -3
- package/dist/cloudcannon-initial-site-settings.documentation.schema.json +116 -0
- package/dist/cloudcannon-initial-site-settings.schema.json +171 -0
- package/dist/cloudcannon-routing.documentation.schema.json +100 -0
- package/dist/cloudcannon-routing.schema.json +144 -0
- package/dist/cloudcannon-snippets-definitions.schema.json +279 -1
- package/dist/documentation.json +52021 -50645
- package/package.json +1 -1
- package/src/configuration.ts +6 -6
- package/src/index.ts +3 -24
- package/src/initial-site-settings.ts +82 -0
- package/src/routing.ts +92 -0
- package/src/snippets.ts +80 -0
- package/src/ssg.ts +23 -0
|
@@ -5,5 +5,283 @@
|
|
|
5
5
|
"propertyNames": {
|
|
6
6
|
"type": "string"
|
|
7
7
|
},
|
|
8
|
-
"additionalProperties": {
|
|
8
|
+
"additionalProperties": {
|
|
9
|
+
"$ref": "#/definitions/type.snippet-definition-value"
|
|
10
|
+
},
|
|
11
|
+
"definitions": {
|
|
12
|
+
"type.snippet-definition-value": {
|
|
13
|
+
"title": "Snippet Definition Value",
|
|
14
|
+
"description": "A reusable value that can be referenced in snippet templates via { ref: \"key\" } or { spread_ref: \"key\" }.",
|
|
15
|
+
"anyOf": [
|
|
16
|
+
{
|
|
17
|
+
"$ref": "#/definitions/type.snippet-format"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"$ref": "#/definitions/type.snippet-model"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"title": "Parser Model Array",
|
|
24
|
+
"description": "An array of model configurations, typically used for positional_args or named_args.",
|
|
25
|
+
"type": "array",
|
|
26
|
+
"items": {
|
|
27
|
+
"$ref": "#/definitions/type.snippet-model"
|
|
28
|
+
},
|
|
29
|
+
"markdownDescription": "An array of model configurations, typically used for positional_args or named_args."
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"title": "Select Values Array",
|
|
33
|
+
"description": "An array of select options, typically used for language lists.",
|
|
34
|
+
"type": "array",
|
|
35
|
+
"items": {
|
|
36
|
+
"$ref": "#/definitions/type.snippet-definition-select-value"
|
|
37
|
+
},
|
|
38
|
+
"markdownDescription": "An array of select options, typically used for language lists."
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"title": "String Value",
|
|
42
|
+
"description": "A string value, commonly used for shortcode_name, tag_name, content_key, and similar definitions.",
|
|
43
|
+
"type": "string",
|
|
44
|
+
"markdownDescription": "A string value, commonly used for shortcode_name, tag_name, content_key, and similar definitions."
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"title": "Number Value",
|
|
48
|
+
"description": "A numeric value.",
|
|
49
|
+
"type": "number",
|
|
50
|
+
"markdownDescription": "A numeric value."
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"title": "Boolean Value",
|
|
54
|
+
"description": "A boolean value.",
|
|
55
|
+
"type": "boolean",
|
|
56
|
+
"markdownDescription": "A boolean value."
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"title": "String Array",
|
|
60
|
+
"description": "An array of strings.",
|
|
61
|
+
"type": "array",
|
|
62
|
+
"items": {
|
|
63
|
+
"type": "string"
|
|
64
|
+
},
|
|
65
|
+
"markdownDescription": "An array of strings."
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"markdownDescription": "A reusable value that can be referenced in snippet templates via { ref: \"key\" } or { spread_ref: \"key\" }."
|
|
69
|
+
},
|
|
70
|
+
"type.snippet-format": {
|
|
71
|
+
"title": "Snippet Format",
|
|
72
|
+
"type": "object",
|
|
73
|
+
"properties": {
|
|
74
|
+
"root_boundary": {
|
|
75
|
+
"type": "object",
|
|
76
|
+
"properties": {
|
|
77
|
+
"start": {
|
|
78
|
+
"default": "",
|
|
79
|
+
"type": "string"
|
|
80
|
+
},
|
|
81
|
+
"end": {
|
|
82
|
+
"default": "",
|
|
83
|
+
"type": "string"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"additionalProperties": false
|
|
87
|
+
},
|
|
88
|
+
"root_value_boundary": {
|
|
89
|
+
"type": "object",
|
|
90
|
+
"properties": {
|
|
91
|
+
"start": {
|
|
92
|
+
"default": "",
|
|
93
|
+
"type": "string"
|
|
94
|
+
},
|
|
95
|
+
"end": {
|
|
96
|
+
"default": "",
|
|
97
|
+
"type": "string"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"additionalProperties": false
|
|
101
|
+
},
|
|
102
|
+
"root_value_boundary_optional": {
|
|
103
|
+
"type": "object",
|
|
104
|
+
"propertyNames": {
|
|
105
|
+
"type": "string"
|
|
106
|
+
},
|
|
107
|
+
"additionalProperties": {
|
|
108
|
+
"type": "boolean"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"root_value_delimiter": {
|
|
112
|
+
"type": "string"
|
|
113
|
+
},
|
|
114
|
+
"root_pair_delimiter": {
|
|
115
|
+
"type": "array",
|
|
116
|
+
"items": {
|
|
117
|
+
"type": "string"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"remove_empty_root_boundary": {
|
|
121
|
+
"type": "boolean"
|
|
122
|
+
},
|
|
123
|
+
"object_boundary": {
|
|
124
|
+
"type": "object",
|
|
125
|
+
"properties": {
|
|
126
|
+
"start": {
|
|
127
|
+
"default": "",
|
|
128
|
+
"type": "string"
|
|
129
|
+
},
|
|
130
|
+
"end": {
|
|
131
|
+
"default": "",
|
|
132
|
+
"type": "string"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"additionalProperties": false
|
|
136
|
+
},
|
|
137
|
+
"object_value_delimiter": {
|
|
138
|
+
"type": "string"
|
|
139
|
+
},
|
|
140
|
+
"object_pair_delimiter": {
|
|
141
|
+
"type": "string"
|
|
142
|
+
},
|
|
143
|
+
"array_boundary": {
|
|
144
|
+
"type": "object",
|
|
145
|
+
"properties": {
|
|
146
|
+
"start": {
|
|
147
|
+
"default": "",
|
|
148
|
+
"type": "string"
|
|
149
|
+
},
|
|
150
|
+
"end": {
|
|
151
|
+
"default": "",
|
|
152
|
+
"type": "string"
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"additionalProperties": false
|
|
156
|
+
},
|
|
157
|
+
"array_delimiter": {
|
|
158
|
+
"type": "string"
|
|
159
|
+
},
|
|
160
|
+
"string_boundary": {
|
|
161
|
+
"type": "array",
|
|
162
|
+
"items": {
|
|
163
|
+
"type": "string"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"string_escape_character": {
|
|
167
|
+
"type": "string"
|
|
168
|
+
},
|
|
169
|
+
"allow_booleans": {
|
|
170
|
+
"type": "boolean"
|
|
171
|
+
},
|
|
172
|
+
"allow_numbers": {
|
|
173
|
+
"type": "boolean"
|
|
174
|
+
},
|
|
175
|
+
"allow_implied_values": {
|
|
176
|
+
"type": "boolean"
|
|
177
|
+
},
|
|
178
|
+
"allow_null": {
|
|
179
|
+
"type": "boolean"
|
|
180
|
+
},
|
|
181
|
+
"forbidden_tokens": {
|
|
182
|
+
"type": "array",
|
|
183
|
+
"items": {
|
|
184
|
+
"type": "string"
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
"allowed_string_cases": {
|
|
188
|
+
"type": "object",
|
|
189
|
+
"properties": {
|
|
190
|
+
"any": {
|
|
191
|
+
"type": "boolean"
|
|
192
|
+
},
|
|
193
|
+
"leading_upper": {
|
|
194
|
+
"type": "boolean"
|
|
195
|
+
},
|
|
196
|
+
"leading_lower": {
|
|
197
|
+
"type": "boolean"
|
|
198
|
+
},
|
|
199
|
+
"lower": {
|
|
200
|
+
"type": "boolean"
|
|
201
|
+
},
|
|
202
|
+
"upper": {
|
|
203
|
+
"type": "boolean"
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"additionalProperties": false
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"additionalProperties": false
|
|
210
|
+
},
|
|
211
|
+
"type.snippet-model": {
|
|
212
|
+
"title": "Snippet Model",
|
|
213
|
+
"type": "object",
|
|
214
|
+
"properties": {
|
|
215
|
+
"source_key": {
|
|
216
|
+
"type": "string"
|
|
217
|
+
},
|
|
218
|
+
"editor_key": {
|
|
219
|
+
"type": "string"
|
|
220
|
+
},
|
|
221
|
+
"remove_empty": {
|
|
222
|
+
"default": false,
|
|
223
|
+
"type": "boolean"
|
|
224
|
+
},
|
|
225
|
+
"optional": {
|
|
226
|
+
"default": false,
|
|
227
|
+
"type": "boolean"
|
|
228
|
+
},
|
|
229
|
+
"type": {
|
|
230
|
+
"type": "string",
|
|
231
|
+
"enum": [
|
|
232
|
+
"array",
|
|
233
|
+
"object",
|
|
234
|
+
"string",
|
|
235
|
+
"boolean",
|
|
236
|
+
"number"
|
|
237
|
+
]
|
|
238
|
+
},
|
|
239
|
+
"allowed_values": {
|
|
240
|
+
"type": "array",
|
|
241
|
+
"items": {}
|
|
242
|
+
},
|
|
243
|
+
"implied_boolean": {
|
|
244
|
+
"default": false,
|
|
245
|
+
"type": "boolean"
|
|
246
|
+
},
|
|
247
|
+
"default": {}
|
|
248
|
+
},
|
|
249
|
+
"additionalProperties": false
|
|
250
|
+
},
|
|
251
|
+
"type.snippet-definition-select-value": {
|
|
252
|
+
"title": "Snippet Definition Select Value",
|
|
253
|
+
"description": "A value option for select inputs, typically used in language lists.",
|
|
254
|
+
"type": "object",
|
|
255
|
+
"properties": {
|
|
256
|
+
"name": {
|
|
257
|
+
"description": "The display name for this option.",
|
|
258
|
+
"type": "string",
|
|
259
|
+
"markdownDescription": "The display name for this option."
|
|
260
|
+
},
|
|
261
|
+
"value": {
|
|
262
|
+
"description": "The value for this option.",
|
|
263
|
+
"anyOf": [
|
|
264
|
+
{
|
|
265
|
+
"title": "String",
|
|
266
|
+
"type": "string"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"title": "Number",
|
|
270
|
+
"type": "number"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"title": "Boolean",
|
|
274
|
+
"type": "boolean"
|
|
275
|
+
}
|
|
276
|
+
],
|
|
277
|
+
"markdownDescription": "The value for this option."
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
"required": [
|
|
281
|
+
"value"
|
|
282
|
+
],
|
|
283
|
+
"additionalProperties": false,
|
|
284
|
+
"markdownDescription": "A value option for select inputs, typically used in language lists."
|
|
285
|
+
}
|
|
286
|
+
}
|
|
9
287
|
}
|