@graphit/cli 0.1.27 → 0.1.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/skills/graphit/SKILL.md
CHANGED
|
@@ -248,7 +248,7 @@ For metrics with natural variant axes (D7/D30/D90, gross/net), propose parameter
|
|
|
248
248
|
| `graphit dashboard list --view shared` | Only dashboards shared with you |
|
|
249
249
|
| `graphit dashboard list --team <id>` | Only dashboards shared with a specific team |
|
|
250
250
|
| `graphit team list` | List teams you belong to (org admins see all) |
|
|
251
|
-
| `graphit dashboard export <id>` | Export dashboard as PNG (default) or PDF (`--format pdf`, `--output <path>`) |
|
|
251
|
+
| `graphit dashboard export <id>` | Export dashboard as PNG (default) or PDF (`--format pdf`, `--output <path>`). Presentations export as multi-page PDF (one slide per page) automatically. For custom multi-page layouts, add `data-graphit-page="N"` (0-indexed) to each section element. |
|
|
252
252
|
| `graphit metadata schemas --connection <id>` | List Snowflake schemas |
|
|
253
253
|
| `graphit connector list` | List active connections |
|
|
254
254
|
|
|
@@ -49,6 +49,10 @@ Arrow keys, spacebar, Home/End. Prev/Next buttons bottom-right with slide counte
|
|
|
49
49
|
|
|
50
50
|
`graphit.resolve()` + `graphit.chart/table/kpi` work inside slides. Entity wrapping (`data-graphit-*`) works normally.
|
|
51
51
|
|
|
52
|
+
## PDF Export
|
|
53
|
+
|
|
54
|
+
Presentations export as multi-page PDF (one slide per page) automatically via `graphit dashboard export <id> --format pdf`. The SDK adds `data-graphit-page` attributes to each slide. For custom multi-page layouts without `graphit.presentation()`, add `data-graphit-page="N"` (0-indexed) to each section manually.
|
|
55
|
+
|
|
52
56
|
## Anti-Patterns
|
|
53
57
|
|
|
54
58
|
- Don't use external fonts/images (CSP blocks). Embed as base64 or use system fonts.
|
|
@@ -109,6 +109,7 @@ You are the rendering layer - format and present every CLI result using markdown
|
|
|
109
109
|
5. **Build HTML** - write `graphit.resolve()` calls for live data + `graphit.chart/table/kpi` for rendering. All CSS in `<style>`, all JS in `<script>`.
|
|
110
110
|
6. **Save** with `graphit dashboard update-html <id> --file <path>`. If the response contains `entity_sql_warnings`, an entity's `data-graphit-sql` is missing, matches no data source, or fails against the DS schema - fix the flagged entities and save again before finishing.
|
|
111
111
|
7. Give the user the dashboard URL.
|
|
112
|
+
8. **Export** with `graphit dashboard export <id> --format pdf`. Presentations export as multi-page PDF automatically. For custom multi-page layouts, add `data-graphit-page="N"` (0-indexed) to each section.
|
|
112
113
|
|
|
113
114
|
## Workflow: KB Build / Onboarding
|
|
114
115
|
|