@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
|
@@ -10573,12 +10573,99 @@
|
|
|
10573
10573
|
"type._snippets_definitions": {
|
|
10574
10574
|
"id": "type._snippets_definitions",
|
|
10575
10575
|
"title": "Snippets Definitions",
|
|
10576
|
-
"description": "
|
|
10576
|
+
"description": "A record of reusable values that can be referenced in snippet templates. Values are substituted using { ref: \"key\" } for direct replacement or { spread_ref: \"key\" } for spreading arrays/objects.",
|
|
10577
10577
|
"type": "object",
|
|
10578
10578
|
"propertyNames": {
|
|
10579
10579
|
"type": "string"
|
|
10580
10580
|
},
|
|
10581
|
-
"additionalProperties": {
|
|
10581
|
+
"additionalProperties": {
|
|
10582
|
+
"$ref": "#/$defs/type.snippet-definition-value"
|
|
10583
|
+
}
|
|
10584
|
+
},
|
|
10585
|
+
"type.snippet-definition-value": {
|
|
10586
|
+
"id": "type.snippet-definition-value",
|
|
10587
|
+
"title": "Snippet Definition Value",
|
|
10588
|
+
"description": "A reusable value that can be referenced in snippet templates via { ref: \"key\" } or { spread_ref: \"key\" }.",
|
|
10589
|
+
"anyOf": [
|
|
10590
|
+
{
|
|
10591
|
+
"$ref": "#/$defs/type.snippet-format"
|
|
10592
|
+
},
|
|
10593
|
+
{
|
|
10594
|
+
"$ref": "#/$defs/type.snippet-model"
|
|
10595
|
+
},
|
|
10596
|
+
{
|
|
10597
|
+
"title": "Parser Model Array",
|
|
10598
|
+
"description": "An array of model configurations, typically used for positional_args or named_args.",
|
|
10599
|
+
"type": "array",
|
|
10600
|
+
"items": {
|
|
10601
|
+
"$ref": "#/$defs/type.snippet-model"
|
|
10602
|
+
}
|
|
10603
|
+
},
|
|
10604
|
+
{
|
|
10605
|
+
"title": "Select Values Array",
|
|
10606
|
+
"description": "An array of select options, typically used for language lists.",
|
|
10607
|
+
"type": "array",
|
|
10608
|
+
"items": {
|
|
10609
|
+
"$ref": "#/$defs/type.snippet-definition-select-value"
|
|
10610
|
+
}
|
|
10611
|
+
},
|
|
10612
|
+
{
|
|
10613
|
+
"title": "String Value",
|
|
10614
|
+
"description": "A string value, commonly used for shortcode_name, tag_name, content_key, and similar definitions.",
|
|
10615
|
+
"type": "string"
|
|
10616
|
+
},
|
|
10617
|
+
{
|
|
10618
|
+
"title": "Number Value",
|
|
10619
|
+
"description": "A numeric value.",
|
|
10620
|
+
"type": "number"
|
|
10621
|
+
},
|
|
10622
|
+
{
|
|
10623
|
+
"title": "Boolean Value",
|
|
10624
|
+
"description": "A boolean value.",
|
|
10625
|
+
"type": "boolean"
|
|
10626
|
+
},
|
|
10627
|
+
{
|
|
10628
|
+
"title": "String Array",
|
|
10629
|
+
"description": "An array of strings.",
|
|
10630
|
+
"type": "array",
|
|
10631
|
+
"items": {
|
|
10632
|
+
"type": "string"
|
|
10633
|
+
}
|
|
10634
|
+
}
|
|
10635
|
+
]
|
|
10636
|
+
},
|
|
10637
|
+
"type.snippet-definition-select-value": {
|
|
10638
|
+
"id": "type.snippet-definition-select-value",
|
|
10639
|
+
"title": "Snippet Definition Select Value",
|
|
10640
|
+
"description": "A value option for select inputs, typically used in language lists.",
|
|
10641
|
+
"type": "object",
|
|
10642
|
+
"properties": {
|
|
10643
|
+
"name": {
|
|
10644
|
+
"description": "The display name for this option.",
|
|
10645
|
+
"type": "string"
|
|
10646
|
+
},
|
|
10647
|
+
"value": {
|
|
10648
|
+
"description": "The value for this option.",
|
|
10649
|
+
"anyOf": [
|
|
10650
|
+
{
|
|
10651
|
+
"title": "String",
|
|
10652
|
+
"type": "string"
|
|
10653
|
+
},
|
|
10654
|
+
{
|
|
10655
|
+
"title": "Number",
|
|
10656
|
+
"type": "number"
|
|
10657
|
+
},
|
|
10658
|
+
{
|
|
10659
|
+
"title": "Boolean",
|
|
10660
|
+
"type": "boolean"
|
|
10661
|
+
}
|
|
10662
|
+
]
|
|
10663
|
+
}
|
|
10664
|
+
},
|
|
10665
|
+
"required": [
|
|
10666
|
+
"value"
|
|
10667
|
+
],
|
|
10668
|
+
"additionalProperties": false
|
|
10582
10669
|
}
|
|
10583
10670
|
}
|
|
10584
10671
|
}
|
|
@@ -13177,14 +13177,128 @@
|
|
|
13177
13177
|
},
|
|
13178
13178
|
"type._snippets_definitions": {
|
|
13179
13179
|
"title": "Snippets Definitions",
|
|
13180
|
-
"description": "
|
|
13180
|
+
"description": "A record of reusable values that can be referenced in snippet templates. Values are substituted using `{ ref: \"key\" }` for direct replacement or `{ spread_ref: \"key\" }` for spreading arrays/objects. Common definition types include parser formats, argument models, select option lists, and simple string values like shortcode names.\n\n## Examples\n\nDefine reusable values like shortcode names, argument models, and parser formats that can be referenced in snippet templates.\n\n```yaml\n_snippets_definitions:\n # Simple string value for the shortcode name\n shortcode_name: \"highlight\"\n content_key: \"content\"\n\n # Array of argument models for positional arguments\n positional_args:\n - editor_key: \"language\"\n type: \"string\"\n - editor_key: \"linenos\"\n type: \"boolean\"\n optional: true\n default: false\n\n # Parser format configuration\n custom_format:\n root_pair_delimiter:\n - \" \"\n root_value_delimiter: \"=\"\n string_boundary:\n - '\"'\n - \"'\"\n - \"\"\n allow_booleans: true\n allow_numbers: true\n```\n\nReference definitions in snippet templates using `{ ref: \"key\" }` syntax. This allows you to reuse common configurations across multiple snippets.\n\n```yaml\n_snippets_definitions:\n shortcode_name: \"figure\"\n named_args:\n - editor_key: \"src\"\n type: \"string\"\n - editor_key: \"alt\"\n type: \"string\"\n optional: true\n\n_snippets_templates:\n my_shortcode_template:\n snippet: \"{{< [[name]] [[args]] >}}\"\n params:\n name:\n parser: \"literal\"\n options:\n literal:\n ref: \"shortcode_name\"\n args:\n parser: \"key_values\"\n options:\n models:\n ref: \"named_args\"\n\n_snippets:\n figure:\n template: \"my_shortcode_template\"\n definitions:\n shortcode_name: \"figure\"\n named_args:\n - editor_key: \"src\"\n type: \"string\"\n - editor_key: \"alt\"\n type: \"string\"\n```\n\nDefine a list of select options for use in snippet inputs, such as a list of programming languages for a code highlighting snippet.\n\n```yaml\n_snippets_definitions:\n languages:\n - name: \"JavaScript\"\n value: \"js\"\n - name: \"Python\"\n value: \"python\"\n - name: \"Ruby\"\n value: \"ruby\"\n - name: \"HTML\"\n value: \"html\"\n - name: \"CSS\"\n value: \"css\"\n```",
|
|
13181
13181
|
"type": "object",
|
|
13182
13182
|
"propertyNames": {
|
|
13183
13183
|
"type": "string"
|
|
13184
13184
|
},
|
|
13185
|
-
"additionalProperties": {
|
|
13185
|
+
"additionalProperties": {
|
|
13186
|
+
"$ref": "#/definitions/type.snippet-definition-value"
|
|
13187
|
+
},
|
|
13186
13188
|
"documented": true,
|
|
13187
|
-
"markdownDescription": "
|
|
13189
|
+
"markdownDescription": "A record of reusable values that can be referenced in snippet templates. Values are substituted using `{ ref: \"key\" }` for direct replacement or `{ spread_ref: \"key\" }` for spreading arrays/objects. Common definition types include parser formats, argument models, select option lists, and simple string values like shortcode names.\n\n## Examples\n\nDefine reusable values like shortcode names, argument models, and parser formats that can be referenced in snippet templates.\n\n```yaml\n_snippets_definitions:\n # Simple string value for the shortcode name\n shortcode_name: \"highlight\"\n content_key: \"content\"\n\n # Array of argument models for positional arguments\n positional_args:\n - editor_key: \"language\"\n type: \"string\"\n - editor_key: \"linenos\"\n type: \"boolean\"\n optional: true\n default: false\n\n # Parser format configuration\n custom_format:\n root_pair_delimiter:\n - \" \"\n root_value_delimiter: \"=\"\n string_boundary:\n - '\"'\n - \"'\"\n - \"\"\n allow_booleans: true\n allow_numbers: true\n```\n\nReference definitions in snippet templates using `{ ref: \"key\" }` syntax. This allows you to reuse common configurations across multiple snippets.\n\n```yaml\n_snippets_definitions:\n shortcode_name: \"figure\"\n named_args:\n - editor_key: \"src\"\n type: \"string\"\n - editor_key: \"alt\"\n type: \"string\"\n optional: true\n\n_snippets_templates:\n my_shortcode_template:\n snippet: \"{{< [[name]] [[args]] >}}\"\n params:\n name:\n parser: \"literal\"\n options:\n literal:\n ref: \"shortcode_name\"\n args:\n parser: \"key_values\"\n options:\n models:\n ref: \"named_args\"\n\n_snippets:\n figure:\n template: \"my_shortcode_template\"\n definitions:\n shortcode_name: \"figure\"\n named_args:\n - editor_key: \"src\"\n type: \"string\"\n - editor_key: \"alt\"\n type: \"string\"\n```\n\nDefine a list of select options for use in snippet inputs, such as a list of programming languages for a code highlighting snippet.\n\n```yaml\n_snippets_definitions:\n languages:\n - name: \"JavaScript\"\n value: \"js\"\n - name: \"Python\"\n value: \"python\"\n - name: \"Ruby\"\n value: \"ruby\"\n - name: \"HTML\"\n value: \"html\"\n - name: \"CSS\"\n value: \"css\"\n```"
|
|
13190
|
+
},
|
|
13191
|
+
"type.snippet-definition-value": {
|
|
13192
|
+
"title": "Snippet Definition Value",
|
|
13193
|
+
"description": "A reusable value that can be referenced in snippet templates via `{ ref: \"key\" }` or `{ spread_ref: \"key\" }`. Can be a string, number, boolean, parser format, parser model, array of models, or array of select options.",
|
|
13194
|
+
"anyOf": [
|
|
13195
|
+
{
|
|
13196
|
+
"$ref": "#/definitions/type.snippet-format"
|
|
13197
|
+
},
|
|
13198
|
+
{
|
|
13199
|
+
"$ref": "#/definitions/type.snippet-model"
|
|
13200
|
+
},
|
|
13201
|
+
{
|
|
13202
|
+
"title": "Parser Model Array",
|
|
13203
|
+
"description": "An array of parser model configurations. Typically used for `positional_args` or `named_args` definitions that specify the arguments a snippet accepts. Each model defines an argument's editor key, type, default value, and whether it's optional.",
|
|
13204
|
+
"type": "array",
|
|
13205
|
+
"items": {
|
|
13206
|
+
"$ref": "#/definitions/type.snippet-model"
|
|
13207
|
+
},
|
|
13208
|
+
"documented": true,
|
|
13209
|
+
"markdownDescription": "An array of parser model configurations. Typically used for `positional_args` or `named_args` definitions that specify the arguments a snippet accepts. Each model defines an argument's editor key, type, default value, and whether it's optional."
|
|
13210
|
+
},
|
|
13211
|
+
{
|
|
13212
|
+
"title": "Select Values Array",
|
|
13213
|
+
"description": "An array of select option values. Commonly used for language lists in code highlighting snippets, where each option has a display name and a value. For example: `[{ name: \"JavaScript\", value: \"js\" }, { name: \"Python\", value: \"python\" }]`.",
|
|
13214
|
+
"type": "array",
|
|
13215
|
+
"items": {
|
|
13216
|
+
"$ref": "#/definitions/type.snippet-definition-select-value"
|
|
13217
|
+
},
|
|
13218
|
+
"documented": true,
|
|
13219
|
+
"markdownDescription": "An array of select option values. Commonly used for language lists in code highlighting snippets, where each option has a display name and a value. For example: `[{ name: \"JavaScript\", value: \"js\" }, { name: \"Python\", value: \"python\" }]`."
|
|
13220
|
+
},
|
|
13221
|
+
{
|
|
13222
|
+
"title": "String Value",
|
|
13223
|
+
"description": "A string value definition. Commonly used for `shortcode_name`, `tag_name`, `content_key`, `include_name`, and similar definitions that identify snippet components by name.",
|
|
13224
|
+
"type": "string",
|
|
13225
|
+
"documented": true,
|
|
13226
|
+
"markdownDescription": "A string value definition. Commonly used for `shortcode_name`, `tag_name`, `content_key`, `include_name`, and similar definitions that identify snippet components by name."
|
|
13227
|
+
},
|
|
13228
|
+
{
|
|
13229
|
+
"title": "Number Value",
|
|
13230
|
+
"description": "A numeric value definition. Use for counts, sizes, or other numeric values that can be referenced in snippet templates.",
|
|
13231
|
+
"type": "number",
|
|
13232
|
+
"documented": true,
|
|
13233
|
+
"markdownDescription": "A numeric value definition. Use for counts, sizes, or other numeric values that can be referenced in snippet templates."
|
|
13234
|
+
},
|
|
13235
|
+
{
|
|
13236
|
+
"title": "Boolean Value",
|
|
13237
|
+
"description": "A boolean value definition. Use for flags and toggles that can be referenced in snippet templates.",
|
|
13238
|
+
"type": "boolean",
|
|
13239
|
+
"documented": true,
|
|
13240
|
+
"markdownDescription": "A boolean value definition. Use for flags and toggles that can be referenced in snippet templates."
|
|
13241
|
+
},
|
|
13242
|
+
{
|
|
13243
|
+
"title": "String Array",
|
|
13244
|
+
"description": "An array of string values. Useful for defining lists of allowed values, delimiters, or other string collections that can be referenced in snippet templates.",
|
|
13245
|
+
"type": "array",
|
|
13246
|
+
"items": {
|
|
13247
|
+
"type": "string",
|
|
13248
|
+
"documented": true,
|
|
13249
|
+
"title": "snippet-definition-value(string-array)[*]",
|
|
13250
|
+
"description": "A string item in the array.",
|
|
13251
|
+
"markdownDescription": "A string item in the array."
|
|
13252
|
+
},
|
|
13253
|
+
"documented": true,
|
|
13254
|
+
"markdownDescription": "An array of string values. Useful for defining lists of allowed values, delimiters, or other string collections that can be referenced in snippet templates."
|
|
13255
|
+
}
|
|
13256
|
+
],
|
|
13257
|
+
"documented": true,
|
|
13258
|
+
"markdownDescription": "A reusable value that can be referenced in snippet templates via `{ ref: \"key\" }` or `{ spread_ref: \"key\" }`. Can be a string, number, boolean, parser format, parser model, array of models, or array of select options."
|
|
13259
|
+
},
|
|
13260
|
+
"type.snippet-definition-select-value": {
|
|
13261
|
+
"title": "Snippet Definition Select Value",
|
|
13262
|
+
"description": "A value option for select inputs, typically used in language lists. Contains a display name and the actual value to use.",
|
|
13263
|
+
"type": "object",
|
|
13264
|
+
"properties": {
|
|
13265
|
+
"name": {
|
|
13266
|
+
"description": "The display name shown to users when selecting this option. For example, \"JavaScript\" for a language with value \"js\".",
|
|
13267
|
+
"type": "string",
|
|
13268
|
+
"documented": true,
|
|
13269
|
+
"title": "name",
|
|
13270
|
+
"markdownDescription": "The display name shown to users when selecting this option. For example, \"JavaScript\" for a language with value \"js\"."
|
|
13271
|
+
},
|
|
13272
|
+
"value": {
|
|
13273
|
+
"description": "The actual value used when this option is selected. Can be a string, number, or boolean. For example, \"js\" for JavaScript or 4 for an indentation level.",
|
|
13274
|
+
"anyOf": [
|
|
13275
|
+
{
|
|
13276
|
+
"title": "String Select Value",
|
|
13277
|
+
"type": "string",
|
|
13278
|
+
"documented": true
|
|
13279
|
+
},
|
|
13280
|
+
{
|
|
13281
|
+
"title": "Number Select Value",
|
|
13282
|
+
"type": "number",
|
|
13283
|
+
"documented": true
|
|
13284
|
+
},
|
|
13285
|
+
{
|
|
13286
|
+
"title": "Boolean Select Value",
|
|
13287
|
+
"type": "boolean",
|
|
13288
|
+
"documented": true
|
|
13289
|
+
}
|
|
13290
|
+
],
|
|
13291
|
+
"documented": true,
|
|
13292
|
+
"title": "value",
|
|
13293
|
+
"markdownDescription": "The actual value used when this option is selected. Can be a string, number, or boolean. For example, \"js\" for JavaScript or 4 for an indentation level."
|
|
13294
|
+
}
|
|
13295
|
+
},
|
|
13296
|
+
"required": [
|
|
13297
|
+
"value"
|
|
13298
|
+
],
|
|
13299
|
+
"additionalProperties": false,
|
|
13300
|
+
"documented": true,
|
|
13301
|
+
"markdownDescription": "A value option for select inputs, typically used in language lists. Contains a display name and the actual value to use."
|
|
13188
13302
|
}
|
|
13189
13303
|
},
|
|
13190
13304
|
"documented": false,
|
|
@@ -11468,13 +11468,108 @@
|
|
|
11468
11468
|
},
|
|
11469
11469
|
"type._snippets_definitions": {
|
|
11470
11470
|
"title": "Snippets Definitions",
|
|
11471
|
-
"description": "
|
|
11471
|
+
"description": "A record of reusable values that can be referenced in snippet templates. Values are substituted using { ref: \"key\" } for direct replacement or { spread_ref: \"key\" } for spreading arrays/objects.",
|
|
11472
11472
|
"type": "object",
|
|
11473
11473
|
"propertyNames": {
|
|
11474
11474
|
"type": "string"
|
|
11475
11475
|
},
|
|
11476
|
-
"additionalProperties": {
|
|
11477
|
-
|
|
11476
|
+
"additionalProperties": {
|
|
11477
|
+
"$ref": "#/definitions/type.snippet-definition-value"
|
|
11478
|
+
},
|
|
11479
|
+
"markdownDescription": "A record of reusable values that can be referenced in snippet templates. Values are substituted using { ref: \"key\" } for direct replacement or { spread_ref: \"key\" } for spreading arrays/objects."
|
|
11480
|
+
},
|
|
11481
|
+
"type.snippet-definition-value": {
|
|
11482
|
+
"title": "Snippet Definition Value",
|
|
11483
|
+
"description": "A reusable value that can be referenced in snippet templates via { ref: \"key\" } or { spread_ref: \"key\" }.",
|
|
11484
|
+
"anyOf": [
|
|
11485
|
+
{
|
|
11486
|
+
"$ref": "#/definitions/type.snippet-format"
|
|
11487
|
+
},
|
|
11488
|
+
{
|
|
11489
|
+
"$ref": "#/definitions/type.snippet-model"
|
|
11490
|
+
},
|
|
11491
|
+
{
|
|
11492
|
+
"title": "Parser Model Array",
|
|
11493
|
+
"description": "An array of model configurations, typically used for positional_args or named_args.",
|
|
11494
|
+
"type": "array",
|
|
11495
|
+
"items": {
|
|
11496
|
+
"$ref": "#/definitions/type.snippet-model"
|
|
11497
|
+
},
|
|
11498
|
+
"markdownDescription": "An array of model configurations, typically used for positional_args or named_args."
|
|
11499
|
+
},
|
|
11500
|
+
{
|
|
11501
|
+
"title": "Select Values Array",
|
|
11502
|
+
"description": "An array of select options, typically used for language lists.",
|
|
11503
|
+
"type": "array",
|
|
11504
|
+
"items": {
|
|
11505
|
+
"$ref": "#/definitions/type.snippet-definition-select-value"
|
|
11506
|
+
},
|
|
11507
|
+
"markdownDescription": "An array of select options, typically used for language lists."
|
|
11508
|
+
},
|
|
11509
|
+
{
|
|
11510
|
+
"title": "String Value",
|
|
11511
|
+
"description": "A string value, commonly used for shortcode_name, tag_name, content_key, and similar definitions.",
|
|
11512
|
+
"type": "string",
|
|
11513
|
+
"markdownDescription": "A string value, commonly used for shortcode_name, tag_name, content_key, and similar definitions."
|
|
11514
|
+
},
|
|
11515
|
+
{
|
|
11516
|
+
"title": "Number Value",
|
|
11517
|
+
"description": "A numeric value.",
|
|
11518
|
+
"type": "number",
|
|
11519
|
+
"markdownDescription": "A numeric value."
|
|
11520
|
+
},
|
|
11521
|
+
{
|
|
11522
|
+
"title": "Boolean Value",
|
|
11523
|
+
"description": "A boolean value.",
|
|
11524
|
+
"type": "boolean",
|
|
11525
|
+
"markdownDescription": "A boolean value."
|
|
11526
|
+
},
|
|
11527
|
+
{
|
|
11528
|
+
"title": "String Array",
|
|
11529
|
+
"description": "An array of strings.",
|
|
11530
|
+
"type": "array",
|
|
11531
|
+
"items": {
|
|
11532
|
+
"type": "string"
|
|
11533
|
+
},
|
|
11534
|
+
"markdownDescription": "An array of strings."
|
|
11535
|
+
}
|
|
11536
|
+
],
|
|
11537
|
+
"markdownDescription": "A reusable value that can be referenced in snippet templates via { ref: \"key\" } or { spread_ref: \"key\" }."
|
|
11538
|
+
},
|
|
11539
|
+
"type.snippet-definition-select-value": {
|
|
11540
|
+
"title": "Snippet Definition Select Value",
|
|
11541
|
+
"description": "A value option for select inputs, typically used in language lists.",
|
|
11542
|
+
"type": "object",
|
|
11543
|
+
"properties": {
|
|
11544
|
+
"name": {
|
|
11545
|
+
"description": "The display name for this option.",
|
|
11546
|
+
"type": "string",
|
|
11547
|
+
"markdownDescription": "The display name for this option."
|
|
11548
|
+
},
|
|
11549
|
+
"value": {
|
|
11550
|
+
"description": "The value for this option.",
|
|
11551
|
+
"anyOf": [
|
|
11552
|
+
{
|
|
11553
|
+
"title": "String",
|
|
11554
|
+
"type": "string"
|
|
11555
|
+
},
|
|
11556
|
+
{
|
|
11557
|
+
"title": "Number",
|
|
11558
|
+
"type": "number"
|
|
11559
|
+
},
|
|
11560
|
+
{
|
|
11561
|
+
"title": "Boolean",
|
|
11562
|
+
"type": "boolean"
|
|
11563
|
+
}
|
|
11564
|
+
],
|
|
11565
|
+
"markdownDescription": "The value for this option."
|
|
11566
|
+
}
|
|
11567
|
+
},
|
|
11568
|
+
"required": [
|
|
11569
|
+
"value"
|
|
11570
|
+
],
|
|
11571
|
+
"additionalProperties": false,
|
|
11572
|
+
"markdownDescription": "A value option for select inputs, typically used in language lists."
|
|
11478
11573
|
},
|
|
11479
11574
|
"collections_config_override": {
|
|
11480
11575
|
"description": "Prevents CloudCannon from automatically discovering collections for supported SSGs if true. Defaults to false.",
|
|
@@ -11471,13 +11471,108 @@
|
|
|
11471
11471
|
},
|
|
11472
11472
|
"type._snippets_definitions": {
|
|
11473
11473
|
"title": "Snippets Definitions",
|
|
11474
|
-
"description": "
|
|
11474
|
+
"description": "A record of reusable values that can be referenced in snippet templates. Values are substituted using { ref: \"key\" } for direct replacement or { spread_ref: \"key\" } for spreading arrays/objects.",
|
|
11475
11475
|
"type": "object",
|
|
11476
11476
|
"propertyNames": {
|
|
11477
11477
|
"type": "string"
|
|
11478
11478
|
},
|
|
11479
|
-
"additionalProperties": {
|
|
11480
|
-
|
|
11479
|
+
"additionalProperties": {
|
|
11480
|
+
"$ref": "#/definitions/type.snippet-definition-value"
|
|
11481
|
+
},
|
|
11482
|
+
"markdownDescription": "A record of reusable values that can be referenced in snippet templates. Values are substituted using { ref: \"key\" } for direct replacement or { spread_ref: \"key\" } for spreading arrays/objects."
|
|
11483
|
+
},
|
|
11484
|
+
"type.snippet-definition-value": {
|
|
11485
|
+
"title": "Snippet Definition Value",
|
|
11486
|
+
"description": "A reusable value that can be referenced in snippet templates via { ref: \"key\" } or { spread_ref: \"key\" }.",
|
|
11487
|
+
"anyOf": [
|
|
11488
|
+
{
|
|
11489
|
+
"$ref": "#/definitions/type.snippet-format"
|
|
11490
|
+
},
|
|
11491
|
+
{
|
|
11492
|
+
"$ref": "#/definitions/type.snippet-model"
|
|
11493
|
+
},
|
|
11494
|
+
{
|
|
11495
|
+
"title": "Parser Model Array",
|
|
11496
|
+
"description": "An array of model configurations, typically used for positional_args or named_args.",
|
|
11497
|
+
"type": "array",
|
|
11498
|
+
"items": {
|
|
11499
|
+
"$ref": "#/definitions/type.snippet-model"
|
|
11500
|
+
},
|
|
11501
|
+
"markdownDescription": "An array of model configurations, typically used for positional_args or named_args."
|
|
11502
|
+
},
|
|
11503
|
+
{
|
|
11504
|
+
"title": "Select Values Array",
|
|
11505
|
+
"description": "An array of select options, typically used for language lists.",
|
|
11506
|
+
"type": "array",
|
|
11507
|
+
"items": {
|
|
11508
|
+
"$ref": "#/definitions/type.snippet-definition-select-value"
|
|
11509
|
+
},
|
|
11510
|
+
"markdownDescription": "An array of select options, typically used for language lists."
|
|
11511
|
+
},
|
|
11512
|
+
{
|
|
11513
|
+
"title": "String Value",
|
|
11514
|
+
"description": "A string value, commonly used for shortcode_name, tag_name, content_key, and similar definitions.",
|
|
11515
|
+
"type": "string",
|
|
11516
|
+
"markdownDescription": "A string value, commonly used for shortcode_name, tag_name, content_key, and similar definitions."
|
|
11517
|
+
},
|
|
11518
|
+
{
|
|
11519
|
+
"title": "Number Value",
|
|
11520
|
+
"description": "A numeric value.",
|
|
11521
|
+
"type": "number",
|
|
11522
|
+
"markdownDescription": "A numeric value."
|
|
11523
|
+
},
|
|
11524
|
+
{
|
|
11525
|
+
"title": "Boolean Value",
|
|
11526
|
+
"description": "A boolean value.",
|
|
11527
|
+
"type": "boolean",
|
|
11528
|
+
"markdownDescription": "A boolean value."
|
|
11529
|
+
},
|
|
11530
|
+
{
|
|
11531
|
+
"title": "String Array",
|
|
11532
|
+
"description": "An array of strings.",
|
|
11533
|
+
"type": "array",
|
|
11534
|
+
"items": {
|
|
11535
|
+
"type": "string"
|
|
11536
|
+
},
|
|
11537
|
+
"markdownDescription": "An array of strings."
|
|
11538
|
+
}
|
|
11539
|
+
],
|
|
11540
|
+
"markdownDescription": "A reusable value that can be referenced in snippet templates via { ref: \"key\" } or { spread_ref: \"key\" }."
|
|
11541
|
+
},
|
|
11542
|
+
"type.snippet-definition-select-value": {
|
|
11543
|
+
"title": "Snippet Definition Select Value",
|
|
11544
|
+
"description": "A value option for select inputs, typically used in language lists.",
|
|
11545
|
+
"type": "object",
|
|
11546
|
+
"properties": {
|
|
11547
|
+
"name": {
|
|
11548
|
+
"description": "The display name for this option.",
|
|
11549
|
+
"type": "string",
|
|
11550
|
+
"markdownDescription": "The display name for this option."
|
|
11551
|
+
},
|
|
11552
|
+
"value": {
|
|
11553
|
+
"description": "The value for this option.",
|
|
11554
|
+
"anyOf": [
|
|
11555
|
+
{
|
|
11556
|
+
"title": "String",
|
|
11557
|
+
"type": "string"
|
|
11558
|
+
},
|
|
11559
|
+
{
|
|
11560
|
+
"title": "Number",
|
|
11561
|
+
"type": "number"
|
|
11562
|
+
},
|
|
11563
|
+
{
|
|
11564
|
+
"title": "Boolean",
|
|
11565
|
+
"type": "boolean"
|
|
11566
|
+
}
|
|
11567
|
+
],
|
|
11568
|
+
"markdownDescription": "The value for this option."
|
|
11569
|
+
}
|
|
11570
|
+
},
|
|
11571
|
+
"required": [
|
|
11572
|
+
"value"
|
|
11573
|
+
],
|
|
11574
|
+
"additionalProperties": false,
|
|
11575
|
+
"markdownDescription": "A value option for select inputs, typically used in language lists."
|
|
11481
11576
|
},
|
|
11482
11577
|
"collections_config_override": {
|
|
11483
11578
|
"description": "Prevents CloudCannon from automatically discovering collections for supported SSGs if true. Defaults to false.",
|
|
@@ -11468,13 +11468,108 @@
|
|
|
11468
11468
|
},
|
|
11469
11469
|
"type._snippets_definitions": {
|
|
11470
11470
|
"title": "Snippets Definitions",
|
|
11471
|
-
"description": "
|
|
11471
|
+
"description": "A record of reusable values that can be referenced in snippet templates. Values are substituted using { ref: \"key\" } for direct replacement or { spread_ref: \"key\" } for spreading arrays/objects.",
|
|
11472
11472
|
"type": "object",
|
|
11473
11473
|
"propertyNames": {
|
|
11474
11474
|
"type": "string"
|
|
11475
11475
|
},
|
|
11476
|
-
"additionalProperties": {
|
|
11477
|
-
|
|
11476
|
+
"additionalProperties": {
|
|
11477
|
+
"$ref": "#/definitions/type.snippet-definition-value"
|
|
11478
|
+
},
|
|
11479
|
+
"markdownDescription": "A record of reusable values that can be referenced in snippet templates. Values are substituted using { ref: \"key\" } for direct replacement or { spread_ref: \"key\" } for spreading arrays/objects."
|
|
11480
|
+
},
|
|
11481
|
+
"type.snippet-definition-value": {
|
|
11482
|
+
"title": "Snippet Definition Value",
|
|
11483
|
+
"description": "A reusable value that can be referenced in snippet templates via { ref: \"key\" } or { spread_ref: \"key\" }.",
|
|
11484
|
+
"anyOf": [
|
|
11485
|
+
{
|
|
11486
|
+
"$ref": "#/definitions/type.snippet-format"
|
|
11487
|
+
},
|
|
11488
|
+
{
|
|
11489
|
+
"$ref": "#/definitions/type.snippet-model"
|
|
11490
|
+
},
|
|
11491
|
+
{
|
|
11492
|
+
"title": "Parser Model Array",
|
|
11493
|
+
"description": "An array of model configurations, typically used for positional_args or named_args.",
|
|
11494
|
+
"type": "array",
|
|
11495
|
+
"items": {
|
|
11496
|
+
"$ref": "#/definitions/type.snippet-model"
|
|
11497
|
+
},
|
|
11498
|
+
"markdownDescription": "An array of model configurations, typically used for positional_args or named_args."
|
|
11499
|
+
},
|
|
11500
|
+
{
|
|
11501
|
+
"title": "Select Values Array",
|
|
11502
|
+
"description": "An array of select options, typically used for language lists.",
|
|
11503
|
+
"type": "array",
|
|
11504
|
+
"items": {
|
|
11505
|
+
"$ref": "#/definitions/type.snippet-definition-select-value"
|
|
11506
|
+
},
|
|
11507
|
+
"markdownDescription": "An array of select options, typically used for language lists."
|
|
11508
|
+
},
|
|
11509
|
+
{
|
|
11510
|
+
"title": "String Value",
|
|
11511
|
+
"description": "A string value, commonly used for shortcode_name, tag_name, content_key, and similar definitions.",
|
|
11512
|
+
"type": "string",
|
|
11513
|
+
"markdownDescription": "A string value, commonly used for shortcode_name, tag_name, content_key, and similar definitions."
|
|
11514
|
+
},
|
|
11515
|
+
{
|
|
11516
|
+
"title": "Number Value",
|
|
11517
|
+
"description": "A numeric value.",
|
|
11518
|
+
"type": "number",
|
|
11519
|
+
"markdownDescription": "A numeric value."
|
|
11520
|
+
},
|
|
11521
|
+
{
|
|
11522
|
+
"title": "Boolean Value",
|
|
11523
|
+
"description": "A boolean value.",
|
|
11524
|
+
"type": "boolean",
|
|
11525
|
+
"markdownDescription": "A boolean value."
|
|
11526
|
+
},
|
|
11527
|
+
{
|
|
11528
|
+
"title": "String Array",
|
|
11529
|
+
"description": "An array of strings.",
|
|
11530
|
+
"type": "array",
|
|
11531
|
+
"items": {
|
|
11532
|
+
"type": "string"
|
|
11533
|
+
},
|
|
11534
|
+
"markdownDescription": "An array of strings."
|
|
11535
|
+
}
|
|
11536
|
+
],
|
|
11537
|
+
"markdownDescription": "A reusable value that can be referenced in snippet templates via { ref: \"key\" } or { spread_ref: \"key\" }."
|
|
11538
|
+
},
|
|
11539
|
+
"type.snippet-definition-select-value": {
|
|
11540
|
+
"title": "Snippet Definition Select Value",
|
|
11541
|
+
"description": "A value option for select inputs, typically used in language lists.",
|
|
11542
|
+
"type": "object",
|
|
11543
|
+
"properties": {
|
|
11544
|
+
"name": {
|
|
11545
|
+
"description": "The display name for this option.",
|
|
11546
|
+
"type": "string",
|
|
11547
|
+
"markdownDescription": "The display name for this option."
|
|
11548
|
+
},
|
|
11549
|
+
"value": {
|
|
11550
|
+
"description": "The value for this option.",
|
|
11551
|
+
"anyOf": [
|
|
11552
|
+
{
|
|
11553
|
+
"title": "String",
|
|
11554
|
+
"type": "string"
|
|
11555
|
+
},
|
|
11556
|
+
{
|
|
11557
|
+
"title": "Number",
|
|
11558
|
+
"type": "number"
|
|
11559
|
+
},
|
|
11560
|
+
{
|
|
11561
|
+
"title": "Boolean",
|
|
11562
|
+
"type": "boolean"
|
|
11563
|
+
}
|
|
11564
|
+
],
|
|
11565
|
+
"markdownDescription": "The value for this option."
|
|
11566
|
+
}
|
|
11567
|
+
},
|
|
11568
|
+
"required": [
|
|
11569
|
+
"value"
|
|
11570
|
+
],
|
|
11571
|
+
"additionalProperties": false,
|
|
11572
|
+
"markdownDescription": "A value option for select inputs, typically used in language lists."
|
|
11478
11573
|
},
|
|
11479
11574
|
"collections_config_override": {
|
|
11480
11575
|
"description": "Prevents CloudCannon from automatically discovering collections for supported SSGs if true. Defaults to false.",
|