Skip to content

Commit bd03a61

Browse files
Merge pull request storybookjs#32022 from storybookjs/docs-fix-csf-links
Docs: Fix broken links in CSF API reference
2 parents c72e13e + 5b363ad commit bd03a61

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/api/csf/index.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tab:
99
title: CSF 3
1010
---
1111

12-
Component Story Format (CSF) is the recommended way to [write stories](../writing-stories/index.mdx). It's an [open standard](https://github.com/ComponentDriven/csf) based on ES6 modules that is portable beyond Storybook.
12+
Component Story Format (CSF) is the recommended way to [write stories](../../writing-stories/index.mdx). It's an [open standard](https://github.com/ComponentDriven/csf) based on ES6 modules that is portable beyond Storybook.
1313

1414
<Callout variant="info" icon="💡">
1515
If you have stories written in the older `storiesOf()` syntax, it was removed in Storybook 8.0 and is no longer maintained. We recommend migrating your stories to CSF. See the [migration guide](../../migration-guide/index.mdx#major-breaking-changes) for more information.
@@ -19,7 +19,7 @@ In CSF, stories and component metadata are defined as ES Modules. Every componen
1919

2020
## Default export
2121

22-
The default export defines metadata about your component, including the `component` itself, its `title` (where it will show up in the [navigation UI story hierarchy](../writing-stories/naming-components-and-hierarchy.mdx#sorting-stories)), [decorators](../writing-stories/decorators.mdx), and [parameters](../writing-stories/parameters.mdx).
22+
The default export defines metadata about your component, including the `component` itself, its `title` (where it will show up in the [navigation UI story hierarchy](../../writing-stories/naming-components-and-hierarchy.mdx#sorting-stories)), [decorators](../../writing-stories/decorators.mdx), and [parameters](../../writing-stories/parameters.mdx).
2323

2424
The `component` field is required and used by addons for automatic prop table generation and display of other component metadata. The `title` field is optional and should be unique (i.e., not re-used across files).
2525

@@ -29,7 +29,7 @@ The `component` field is required and used by addons for automatic prop table ge
2929

3030
{/* prettier-ignore-end */}
3131

32-
For more examples, see [writing stories](../writing-stories/index.mdx).
32+
For more examples, see [writing stories](../../writing-stories/index.mdx).
3333

3434
## Named story exports
3535

@@ -53,7 +53,7 @@ The exported identifiers will be converted to "start case" using Lodash's [start
5353

5454
We recommend that all export names to start with a capital letter.
5555

56-
Story objects can be annotated with a few different fields to define story-level [decorators](../writing-stories/decorators.mdx) and [parameters](../writing-stories/parameters.mdx), and also to define the `name` of the story.
56+
Story objects can be annotated with a few different fields to define story-level [decorators](../../writing-stories/decorators.mdx) and [parameters](../../writing-stories/parameters.mdx), and also to define the `name` of the story.
5757

5858
Storybook's `name` configuration element is helpful in specific circumstances. Common use cases are names with special characters or Javascript restricted words. If not specified, Storybook defaults to the named export.
5959

@@ -67,7 +67,7 @@ Storybook's `name` configuration element is helpful in specific circumstances. C
6767

6868
Starting in SB 6.0, stories accept named inputs called Args. Args are dynamic data that are provided (and possibly updated by) Storybook and its addons.
6969

70-
Consider Storybook’s ["Button" example](../writing-stories/index.mdx#defining-stories) of a text button that logs its click events:
70+
Consider Storybook’s ["Button" example](../../writing-stories/index.mdx#defining-stories) of a text button that logs its click events:
7171

7272
{/* prettier-ignore-start */}
7373

@@ -93,7 +93,7 @@ Or even more simply:
9393

9494
Not only are these versions shorter and more accessible to write than their no-args counterparts, but they are also more portable since the code doesn't depend on the actions addon specifically.
9595

96-
For more information on setting up [Docs](../writing-docs/index.mdx) and [Actions](../essentials/actions.mdx), see their respective documentation.
96+
For more information on setting up [Docs](../../writing-docs/index.mdx) and [Actions](../../essentials/actions.mdx), see their respective documentation.
9797

9898
## Play function
9999

@@ -281,4 +281,4 @@ Finally, CSF 3 can automatically generate titles.
281281

282282
{/* prettier-ignore-end */}
283283

284-
You can still specify a title like in CSF 2, but if you don't specify one, it can be inferred from the story's path on disk. For more information, see the section on [configuring story loading](../configure/index.mdx#configure-story-loading).
284+
You can still specify a title like in CSF 2, but if you don't specify one, it can be inferred from the story's path on disk. For more information, see the section on [configuring story loading](../../configure/index.mdx#configure-story-loading).

0 commit comments

Comments
 (0)