780 Commits

Author SHA1 Message Date
Mostafa Sherif
52afb7fb93 update docs with @shilman comments 2023-01-20 03:16:04 +00:00
Mostafa Sherif
8018413e83
run docs:prettier:write 2023-01-19 20:43:16 -05:00
Mostafa Sherif
8660f62a30
update .mdx files with prettier 2023-01-19 20:37:26 -05:00
Mostafa Sherif
487c94ff98
docs: add documentation for story indexers
Closes #20478
2023-01-19 20:12:56 -05:00
Tom Coleman
fa16ccb518
Merge pull request #20530 from storybookjs/tom/sb-1144-update-api-of-story-block
Docs: Refactor props of Story block
2023-01-18 08:12:19 +11:00
Kasper Peulen
b89c686969
Merge pull request #20640 from storybookjs/ts-49-exampl
Docs: Add TS 4.9 snippets for React
2023-01-17 21:06:21 +01:00
Kasper Peulen
7452663a26 Prettyyy 2023-01-17 08:10:49 +01:00
Kasper Peulen
0eb86e3660 Add react examples back 2023-01-17 06:57:19 +01:00
Kasper Peulen
d608c139ef Delete files 2023-01-17 06:47:54 +01:00
Ian VanSchooten
eae25626ff Update docs for type import change 2023-01-16 22:48:54 -05:00
Kasper Peulen
5086938693 Create the ts 4.9 examples 2023-01-16 20:19:05 +01:00
Kasper Peulen
de3470aeef Fix syntax errors 2023-01-16 20:19:05 +01:00
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
Tom Coleman
3116dd7f35 Merge remote-tracking branch 'origin/next' into tom/sb-1144-update-api-of-story-block 2023-01-13 20:04:02 +11: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
Tom Coleman
c577b43648 Update everything to use story.inline and story.height parameters 2023-01-10 16:32:24 +11: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