510 Commits

Author SHA1 Message Date
Valentin Palkovic
ff1794be89 Merge remote-tracking branch 'origin/next' into valentin/support-docs-source-transform-async 2025-04-01 12:21:47 +02:00
Norbert de Langen
405402fd08 Remove allowFunction option from various configurations and tests, simplifying serialization logic across the codebase. Update documentation to reflect the removal of this option. 2025-03-31 15:55:21 +02:00
Valentin Palkovic
85712bc368 Add example for using Prettier to format source code snippets in documentation 2025-03-31 11:53:55 +02:00
Valentin Palkovic
18c95cc5cb Remove deprecated format option from documentation for source code snippets in Storybook. 2025-03-31 11:51:34 +02:00
Valentin Palkovic
c44f11400e Merge remote-tracking branch 'origin/next' into valentin/support-docs-source-transform-async 2025-03-31 11:48:02 +02:00
Valentin Palkovic
f79e8b2c98 Next.js-Vite: Stabilizing @storybook/experimental-nextjs-vite 2025-03-28 09:28:48 +01:00
Norbert de Langen
df761412cf
Merge branch 'next' into norbert/viewport-background-addon 2025-03-18 15:23:44 +01:00
Norbert de Langen
a920973d5a Refactor backgrounds addon to remove legacy globals and components. Simplify configuration by eliminating backgroundsStoryGlobals feature and related legacy tools. Update documentation accordingly. 2025-03-18 10:36:39 +01:00
Norbert de Langen
4a153d6091 Remove viewportStoryGlobals feature and legacy viewport tool. Update viewport addon to use modern globals. Clean up related documentation and types. 2025-03-18 10:27:04 +01:00
Kenrick
c9e0fd4902
Fix broken link to migration guide 2025-03-17 16:51:41 +08:00
Valentin Palkovic
4405dc9ae6 Fix some left-over references 2025-03-05 15:35:01 +01:00
Valentin Palkovic
11a91f451d Rename @storybook/test to storybook/test 2025-03-05 15:35:00 +01:00
Michael Shilman
955487c810 Address code review comments 2025-03-01 13:14:56 +08:00
Michael Shilman
7a60f83374 Merge branch 'next' into shilman/build-index 2025-03-01 13:09:52 +08:00
Norbert de Langen
ed82b3b7f5 Merge branch 'next' into norbert/merge-core-cli 2025-02-24 13:05:02 +01:00
Michael Shilman
7d99f490c5 Document storybook index command 2025-02-24 00:23:20 +08:00
Kyle Gach
9909bcaa21
Merge branch 'next' into docs-csf-factories-fixes 2025-02-20 08:59:37 -07:00
Kyle Gach
24b1437346 Adjustments 2025-02-20 08:44:11 -07:00
Kyle Gach
e261d930c6
Prose tweaks
Co-authored-by: jonniebigodes <joaocontadesenvolvimento@gmail.com>
2025-02-20 07:51:11 -07:00
Gert Hengeveld
728dcf06c1 Small fixes 2025-02-20 13:42:41 +01:00
Gert Hengeveld
b8cc9c99b6 Update documentation to prefer 'create storybook' over 'storybook init' and clean up CLI reference 2025-02-20 13:21:37 +01:00
Kyle Gach
5855a0f716 Remove mentions of codemod 2025-02-19 14:22:23 -07:00
Kyle Gach
6c46c3f113 Add migration instructions for Vitest setup file 2025-02-19 09:34:44 -07:00
Kyle Gach
2a69be8076 Prose tweaks 2025-02-19 09:33:47 -07:00
Norbert de Langen
10bb8e0afc Merge branch 'next' into norbert/merge-core-cli 2025-02-19 12:33:27 +01:00
Kyle Gach
6733333008 Fix incorrect subpath imports snippet 2025-02-18 13:22:42 -07:00
Valentin Palkovic
2429ddd086
Merge pull request #30343 from storybookjs/yann/csf-factories-documentation
Docs: Add CSF factory API documentation
2025-02-13 14:13:50 +01:00
Valentin Palkovic
e6e395216f Add link to RFC 2025-02-13 14:11:39 +01:00
Valentin Palkovic
9b880699b2 Merge remote-tracking branch 'origin/next' into valentin/support-docs-source-transform-async 2025-02-07 15:39:01 +01:00
Kyle Gach
86cf50dc53 Address feedback 2025-02-06 11:44:39 -07:00
Kyle Gach
8acbd6b7e9
Apply suggestions from code review
Co-authored-by: jonniebigodes <joaocontadesenvolvimento@gmail.com>
2025-02-06 11:16:12 -07:00
Kyle Gach
6e6eb53749 Reference addon-a11y instead of experimental-addon-test 2025-02-05 10:56:23 -07:00
Kyle Gach
dcfab08c58 Address feedback 2025-02-04 15:02:26 -07:00
Valentin Palkovic
ff81958463
Update docs/api/doc-blocks/doc-block-source.mdx
Co-authored-by: Kyle Gach <kyle.gach@gmail.com>
2025-01-31 15:43:35 +01:00
Valentin Palkovic
1a184c7790 Update docs 2025-01-31 11:20:59 +01:00
Valentin Palkovic
1306105f57 Docs: Support async docs.source.transform 2025-01-30 17:04:04 +01:00
Yann Braga
3b8c2a9580 Update react-docgen-typescript 2025-01-30 09:10:13 +01:00
Kyle Gach
a9eaf38682 Content revisions 2025-01-29 14:06:23 -07:00
Kyle Gach
e1c2cdc22e WIP: Move CSF Factories content to page tab 2025-01-28 14:36:38 -07:00
Yann Braga
75670d5d20 Docs: Add CSF factory API documentation 2025-01-22 15:30:43 +01:00
Valentin Palkovic
b0737e7824
Update docs/api/main-config/main-config-features.mdx
Co-authored-by: Kyle Gach <kyle.gach@gmail.com>
2024-12-21 12:44:30 +01:00
Valentin Palkovic
0203747b08 Add documentation 2024-12-20 14:53:51 +01:00
jonniebigodes
5a613a11a8
Merge branch 'next' into sidnioulz-docs-indexers 2024-12-02 13:56:29 +00:00
Steve Dodier-Lazaro
5b9b0ed0d3
docs: Improve copy of Indexer sidebar URL example
Co-authored-by: jonniebigodes <joaocontadesenvolvimento@gmail.com>
2024-12-02 06:04:05 +01:00
jonniebigodes
5667488ef3 Starter documentation and snippet fixes 2024-11-17 16:46:37 +00:00
Steve Dodier-Lazaro
6b90a2a8eb
docs: Add example to the Indexer API doc 2024-10-03 19:18:55 +02:00
Tobias Diez
3a8a5f5e2e Mark the link addon as essential 2024-09-21 23:37:39 +08:00
Kyle Gach
dbf8ea1fb2
Merge pull request #28924 from storybookjs/docs-addon-vitest
Docs: Vitest plugin
2024-09-09 14:09:12 -06:00
Shota FUJI
7a32c16cfd
Docs: Fix broken links ending with ".mdx"
When I checked "How to contribute" page on storybook.js.org, a link
titled "Continue reading our contributor covenant" pointed to GitHub's
404 page. The last item of the URL path was "CODE_OF_CONDUCT.mdx", which
is not common filename people uses, therefore I suspected this is not
the only broken link in the docs.

And I was right. I ran the below command (rg = RipGrep) then found
several 404 links.

```
$ cd docs
$ rg "https?:[\S)]+mdx\)" --sort path
```

Git blame told me that some of ".md" to ".mdx" migration works
accidentally changed non-docs URLs ending with ".md" too.

StackBlitz URL in docs/api/main-config/main-config-indexers.mdx is not
actually a dead link, as the service redirects to the `README.md`.
However, the redirection takes loooong so I replaced that as well.

There are still two links that match to the above regexp:

* <https://github.com/storybookjs/storybook/blob/next/docs/get-started/setup.mdx>
  at docs/contribute/documentation/new-snippets.mdx L42
* <https://marketplace.visualstudio.com/items?itemName=unifiedjs.vscode-mdx>
  at docs/writing-docs/mdx.mdx

but those two are both valid (alive) URLs.
2024-09-05 15:30:37 +09:00
Kyle Gach
468a273bcc Merge branch 'next' into docs-addon-vitest
* next: (31 commits)
  add playwright eslint plugin, fix tests by rules
  fix tags e2e test
  fix urls in addon-test package.json
  use auto-retrying assertions in e2e tests
  renamed vitest addon import file name to 'test'
  Bump version from "8.3.0-beta.1" to "8.3.0-beta.2" [skip ci]
  Write changelog for 8.3.0-beta.2 [skip ci]
  fix package order in versions
  fix import
  fix
  add tests
  CLI: Handle Yarn PnP wrapper scenario when adding an addon
  cleanup
  Add type declaration for storybookTest in plugin module
  dont' use parameters for default backgrounds, as they are not overridable
  Fix type export for @storybook/experimental-nextjs-vite/vite-plugin
  don't use parameters for default viewports, as they are not overridable
  Nextjs-Vite: Re-export vite-plugin-storybook-nextjs
  refactor vite plugin export paths
  Bump version from "8.3.0-beta.0" to "8.3.0-beta.1" [skip ci]
  ...
2024-09-04 11:05:53 -06:00