97 Commits

Author SHA1 Message Date
Michael Shilman
8d873b6e64 Build: Fix TOC stories for cra/default-js 2023-07-07 17:37:10 +08:00
Michael Shilman
3756a92637
Revert "Revert "Addon-docs: Add opt-in table of contents"" 2023-07-06 17:58:20 +08:00
Michael Shilman
deeac77377
Revert "Addon-docs: Add opt-in table of contents" 2023-07-06 17:54:03 +08:00
Michael Shilman
76ca248055 Cleanup 2023-07-06 00:27:53 +08:00
Michael Shilman
e09f436a8a Addon-docs: Add TOC stories 2023-07-06 00:14:55 +08:00
Valentin Palkovic
6a5c2e5377 Add e2e tests to verify parameters.docs.source.type === 'code' behaviour 2023-04-12 16:02:14 +02:00
Jeppe Reinhold
680fdfbf3c pass story context to source transformer 2023-03-24 09:58:21 +01:00
Jeppe Reinhold
b36ad4d239 update source template stories 2023-03-23 11:49:04 +01:00
Tom Coleman
7bbc0e644f Add an intentionally failing MDX file
This reverts commit e7558619dd0121af19fc79ade7cf860cc054993c.
2023-03-03 13:03:06 +11:00
Tom Coleman
e7558619dd Revert "Add an intentionally failing MDX file"
This reverts commit 018ea7a304780d53955c4488e22a8171e5eeec72.
2023-03-03 13:01:36 +11:00
Tom Coleman
018ea7a304 Add an intentionally failing MDX file 2023-03-03 13:01:16 +11:00
Tom Coleman
445873f6c5 Throw differently to avoid frameworks that always call render 2023-02-24 09:40:37 +11:00
Tom Coleman
a6b5b5d704 Render something in TR 2023-02-23 21:30:38 +11:00
Tom Coleman
feb05af13a Disable error story in storyshots 2023-02-23 19:45:37 +11:00
Tom Coleman
c476261ac8 Add a story that throws 2023-02-23 16:04:43 +11:00
Tom Coleman
78c0d6e7cc Rename csf-in-mdx stories file to not trigger error 2023-02-16 17:25:53 +11:00
Tom Coleman
58a48317b1 Tweak sandbox stories 2023-02-01 16:50:16 +11:00
Tom Coleman
98d4ba12f3 Turn on autodocs for CSF with attached meta.
For https://github.com/storybookjs/storybook/issues/20864
2023-02-01 15:53:30 +11:00
Tom Coleman
ba5f3f166b Allow "declaring" stories with story={} 2023-01-20 17:50:38 +11:00
Tom Coleman
9107ba6422 Resolve issue with unattached .mdx files 2023-01-18 10:27:39 +11:00
Tom Coleman
695a158e8c Update parameter in autoplay story 2023-01-16 11:35:59 +11:00
Tom Coleman
dfcda80d64 Fixed a couple I missed 2023-01-10 17:00:24 +11:00
Tom Coleman
c577b43648 Update everything to use story.inline and story.height parameters 2023-01-10 16:32:24 +11:00
Tom Coleman
427ec4433d Rename docsPage to autodocs
And change semantics: `docsPage:true` = `autodocs: 'tag'` and `docsPage: 'automatic'` = `autodocs: true`.
2022-12-21 21:49:57 +11:00
Norbert de Langen
3342776320
fix references to global in template dirs 2022-12-09 22:03:35 +01:00
Michael Shilman
0e99426ee7 Add non-story content to test mdxSource generation 2022-11-07 14:41:24 +08:00
Tom Coleman
8ce29a01ad
Merge pull request #19750 from storybookjs/tom/sb-754-hmr-does-not-detect-addedremoved-stories
Sandboxes: Fix up stories entry to allow HMR
2022-11-07 14:31:24 +11:00
Tom Coleman
55e59e7a0e Remove unnecessary titles 2022-11-04 16:23:21 +11:00
Tom Coleman
08863527cf Merge remote-tracking branch 'origin/next' into tom/sb-882-use-mdx-tag-instead-of-matching-on 2022-11-04 13:22:40 +11:00
Tom Coleman
405a53e003 Fix missing import 2022-11-04 13:20:12 +11:00
Tom Coleman
40e298c14f Merge remote-tracking branch 'origin/next' into tom/sb-888-disable-play-functions-in-docs-if-not 2022-11-04 11:02:15 +11:00
Michael Shilman
2c4c25d692 Added some testcases 2022-10-29 21:31:51 +08:00
Michael Shilman
52fab185a9 Merge branch 'next' into shilman/csf-plugin 2022-10-29 11:15:45 +08:00
Tom Coleman
3da2d94c76 Add e2e spec for autoplay 2022-10-28 16:00:41 +11:00
Tom Coleman
a30ddf0b65 Update autoplay stories to not rely on the console 2022-10-28 15:47:25 +11:00
Tom Coleman
e6c9cf3ed0 Don't run play functions in docs unless parameters.docs.autoplay is set. 2022-10-28 11:29:40 +11:00
Tom Coleman
880739d940 Don't show docspage unless the user opts in 2022-10-26 17:32:44 +11:00
Michael Shilman
7294835489 MDX iframe stories 2022-10-22 23:45:55 +08:00
Michael Shilman
4af38a6b04 Fix broken sandbox MDX 2022-10-15 14:46:48 +08:00
Norbert de Langen
7a18607c20
problem was between keyboard and chair (it was me) 2022-10-12 13:44:50 +02:00
Norbert de Langen
04922dfa67
convert even more children-props to label-props 2022-10-12 12:22:22 +02:00
Norbert de Langen
71904dbd30
Merge branch 'next' into norbert/sb-702-migrate-stories-and-delete-official 2022-10-11 10:04:07 +02:00
Norbert de Langen
17a3e2c6fd
Merge branch 'next' into shilman/generic-mdx-stories 2022-10-05 16:13:54 +02:00
Michael Shilman
bcb4722860 Refactor MDX examples to sandboxes 2022-09-30 11:45:16 +08:00
Michael Shilman
3542152166 Fix deepscan 2022-09-11 22:33:56 +08:00
Michael Shilman
d8dc4291a3 Add auto-description example for docspage 2022-09-11 17:04:40 +08:00
Michael Shilman
fd8607a731 Addon-docs: Generic DocsPage stories to replace examples 2022-09-10 12:15:49 +08:00