Skip to content

Commit 0beee9d

Browse files
committed
llm friendly docs: demo expression context
1 parent cb02d55 commit 0beee9d

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

dashjoin-docs/docs/appendix-widgets.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ Used to visualize the result of any jsonata expression. Here, we display the cur
1515
"display" : "value"
1616
}
1717
```
18+
## display widget UI state
19+
Used to visualize the result of any jsonata expression. Here, we display current URL, theme (light/dark), screen width, and location info
20+
```json
21+
{
22+
"display" : "[href, theme, width, loc]",
23+
"widget" : "display"
24+
}
25+
```
1826
## display widget showing object
1927
Used to visualize the result of any jsonata expression. Here, we display the current time as a key-value list
2028
```json

dashjoin-docs/llms/widget.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@
1616
"display": "value"
1717
}
1818
},
19+
{
20+
"title": "display widget UI state",
21+
"description": "Used to visualize the result of any jsonata expression. Here, we display current URL, theme (light/dark), screen width, and location info",
22+
"code": {
23+
"display": "[href, theme, width, loc]",
24+
"widget": "display"
25+
}
26+
},
1927
{
2028
"title": "display widget showing object",
2129
"description": "Used to visualize the result of any jsonata expression. Here, we display the current time as a key-value list",

llms.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ CODE: {
1818
"display" : "value"
1919
}
2020

21+
TITLE: display widget UI state
22+
DESCRIPTION: Used to visualize the result of any jsonata expression. Here, we display current URL, theme (light/dark), screen width, and location info
23+
LANGUAGE: json
24+
CODE: {
25+
"display" : "[href, theme, width, loc]",
26+
"widget" : "display"
27+
}
28+
2129
TITLE: display widget showing object
2230
DESCRIPTION: Used to visualize the result of any jsonata expression. Here, we display the current time as a key-value list
2331
LANGUAGE: json

0 commit comments

Comments
 (0)