Skip to content

Commit 7e1f397

Browse files
mcrascalevidence-bot
authored andcommitted
docs: fix unclosed fence in workflow.period page settings (#2022)
GitOrigin-RevId: 4f2d7c57e44ac409267b68753871d8a0a8c21b54
1 parent 94dc0d1 commit 7e1f397

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

‎docs/features/page-settings.mdx‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ theme:
6262

6363
Adding a `workflow.period` block turns the page into a **periodic report**: a period picker appears at the top right, and the selected period is available as the `period` variable.
6464

65-
```markdown
65+
````markdown
6666
---
6767
title: Monthly Operations Report
6868
workflow:
@@ -78,15 +78,13 @@ select count(*) as orders
7878
from demo.daily_orders
7979
where order_date {{ period.between }}
8080
```
81-
```
81+
````
8282

8383
| Key | Type | Description |
8484
| --- | --- | --- |
8585
| `grain` | `day` \| `week` \| `month` \| `quarter` \| `year` | The calendar period each entry covers. Defaults to `month`. |
8686
| `periods` | number | How many periods the picker offers, between 1 and 500. Defaults to `12`. |
8787

88-
`start` and `end` are SQL expressions for the active dialect — writing them in markdown prints `toDate('2026-07-01')`. Use `start_label` / `end_label` for text.
89-
9088
Only **complete** periods are offered — the period in progress never appears, so a published report doesn't change under the reader while its period is still running. The most recent complete period is selected by default, and the selection is kept in the URL so a link points at a specific period.
9189

9290
`period` behaves like any other [input](/core-concepts/variables#in-inputs):
@@ -101,7 +99,8 @@ Only **complete** periods are offered — the period in progress never appears,
10199
| `period.end_label` | `Jul 31, 2026` | Last date of the period, formatted for display. |
102100
| `period.key` | `2026-07` | Stable identifier for the period. |
103101
| `period.grain` | `month` | The configured grain. |
104-
| `period.filter` | `order_date >= … AND order_date <= …` | Complete filter expression. Requires `value_column`. |
102+
103+
`period.start` and `period.end` are SQL expressions for the active dialect — writing them in markdown prints `toDate('2026-07-01')`. Use `start_label` / `end_label` for text.
105104

106105
`workflow` is reserved for reporting settings; other keys under it are ignored for now.
107106

0 commit comments

Comments
 (0)