You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/item.md
+68-2Lines changed: 68 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -487,7 +487,7 @@ Introduced in v2.2, Doorstop can include extended attributes in published output
487
487
488
488
Edit the document configuration file `.doorstop.yml` by hand to include the desired attributes.
489
489
490
-
For example, to include the `invented-by` extended attribute key and value in the published output:
490
+
For example, to include the `invented-by` extended attribute in the published output:
491
491
492
492
```yaml
493
493
settings:
@@ -497,4 +497,70 @@ settings:
497
497
attributes:
498
498
publish:
499
499
- invented-by
500
-
```
500
+
```
501
+
502
+
For simple scalar attributes (strings, numbers), the value is rendered directly in the output table.
503
+
504
+
For list attributes, the values are joined with `<br>` as separator:
505
+
506
+
```yaml
507
+
# Item attribute:
508
+
verification-method:
509
+
- system test
510
+
- analysis
511
+
512
+
# Rendered as:
513
+
# | verification-method | system test<br>analysis |
514
+
```
515
+
516
+
### Publishing sub-attributes of structured attributes
517
+
518
+
When an extended attribute contains a **list of dictionaries** (a structured attribute), you can select specific sub-attributes for publishing instead of rendering the raw object.
519
+
520
+
Use the attribute name directly as key with a `fields` configuration:
0 commit comments