766 Commits

Author SHA1 Message Date
jonniebigodes
e19cb11ce5
Merge pull request #20633 from storybookjs/chore_minor_docs_snippets_additions
Chore: (Docs) Updates to code snippets and docs
2023-01-16 13:20:16 +00:00
jonniebigodes
e6b4b07e2f Updates to code snippets and docs 2023-01-16 12:58:08 +00:00
Norbert de Langen
a27905d153
Merge pull request #20619 from ethanmick/ethanmick/fix-deprecated-react-vfc
fix: Change deprecated `React.VFC` to `React.FC`
2023-01-16 11:33:46 +01:00
Ethan Mick
6d29300a5e
fix: Change deprecated React.VFC to React.FC
The type `VFC` (VoidFunctionComponent) is deprecated and is equivalent
to `FC` (FunctionalComponent).

https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react/index.d.ts#L531

This commit updates the generated files from an installation to use the
non-deprecated React type.
2023-01-13 13:12:51 -05:00
Kyle Gach
b9ed98f4ec Format snippets 2023-01-13 09:40:13 -07:00
Kyle Gach
45d053b1bc Address comments
- Add missing snippet
2023-01-13 08:24:29 -07:00
Kyle Gach
b97d94e005 Address feedback
- Newline following filename comment
- Fix URLs in comments
- Ensure consistent usage of `ts` vs `tsx` language
2023-01-12 14:17:39 -07:00
Kyle Gach
3c45882cb1 Update web components snippets (JS & TS)
- For these pages (so far):
  - /docs/get-started/whats-a-story
  - /docs/get-started/setup
  - /docs/writing-stories/introduction
  - /docs/writing-stories/args
  - /docs/writing-stories/parameters
  - /docs/writing-stories/decorators
  - /docs/writing-stories/play-function
  - /docs/writing-stories/loaders
  - /docs/writing-stories/build-pages-in-storybook
  - /docs/writing-stories/stories-for-multiple-components
  - /docs/api/csf

- Convert some snippets to "common" ones
- Remove unused snippets
2023-01-11 21:35:19 -07:00
Kyle Gach
0a34c159e6 Add language to snippet filenames 2023-01-07 20:40:46 -07:00
jonniebigodes
3b7f386470 Snippets updates 2023-01-06 19:15:31 +00:00
jonniebigodes
ffa8a2cd40
Merge pull request #20344 from storybookjs/chore_docs_adds_wc_snippets
Chore: (Docs) Adds Missing Web component snippets
2023-01-05 16:13:18 +00:00
jonniebigodes
85705223d6 Fix docs prettier 2023-01-05 14:59:46 +00:00
jonniebigodes
b47789d100 Updates per feedback 2023-01-05 14:53:03 +00:00
Ian VanSchooten
af349c8b8e Add extension to all lodash imports 2022-12-30 12:15:08 -05:00
jonniebigodes
857721dddd Update snippet for CI 2022-12-23 19:16:40 +00:00
jonniebigodes
2c8e34e0b2 Fix typo in import 2022-12-23 18:51:10 +00:00
jonniebigodes
55567c564f API - CSF page 2022-12-23 18:48:39 +00:00
jonniebigodes
470e4ecf71 A11y testing 2022-12-23 16:29:53 +00:00
jonniebigodes
def3a69d47 Fix prettier issue for wc button example 2022-12-22 15:16:47 +00:00
jonniebigodes
5ab2cade7d Minor fixes to wc snippets 2022-12-22 15:06:02 +00:00
jonniebigodes
274fc37f7f API to Configure section examples 2022-12-22 15:02:43 +00:00
jonniebigodes
73fd4bdae9 Up to Essential section 2022-12-21 14:51:22 +00: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
jonniebigodes
befbe50cbe Adds AutoDocs webcomponent snippet (js/ts) 2022-12-20 15:05:06 +00:00
Norbert de Langen
88f59313b3
Merge branch 'next' into norbert/sb-1063-vite-in-dev-mode-with-storystorev6 2022-12-20 13:14:52 +01:00
jonniebigodes
59f4096f88
Merge branch 'next' into docs-updates-for-mdx-2 2022-12-16 13:29:07 +00:00
Michael Shilman
8ae0b6129e Run prettier on docs snippets 2022-12-16 14:55:59 +08:00
jonniebigodes
d74d4a9c71
Merge pull request #20233 from storybookjs/chore_adds_docs_2_docs
Chore: (Docs)Adds Docs 2 documentation
2022-12-16 00:00:39 +00:00
jonniebigodes
b091395192 Example Updated 2022-12-15 23:32:19 +00:00
jonniebigodes
a77a31ef2f Polish per feedback 2022-12-15 23:25:44 +00:00
jonniebigodes
9163669687 More feedback addressed 2022-12-15 20:24:23 +00:00
jonniebigodes
c101804670 Additional feedback addressed 2022-12-15 20:07:37 +00:00
Kyle Gach
bba86c86bc Remove /docs/api/mdx
- Update TOC
- Will redirect to `/docs/writing-docs/mdx`, as the content was almost entirely duplicated
- Remove unused images and snippets
2022-12-14 21:37:50 -07:00
Kyle Gach
76982ec019 Update /docs/writing-docs/mdx for Docs/MDX 2 2022-12-14 21:37:50 -07:00
Norbert de Langen
d7fb0c316f
Merge branch 'next' into norbert/sb-1063-vite-in-dev-mode-with-storystorev6 2022-12-14 22:56:01 +01:00
Valentin Palkovic
a66de7df4e Fix prettier issue in docs 2022-12-14 15:57:23 +01:00
Tom Coleman
f4043f1513 Fix bad formatting 2022-12-14 22:22:58 +11:00
Tom Coleman
120aa23413 Missed one thing 2022-12-14 12:45:33 +11:00
Tom Coleman
cd3f944987 Make vite's bail function actually work 2022-12-14 12:42:59 +11:00
jonniebigodes
df17553de0 Adds Docs 2 documentation 2022-12-13 18:22:21 +00:00
Norbert de Langen
5653ec8285
Merge branch 'next' into norbert/sb-1063-vite-in-dev-mode-with-storystorev6 2022-12-12 14:01:49 +01:00
jonniebigodes
4f511dfd33
Merge pull request #19977 from JohnAlbin/patch-1
Add first MDX example for storybook/html
2022-12-09 23:29:57 +00:00
Norbert de Langen
f5260920ca
fixing typings issues 2022-12-09 20:44:55 +01:00
jonniebigodes
89444a424e Update per pre-release version 2022-12-09 12:06:38 +00:00
jonniebigodes
e90e5dd5ac Adds docs on how to configure Storybook frameworks 2022-12-06 21:13:52 +00:00
Kyle Gach
c990dbdd09 Address comments
- Update web-components snippet per https://github.com/storybookjs/storybook/pull/20053#discussion_r1037861514
2022-12-05 12:37:36 -07:00
Kyle Gach
74f3252ff8 Add CSF 2->3 upgrade docs & snippets 2022-12-05 12:37:36 -07:00
Kyle Gach
2cee61b651 Update snippets to CSF 3
- Fix some minor errors
2022-12-05 12:37:36 -07:00
Michael Shilman
44f70aab00 Merge branch 'next' into tech/remove-postcss 2022-12-05 13:48:36 +08:00
jonniebigodes
2cbadbf733 Configure section Vue TS 2022-12-04 16:08:06 +00:00