Skip to content

Commit 2bae930

Browse files
shilmanstorybook-bot
authored andcommitted
Merge pull request #32283 from storybookjs/shilman/readme-utm-params
Documentation: Add ref=readme parameter to README.md (cherry picked from commit 6519472)
1 parent b21eadc commit 2bae930

File tree

44 files changed

+397
-94
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+397
-94
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p align="center">
2-
<a href="https://storybook.js.org/">
2+
<a href="https://storybook.js.org/?ref=readme">
33
<picture>
44
<source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/263385/199832481-bbbf5961-6a26-481d-8224-51258cce9b33.png">
55
<img src="https://user-images.githubusercontent.com/321738/63501763-88dbf600-c4cc-11e9-96cd-94adadc2fd72.png" alt="Storybook" width="400" />
@@ -27,7 +27,7 @@
2727
<a href="https://discord.gg/storybook">
2828
<img src="https://img.shields.io/badge/discord-join-7289DA.svg?logo=discord&longCache=true&style=flat" />
2929
</a>
30-
<a href="https://storybook.js.org/community/">
30+
<a href="https://storybook.js.org/community/?ref=readme">
3131
<img src="https://img.shields.io/badge/community-join-4BC424.svg" alt="Storybook Community" />
3232
</a>
3333
<a href="#backers">
@@ -45,11 +45,11 @@
4545
</p>
4646

4747
<p align="center">
48-
Storybook is a frontend workshop for building UI components and pages in isolation. Thousands of teams use it for UI development, testing, and documentation. Find out more at https://storybook.js.org!
48+
Storybook is a frontend workshop for building UI components and pages in isolation. Thousands of teams use it for UI development, testing, and documentation. Find out more at <a href="https://storybook.js.org/?ref=readme">storybook.js.org</a>!
4949
</p>
5050

5151
<center>
52-
<img src="https://raw.githubusercontent.com/storybookjs/storybook/main/media/storybook-intro.gif" width="100%" />
52+
<img src="https://raw.githubusercontent.com/storybookjs/storybook/refs/heads/release-6-5/media/storybook-intro.gif" width="100%" />
5353
</center>
5454

5555
<p align="center">
@@ -74,19 +74,19 @@ Storybook is a frontend workshop for building UI components and pages in isolati
7474

7575
## Getting Started
7676

77-
Visit [Storybook's website](https://storybook.js.org) to learn more about Storybook and to get started.
77+
Visit [Storybook's website](https://storybook.js.org/?ref=readme) to learn more about Storybook and to get started.
7878

7979
### Documentation
8080

81-
Documentation can be found on [Storybook's docs site](https://storybook.js.org/docs).
81+
Documentation can be found on [Storybook's docs site](https://storybook.js.org/docs?ref=readme).
8282

8383
### Examples
8484

85-
View [Component Encyclopedia](https://storybook.js.org/showcase) to see how leading teams use Storybook.
85+
View [Component Encyclopedia](https://storybook.js.org/showcase?ref=readme) to see how leading teams use Storybook.
8686

8787
Use [storybook.new](https://storybook.new) to quickly create an example project in Stackblitz.
8888

89-
Storybook comes with a lot of [addons](https://storybook.js.org/docs/configure/user-interface/storybook-addons) for component design, documentation, testing, interactivity, and so on. Storybook's API makes it possible to configure and extend in various ways. It has even been extended to support React Native, Android, iOS, and Flutter development for mobile.
89+
Storybook comes with a lot of [addons](https://storybook.js.org/docs/configure/user-interface/storybook-addons?ref=readme) for component design, documentation, testing, interactivity, and so on. Storybook's API makes it possible to configure and extend in various ways. It has even been extended to support React Native, Android, iOS, and Flutter development for mobile.
9090

9191
### Community
9292

@@ -108,7 +108,7 @@ For additional help, share your issue in [the repo's GitHub Discussions](https:/
108108
| [Svelte](code/renderers/svelte) | [![Storybook demo](https://img.shields.io/npm/v/@storybook/svelte/latest?style=flat-square&color=blue&label)](https://next--630873996e4e3557791c069c.chromatic.com/) | [![Svelte](https://img.shields.io/npm/dm/@storybook/svelte?style=flat-square&color=eee)](code/renderers/svelte) |
109109
| [Preact](code/renderers/preact) | [![Storybook demo](https://img.shields.io/npm/v/@storybook/preact/latest?style=flat-square&color=blue&label)](https://next--63b588a512565bfaace15e7c.chromatic.com/) | [![Preact](https://img.shields.io/npm/dm/@storybook/preact?style=flat-square&color=eee)](code/renderers/preact) |
110110
| [Qwik](https://github.com/literalpie/storybook-framework-qwik) | [![](https://img.shields.io/npm/v/storybook-framework-qwik/latest?style=flat-square&color=blue&label)](/) | [![Qwik](https://img.shields.io/npm/dm/storybook-framework-qwik?style=flat-square&color=eee)](https://github.com/literalpie/storybook-framework-qwik) |
111-
| [SolidJS](https://github.com/solidjs-community/storybook) | [![](https://img.shields.io/npm/v/storybook-solidjs-vite/latest?style=flat-square&color=blue&label)](/) | [![SolidJS](https://img.shields.io/npm/dm/storybook-solidjs-vite?style=flat-square&color=eee)](https://github.com/solidjs-community/storybook) |
111+
| [SolidJS](https://github.com/solidjs-community/storybook) | [![](https://img.shields.io/npm/v/storybook-solidjs-vite/latest?style=flat-square&color=blue&label)](/) | [![SolidJS](https://img.shields.io/npm/dm/storybook-solidjs-vite?style=flat-square&color=eee)](https://github.com/solidjs-community/storybook) |
112112
| [Android, iOS, Flutter](https://github.com/storybookjs/native) | [![](https://img.shields.io/npm/v/@storybook/native/latest?style=flat-square&color=blue&label)](/) | [![Native](https://img.shields.io/npm/dm/@storybook/native?style=flat-square&color=eee)](https://github.com/storybookjs/native) |
113113

114114
### Addons
@@ -131,15 +131,15 @@ For additional help, share your issue in [the repo's GitHub Discussions](https:/
131131
| [query params](https://github.com/storybookjs/addon-queryparams) | Mock query params |
132132
| [viewport](code/core/src/viewport/) | Change display sizes and layouts for responsive components using Storybook |
133133

134-
See [Addon / Framework Support Table](https://storybook.js.org/docs/configure/integration/frameworks-feature-support)
134+
See [Addon / Framework Support Table](https://storybook.js.org/docs/configure/integration/frameworks-feature-support?ref=readme)
135135

136136
To continue improving your experience, we have to eventually deprecate or remove certain addons in favor of new and better tools.
137137

138138
If you're using info/notes, we highly recommend you migrate to [docs](code/addons/docs/) instead, and [here is a guide](code/addons/docs/docs/recipes.md#migrating-from-notesinfo-addons) to help you.
139139

140140
If you're using contexts, we highly recommend you migrate to [toolbars](https://github.com/storybookjs/storybook/tree/next/code/addons/toolbars) and [here is a guide](https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-addon-contexts) to help you.
141141

142-
If you're using addon-storyshots, we highly recommend you migrate to the Storybook [test-runner](https://github.com/storybookjs/test-runner) and [here is a guide](https://storybook.js.org/docs/writing-tests/storyshots-migration-guide) to help you.
142+
If you're using addon-storyshots, we highly recommend you migrate to the Storybook [test-runner](https://github.com/storybookjs/test-runner) and [here is a guide](https://storybook.js.org/docs/writing-tests/storyshots-migration-guide?ref=readme) to help you.
143143

144144
## Badges & Presentation materials
145145

@@ -156,7 +156,7 @@ If you're looking for material to use in your Storybook presentation, such as lo
156156
## Community
157157

158158
- Tweeting via [@storybookjs](https://x.com/storybookjs)
159-
- Blogging at [storybook.js.org](https://storybook.js.org/blog/) and [Medium](https://medium.com/storybookjs)
159+
- Blogging at [storybook.js.org](https://storybook.js.org/blog/?ref=readme) and [Medium](https://medium.com/storybookjs)
160160
- Chatting on [Discord](https://discord.gg/storybook)
161161
- Videos and streams at [YouTube](https://www.youtube.com/channel/UCr7Quur3eIyA_oe8FNYexfg)
162162

code/addons/a11y/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ The @storybook/addon-a11y package provides accessibility testing for Storybook s
1010
npx storybook add @storybook/addon-a11y
1111
```
1212

13-
[More on getting started with the accessibility addon](https://storybook.js.org/docs/writing-tests/accessibility-testing#accessibility-checks-with-a11y-addon)
13+
[More on getting started with the accessibility addon](https://storybook.js.org/docs/writing-tests/accessibility-testing#accessibility-checks-with-a11y-addon?ref=readme)
14+
15+
Learn more about Storybook at [storybook.js.org](https://storybook.js.org/?ref=readme).

code/addons/docs/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ For more information on `MDX`, see the [`MDX` reference](https://github.com/stor
7676

7777
Storybook Docs supports all view layers that Storybook supports except for React Native (currently). There are some framework-specific features as well, such as props tables and inline story rendering. The following page captures the current state of support:
7878

79-
[Framework Support](https://storybook.js.org/docs/configure/integration/frameworks-feature-support)
79+
[Framework Support](https://storybook.js.org/docs/configure/integration/frameworks-feature-support?ref=readme)
8080

8181
**Note:** `#` = WIP support
8282

@@ -139,11 +139,11 @@ export default {
139139

140140
`csfPluginOptions` is an object for configuring `@storybook/csf-plugin`. When set to `null` it tells docs not to run the `csf-plugin` at all, which can be used as an optimization, or if you're already using `csf-plugin` in your `main.js`.
141141

142-
> With the release of version 7.0, it is no longer possible to import `.md` files directly into Storybook using the `transcludeMarkdown` [option](https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#importing-plain-markdown-files-with-transcludemarkdown-has-changed). Instead, we recommend using the [`Markdown`](https://storybook.js.org/docs/api/doc-blocks/doc-block-markdown) Doc Block for importing Markdown files into your Storybook documentation.
142+
> With the release of version 7.0, it is no longer possible to import `.md` files directly into Storybook using the `transcludeMarkdown` [option](https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#importing-plain-markdown-files-with-transcludemarkdown-has-changed). Instead, we recommend using the [`Markdown`](https://storybook.js.org/docs/api/doc-blocks/doc-block-markdown?ref=readme) Doc Block for importing Markdown files into your Storybook documentation.
143143
144144
## TypeScript configuration
145145

146-
As of SB6 [TypeScript is zero-config](https://storybook.js.org/docs/configure/integration/typescript) and should work with SB Docs out of the box. For advanced configuration options, refer to the [Props documentation](https://github.com/storybookjs/storybook/tree/next/code/addons/docs/docs/props-tables.md).
146+
As of SB6 [TypeScript is zero-config](https://storybook.js.org/docs/configure/integration/typescript?ref=readme) and should work with SB Docs out of the box. For advanced configuration options, refer to the [Props documentation](https://github.com/storybookjs/storybook/tree/next/code/addons/docs/docs/props-tables.md).
147147

148148
## More resources
149149

@@ -152,3 +152,5 @@ Want to learn more? Here are some more articles on Storybook Docs:
152152
- References: [DocsPage](https://github.com/storybookjs/storybook/tree/next/code/addons/docs/docs/docspage.md) / [MDX](https://github.com/storybookjs/storybook/tree/next/code/addons/docs/docs/mdx.md) / [FAQ](https://github.com/storybookjs/storybook/tree/next/code/addons/docs/docs/faq.md) / [Recipes](https://github.com/storybookjs/storybook/tree/next/code/addons/docs/docs/recipes.md) / [Theming](https://github.com/storybookjs/storybook/tree/next/code/addons/docs/docs/theming.md) / [Props](https://github.com/storybookjs/storybook/tree/next/code/addons/docs/docs/props-tables.md)
153153
- Announcements: [Vision](https://medium.com/storybookjs/storybook-docs-sneak-peak-5be78445094a) / [DocsPage](https://medium.com/storybookjs/storybook-docspage-e185bc3622bf) / [MDX](https://medium.com/storybookjs/rich-docs-with-storybook-mdx-61bc145ae7bc) / [Framework support](https://medium.com/storybookjs/storybook-docs-for-new-frameworks-b1f6090ee0ea)
154154
- Example: [Storybook Design System](https://github.com/storybookjs/design-system)
155+
156+
Learn more about Storybook at [storybook.js.org](https://storybook.js.org/?ref=readme).

code/addons/jest/README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Storybook addon for inspecting Jest unit test results.
44

5-
[Framework Support](https://storybook.js.org/docs/configure/integration/frameworks-feature-support)
5+
[Framework Support](https://storybook.js.org/docs/configure/integration/frameworks-feature-support?ref=readme)
66

77
[![Storybook Jest Addon Demo](https://raw.githubusercontent.com/storybookjs/storybook/next/code/addons/jest/docs/storybook-addon-jest.gif)](http://storybooks-official.netlify.com/?selectedKind=Addons%7Cjest&selectedStory=withTests&full=0&addons=1&stories=1&panelRight=0&addonPanel=storybook%2Ftests%2Fpanel)
88

@@ -20,7 +20,7 @@ Or if you're using yarn as a package manager:
2020

2121
## Configuration
2222

23-
Register the addon in your [`.storybook/main.js`](https://storybook.js.org/docs/configure#configure-your-storybook-project):
23+
Register the addon in your [`.storybook/main.js`](https://storybook.js.org/docs/configure#configure-your-storybook-project?ref=readme):
2424

2525
```js
2626
export default {
@@ -84,7 +84,7 @@ Assuming that you have already created a test file for your component (e.g., `My
8484

8585
### Story-level
8686

87-
In your story file, add a [decorator](https://storybook.js.org/docs/writing-stories/decorators) to your story's default export to display the results:
87+
In your story file, add a [decorator](https://storybook.js.org/docs/writing-stories/decorators?ref=readme) to your story's default export to display the results:
8888

8989
```js
9090
// MyComponent.stories.js|jsx
@@ -99,7 +99,7 @@ export default {
9999
};
100100
```
101101

102-
You can also add multiple tests results within your story by including the `jest` [parameter](https://storybook.js.org/docs/writing-stories/parameters), for example:
102+
You can also add multiple tests results within your story by including the `jest` [parameter](https://storybook.js.org/docs/writing-stories/parameters?ref=readme), for example:
103103

104104
```js
105105
// MyComponent.stories.js|jsx
@@ -130,7 +130,7 @@ Default.parameters = {
130130
### Global level
131131

132132
To avoid importing the results of the tests in each story, you can update
133-
your [`.storybook/preview.js`](https://storybook.js.org/docs/configure#configure-story-rendering) and include a decorator allowing you to display the results only for the stories that have the `jest` parameter defined:
133+
your [`.storybook/preview.js`](https://storybook.js.org/docs/configure#configure-story-rendering?ref=readme) and include a decorator allowing you to display the results only for the stories that have the `jest` parameter defined:
134134

135135
```js
136136
// .storybook/preview.js
@@ -257,3 +257,5 @@ All ideas and contributions are welcome.
257257
## Licence
258258

259259
MIT © 2017-present Renaud Tertrais
260+
261+
Learn more about Storybook at [storybook.js.org](https://storybook.js.org/?ref=readme).

code/addons/links/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Story Links Addon
22

3-
The Storybook Links addon can be used to create links that navigate between stories in [Storybook](https://storybook.js.org).
3+
The Storybook Links addon can be used to create links that navigate between stories in [Storybook](https://storybook.js.org?ref=readme).
44

5-
[Framework Support](https://storybook.js.org/docs/configure/integration/frameworks-feature-support)
5+
[Framework Support](https://storybook.js.org/docs/configure/integration/frameworks-feature-support?ref=readme)
66

77
## Getting Started
88

@@ -145,3 +145,5 @@ It accepts all the props the `a` element does, plus `story` and `kind`. It the `
145145
```
146146

147147
To implement such a component for another framework, you need to add special handling for `click` event on native `a` element. See [`RoutedLink` sources](https://github.com/storybookjs/storybook/blob/next/code/addons/links/src/react/components/RoutedLink.tsx) for reference.
148+
149+
Learn more about Storybook at [storybook.js.org](https://storybook.js.org/?ref=readme).

code/addons/onboarding/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,5 @@ const config = {
4747
};
4848
export default config;
4949
```
50+
51+
Learn more about Storybook at [storybook.js.org](https://storybook.js.org/?ref=readme).

code/addons/pseudo-states/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,5 @@ DialogButton.parameters = {
8181
pseudo: { hover: true, rootSelector: 'body' },
8282
};
8383
```
84+
85+
Learn more about Storybook at [storybook.js.org](https://storybook.js.org/?ref=readme).

code/addons/themes/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# @storybook/addon-themes
22

3-
Storybook Addon Themes can be used which between multiple themes for components inside the preview in [Storybook](https://storybook.js.org).
3+
Storybook Addon Themes can be used to switch between multiple themes for components inside the preview in [Storybook](https://storybook.js.org?ref=readme).
44

55
![React Storybook Screenshot](https://user-images.githubusercontent.com/18172605/274302488-77a39112-cdbe-4d16-9966-0d8e9e7e3399.gif)
66

@@ -12,7 +12,7 @@ Requires Storybook 7.0 or later. If you need to add it to your Storybook, you ca
1212
npm i -D @storybook/addon-themes
1313
```
1414

15-
Then, add following content to [`.storybook/main.js`](https://storybook.js.org/docs/configure#configure-your-storybook-project):
15+
Then, add following content to [`.storybook/main.js`](https://storybook.js.org/docs/configure#configure-your-storybook-project?ref=readme):
1616

1717
```js
1818
export default {
@@ -65,3 +65,5 @@ export const PrimaryDark = {
6565
globals: { theme: 'dark' },
6666
};
6767
```
68+
69+
Learn more about Storybook at [storybook.js.org](https://storybook.js.org/?ref=readme).

code/addons/vitest/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# Storybook Addon Test
22

33
Addon to integrate Vitest test results with Storybook.
4+
5+
Learn more about Storybook at [storybook.js.org](https://storybook.js.org/?ref=readme).

code/builders/builder-vite/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ See [Customize Vite config](#customize-vite-config) for details about using `vit
135135

136136
### React Docgen
137137

138-
Docgen is used in Storybook to populate the props table in docs view, the controls panel, and for several other addons. Docgen is supported in Svelte, Vue 3, and React. React docgen is configurable via the [`typescript.reactDocgen`](https://storybook.js.org/docs/api/main-config-typescript#reactdocgen) setting in `.storybook/main.js`.
138+
Docgen is used in Storybook to populate the props table in docs view, the controls panel, and for several other addons. Docgen is supported in Svelte, Vue 3, and React. React docgen is configurable via the [`typescript.reactDocgen`](https://storybook.js.org/docs/api/main-config-typescript#reactdocgen?ref=readme) setting in `.storybook/main.js`.
139139

140140
```javascript
141141
export default {
@@ -151,7 +151,7 @@ If you're using TypeScript, we encourage you to experiment and see which option
151151

152152
The builder will by default enable Vite's [server.fs.strict](https://vitejs.dev/config/#server-fs-strict)
153153
option, for increased security. The default project `root` is set to the parent directory of the
154-
Storybook configuration directory. This can be overridden in [viteFinal](https://storybook.js.org/docs/api/main-config-vite-final).
154+
Storybook configuration directory. This can be overridden in [viteFinal](https://storybook.js.org/docs/api/main-config-vite-final?ref=readme).
155155
156156
## Known issues
157157
@@ -167,3 +167,5 @@ Have a look at the GitHub issues with the `vite` label for known bugs. If you fi
167167
feel free to create an issue or send a pull request!
168168
169169
Please read the [How to contribute](/CONTRIBUTING.md) guide.
170+
171+
Learn more about Storybook at [storybook.js.org](https://storybook.js.org/?ref=readme).

0 commit comments

Comments
 (0)