From 369e6a25b5e400b978b2004f838f82b0a9aa170e Mon Sep 17 00:00:00 2001 From: jonniebigodes Date: Fri, 13 May 2022 15:48:33 +0100 Subject: [PATCH] Update docs/configure/sidebar-and-urls.md Co-authored-by: Yann Braga --- docs/configure/sidebar-and-urls.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/configure/sidebar-and-urls.md b/docs/configure/sidebar-and-urls.md index 769518e14e9..1e301206e38 100644 --- a/docs/configure/sidebar-and-urls.md +++ b/docs/configure/sidebar-and-urls.md @@ -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: