-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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 #18247 from TheeMattOliver/patch-1
Update mdx.md
- Loading branch information
Showing
4 changed files
with
62 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
```md | ||
|
||
<!-- Changelog.stories.mdx --> | ||
|
||
import { Meta } from "@storybook/addon-docs"; | ||
|
||
import Changelog from "../CHANGELOG.md"; | ||
|
||
<Meta title="Changelog" /> | ||
|
||
<Changelog /> | ||
``` |
20 changes: 20 additions & 0 deletions
20
docs/snippets/common/storybook-main-enable-transcludemarkdown.js.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,20 @@ | ||
// .storybook/main.js|ts | ||
|
||
module.exports = { | ||
stories: [ | ||
//👇 Changes the load order of our stories. First loads the Changelog page | ||
'../src/Changelog.stories.mdx', | ||
'../stories/**/*.stories.mdx', | ||
'../stories/**/*.stories.@(js|jsx|ts|tsx)' | ||
], | ||
addons: [ | ||
'@storybook/addon-links', | ||
'@storybook/addon-essentials', | ||
{ | ||
name: '@storybook/addon-docs', | ||
options: { | ||
transcludeMarkdown: true, //👈 Set transcludeMarkdown to true | ||
}, | ||
}, | ||
], | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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