Skip to content

Commit edcebab

Browse files
authored
Merge pull request #271 from gethinode/develop
Develop
2 parents 3a6ef11 + 19cb389 commit edcebab

File tree

4 files changed

+39
-27
lines changed

4 files changed

+39
-27
lines changed

data/structures/_args.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ arguments:
5353
options:
5454
type: options
5555
optional: true
56-
comment: Conditional value requirements, pending data type.
56+
comment: Conditional value requirements, depending on data type.

data/structures/_arguments.yml

Lines changed: 32 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ arguments:
7878
anchor:
7979
type: select
8080
optional: true
81-
comment:
81+
comment: >-
8282
Anchor of the image's crop box, defaults to anchor value set in
8383
`imaging` section of the site configuration (usually `Smart`).
8484
options:
@@ -173,7 +173,7 @@ arguments:
173173
optional: true
174174
default: full
175175
comment: >-
176-
Body components of the element.
176+
Body components of the element.
177177
options:
178178
values:
179179
- full
@@ -183,7 +183,7 @@ arguments:
183183
border:
184184
type: bool
185185
optional: true
186-
comment: Flag add a border to the element.
186+
comment: Flag to add a border to the element.
187187
breadcrumb:
188188
type: bool
189189
optional: true
@@ -228,7 +228,7 @@ arguments:
228228
type: select
229229
optional: true
230230
default: enabled
231-
comment: State of the button.
231+
comment: State of the button.
232232
options:
233233
values:
234234
- enabled
@@ -403,6 +403,18 @@ arguments:
403403
optional: true
404404
comment: >-
405405
Description of the element.
406+
device:
407+
type: select
408+
optional: true
409+
default: desktop
410+
comment: >-
411+
Device view to display by default in preview component. Determines the
412+
initial iframe dimensions and active tab.
413+
options:
414+
values:
415+
- desktop
416+
- tablet
417+
- mobile
406418
dims:
407419
type:
408420
- slice
@@ -536,7 +548,7 @@ arguments:
536548
optional: true
537549
default: full
538550
comment: >-
539-
Header components of the element, displayed in small caps.
551+
Header components of the element, displayed in small caps.
540552
options:
541553
values:
542554
- full
@@ -676,7 +688,7 @@ arguments:
676688
optional: false
677689
comment: >-
678690
List input of the element. Uses the name of the section to retrieve known
679-
pages.
691+
pages.
680692
instructions:
681693
type: instructions
682694
optional: true
@@ -717,7 +729,7 @@ arguments:
717729
label:
718730
type: string
719731
optional: true
720-
comment: >-
732+
comment: >-
721733
Assistive label of the element.
722734
lang:
723735
type: string
@@ -786,7 +798,7 @@ arguments:
786798
- links
787799
- '[]map[string]interface {}'
788800
optional: true
789-
comment: Links to add as buttons.
801+
comment: Links to add as buttons.
790802
list:
791803
type:
792804
- 'page.Pages'
@@ -871,7 +883,7 @@ arguments:
871883
minimal:
872884
type: bool
873885
optional: true
874-
comment: Renders the element with without a title.
886+
comment: Renders the element without a title.
875887
messages:
876888
type: messages
877889
optional: true
@@ -949,7 +961,7 @@ arguments:
949961
optional: true
950962
comment: >-
951963
If set, retrieves all pages below the section or current page recursively.
952-
By default, only first-order childs are retrieved.
964+
By default, only first-order children are retrieved.
953965

954966
# o
955967
options:
@@ -1017,7 +1029,7 @@ arguments:
10171029
optional: true
10181030
comment: >-
10191031
Flag indicating if pagination should be added to the element, if the
1020-
list exceeds the maximum number of containing elements to display.
1032+
list exceeds the maximum number of containing elements to display.
10211033
group: partial
10221034
pagination:
10231035
type: int
@@ -1053,7 +1065,7 @@ arguments:
10531065
passthrough:
10541066
type: bool
10551067
optional: true
1056-
comment: Flag to bypass wrapping of building block;
1068+
comment: Flag to bypass wrapping of building block.
10571069
group: partial
10581070
path:
10591071
type: path
@@ -1079,11 +1091,11 @@ arguments:
10791091
type: bool
10801092
default: false
10811093
optional: true
1082-
comment:
1094+
comment: >-
10831095
Flag to indicate if the current element should be rendered as plain. For
10841096
image, this implies no transformations are applied. For navbar items,
10851097
this ignores any children.
1086-
popup:
1098+
popup:
10871099
type: string
10881100
optional: true
10891101
comment: Optional text of a popup marker.
@@ -1240,7 +1252,7 @@ arguments:
12401252
`scroll` is set to true, a horizontal scroll bar is added instead.
12411253
section:
12421254
type: string
1243-
optional: true
1255+
optional: true
12441256
comment: Name of the content section.
12451257
searchable:
12461258
type: bool
@@ -1391,7 +1403,7 @@ arguments:
13911403
type: path
13921404
optional: true
13931405
comment: >-
1394-
Thumbnail image url, displayed on top or the left of the element.
1406+
Thumbnail image URL, displayed at the top or to the left of the element.
13951407
title:
13961408
type:
13971409
- string
@@ -1410,7 +1422,7 @@ arguments:
14101422
type: string
14111423
optional: true
14121424
comment: >-
1413-
Text to display in a tooltip. Cannot be used together with
1425+
Text to display in a tooltip. Cannot be used together with
14141426
collapse-id. Ignored for active/inactive buttons.
14151427
transform:
14161428
type: select
@@ -1454,13 +1466,13 @@ arguments:
14541466
type: string
14551467
optional: true
14561468
comment: User to add to the prompt, e.g. `user`.
1457-
use-section:
1469+
use-section:
14581470
type: bool
14591471
optional: true
14601472
default: false
14611473
comment: >-
14621474
Trigger to use the current section as preheading, applies to single pages
1463-
only. Any preheading values takes precedence.
1475+
only. Any preheading values take precedence.
14641476
use-title:
14651477
type: bool
14661478
optional: true
@@ -1511,7 +1523,7 @@ arguments:
15111523
wrapper:
15121524
type: string
15131525
optional: true
1514-
comment:
1526+
comment: >-
15151527
Class attribute of the element's wrapper. It supports Bootstrap attributes
15161528
to modify the styling of the element. Icons include the `fa-wrapper` and
15171529
`fa-fluid` attributes by default.

data/structures/_types.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ types:
4242
instructions:
4343
cta:
4444
title:
45-
url:
45+
url:
4646
label:
4747
input:
4848
section:

data/structures/log.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ arguments:
66
default: warn
77
options:
88
values:
9-
- warn
10-
- error
9+
- warn
10+
- error
1111
group: partial
1212
comment: >-
1313
Type of message, either warning or error. The build fails on errors.
@@ -34,20 +34,20 @@ arguments:
3434
type: string
3535
optional: true
3636
group: partial
37-
comment: ->
37+
comment: >-
3838
Name of the partial where the message originated from.
3939
position:
4040
type: text.Position
4141
optional: true
4242
group: partial
43-
comment:
43+
comment: >-
4444
File name and location where the message originated from, only applicable
4545
to shortcodes.
4646
file:
4747
type: '*source.File'
4848
optional: true
4949
group: partial
50-
comment:
50+
comment: >-
5151
File name the message originated from, usually relevant for partials only.
5252
Use `position` when logging a message from within a shortcode, as this
5353
provides more details.

0 commit comments

Comments
 (0)