Skip to content

Commit ac1e930

Browse files
committed
chore(docs): 重跑 gen:docs —— 两页占位符示例改为围栏代码块 (#5553)
纯生成物。data/date-macros、data/context-tokens 的占位符示例由缩进块变为 围栏块,花括号不再转义。全量 216 张参考页均通过 @mdx-js/mdx 编译。
1 parent 70fd4e1 commit ac1e930

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

‎content/docs/references/data/context-tokens.mdx‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ These are the sibling vocabulary to `{date-macros}`. Filter values in
1414
dashboards, views, reports and pages travel as JSON, so a user-scoped
1515
slice cannot call `currentUser().id` inline — it writes a placeholder:
1616

17-
{ owner_id: '{current_user_id}' }
18-
[{ field: 'owner', operator: 'equals', value: '{current_user_id}' }]
17+
```
18+
{ owner_id: '{current_user_id}' }
19+
[{ field: 'owner', operator: 'equals', value: '{current_user_id}' }]
20+
```
1921

2022
Like date macros, the placeholders are expanded on **both** sides of
2123
the wire (framework#3582): `resolveContextTokens()` in

‎content/docs/references/data/date-macros.mdx‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ Filter values in dashboards, views, reports and pages travel as JSON.
1414
Because JSON cannot evaluate code, callers cannot write `daysAgo(30)`
1515
inline; they use a tiny placeholder grammar instead:
1616

17-
{ published_at: { $gte: '{last_quarter_start}' } }
18-
{ signal_at: { $gte: '{30_days_ago}' } }
17+
```
18+
{ published_at: { $gte: '{last_quarter_start}' } }
19+
{ signal_at: { $gte: '{30_days_ago}' } }
20+
```
1921

2022
The placeholders are expanded on **both** sides of the wire, so a
2123
filter behaves the same wherever it is executed (framework#3582):

0 commit comments

Comments
 (0)