diff --git a/apps/docs/.env.example b/apps/docs/.env.example index 2233a876..ccfff968 100644 --- a/apps/docs/.env.example +++ b/apps/docs/.env.example @@ -4,6 +4,10 @@ NUXT_PUBLIC_BASE_URL=http://localhost:4000 +# Where `::storybook-embed` blocks point. Defaults to the deployed Storybook; +# point it at `pnpm --filter @styleframe/storybook dev` to work on embeds. +NUXT_PUBLIC_STORYBOOK_BASE_URL=http://localhost:6006 + # # Posthog # diff --git a/apps/docs/AGENTS.md b/apps/docs/AGENTS.md index f4679fe8..feb1d79c 100644 --- a/apps/docs/AGENTS.md +++ b/apps/docs/AGENTS.md @@ -154,13 +154,17 @@ More content. :: ``` -### Story Previews (Component demos) +### Storybook Embeds (Component demos) + +`mode` picks the Storybook surface: `full` for the story with its toolbar, +`panel` when the demo is read through the controls or actions panel, `preview` +for a bare canvas. ```markdown -::story-preview +::storybook-embed --- story: theme-recipes-feedback-badge--default -panel: true +mode: panel --- :: ``` diff --git a/apps/docs/app/components/content/StoryPreview.vue b/apps/docs/app/components/content/StoryPreview.vue deleted file mode 100644 index 298c1959..00000000 --- a/apps/docs/app/components/content/StoryPreview.vue +++ /dev/null @@ -1,116 +0,0 @@ - - -