-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21348 from storybookjs/20958-fix-indexing-errors-…
…referencing-non-stories Docs: Fix issue with referencing non-story files with names similar or equal to docs files
- Loading branch information
Showing
6 changed files
with
85 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// This could be the component for `A.stories.js` | ||
export const A = {}; |
2 changes: 2 additions & 0 deletions
2
code/lib/core-server/src/utils/__mockdata__/src/docs2/ComponentReference.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// This a component that happens to have the same name as an MDX file referencing it | ||
export const ComponentReference = {}; |
5 changes: 5 additions & 0 deletions
5
code/lib/core-server/src/utils/__mockdata__/src/docs2/ComponentReference.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{/* This will overlap with ComponentReference.mdx (this file). There's not much we can do about this */} | ||
import ComponentReference from './ComponentReference'; | ||
|
||
{/* This prefixes A.stories.ts, we need to make sure we don't get confused. */} | ||
import { A } from '../A'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters