Skip to content

Commit

Permalink
Update docs/configure/sidebar-and-urls.md
Browse files Browse the repository at this point in the history
Co-authored-by: Yann Braga <[email protected]>
  • Loading branch information
jonniebigodes and yannbf authored May 13, 2022
1 parent 1ef57ec commit 369e6a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/configure/sidebar-and-urls.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ If you need, you can revert to the previous pattern by adding the following conf

### Auto-title redundant filenames

In addition to improvements to the story file name casing, a new heuristic was introduced, removing the filename if it matches an existing directory name or an `index.stories.js|ts` file. For example, `components/MyComponent/MyComponent.stories.js` is defined as `MyComponent/MyComponent` in the sidebar.
In addition to improvements to the story file name casing, a new heuristic was introduced, removing redundant names in case the filename has the same name as the directory name, or if it's called `index.stories.js|ts`. For example, before `components/MyComponent/MyComponent.stories.js` was defined as `Components/MyComponent/MyComponent` in the sidebar. Now it will be defined as `Components/MyComponent`.

If you need to preserve the naming scheme, you can add the `title` element to the default export. For example:

Expand Down

0 comments on commit 369e6a2

Please sign in to comment.