doc: add block, carousel, fix row and update element daletl representation

This commit is contained in:
Artemy Egorov 2024-07-27 13:49:09 +03:00
parent 584970fe93
commit 6236a8f916

View file

@ -22,7 +22,7 @@ Element also used if no tag is specified.
**Daletl example (json5 representation)**: **Daletl example (json5 representation)**:
```json5 ```json5
[0, "Dalet"] "I am Element"
``` ```
## 1. Heading ## 1. Heading
@ -121,13 +121,7 @@ ul: {
**Daletl example (json5 representation)**: **Daletl example (json5 representation)**:
```json5 ```json5
[ [4, ["Item 1", "Item 2"]]
4,
[
[0, "Item 1"],
[0, "Item 2"],
],
]
``` ```
## 5. Ordered list ## 5. Ordered list
@ -154,26 +148,19 @@ ol: {
**Daletl example (json5 representation)**: **Daletl example (json5 representation)**:
```json5 ```json5
[ [5, ["Item", "Item", "Item"]]
5,
[
[0, "Item"],
[0, "Item"],
[0, "Item"],
],
]
``` ```
## 6. Row ## 6. Row
| Property | Description | | Property | Description |
| -------- | ------------------------------ | | -------- | ---------------------- |
| name | row | | name | row |
| id | 6 | | id | 6 |
| body | tags | | body | tags |
| argument | string (optional); center, end | | argument | (optional); start, end |
Splits the text into rows. Splits the text into rows. The alignment argument specifies how the items inside the row are aligned. By default it is aligned to the center.
**Daleth example**: **Daleth example**:
@ -183,22 +170,22 @@ row: {
Right Right
} }
row[center]: { row[start]: {
Left Left
Right Right
} }
``` ```
Argument converts to numbers in daletl.
start -> 0
end -> 1
**Daletl example (json5 representation)**: **Daletl example (json5 representation)**:
```json5 ```json5
[ [6, ["Left", "Right"]]
6, [6, ["Left", "Right"], 0]
[
[0, "Left"],
[0, "Right"],
],
]
``` ```
## 7. Link ## 7. Link
@ -676,3 +663,57 @@ disc[Click to expand]: I am Disclosure
```json5 ```json5
[25, "I am Disclosure", "Click to expand"] [25, "I am Disclosure", "Click to expand"]
``` ```
## 26. Block
| Property | Description |
| -------- | ----------- |
| name | bl |
| id | 26 |
| body | text, tags |
| argument | start, end |
Creates block element. Can be used for aligning. By default aligned to center.
**Daleth example**:
```yaml
bl: I am Block
```
Argument converts to numbers in daletl.
start -> 0
end -> 1
**Daletl example (json5 representation)**:
```json5
[26, "I am Block", 0]
```
## 27. Carousel
| Property | Description |
| -------- | ----------- |
| name | carousel |
| id | 27 |
| body | tags |
| argument | no |
Creates carousel.
**Daleth example**:
```txt
carousel: {
Example 1
Example 2,
}
```
**Daletl example (json5 representation)**:
```json5
[27, ["Example 1", "Example 2"]]
```