Storybook: mdx stories?

Created on 6 Apr 2018  ·  14Comments  ·  Source: storybookjs/storybook

just an idea for general discussion - any interest in writing stories in guillermo rauch's mdx?

https://github.com/mdx-js/mdx

i was honestly surprised no one seems to have suggested this yet. seems like a very natural pairing.

feature request inactive

Most helpful comment

Hi Shawn, YES! This is on our roadmap, and we've started work on this already, Sorry for the silence, and the bot closing.

mdx support is coming to the core, so stories are still rendered in complete isolation.

In other words what we're going to do is:

  1. render mdx in a secondary view-mode
  2. extracting code samples or story references
  3. rending an iframe for each and render the code-sample or story in there.

All 14 comments

sad

@tsiq-swyx, I am not sure we need to support this in the core. Looks like it can be configured with a custom mode, (like TS or Flow 🤷‍♂️ )

@tsiq-swyx I had the same thought. People are moving away from storybook to docz, and this is one of the reasons. Should be really convenient for everyone if addons like info supported mdx

I think this really suits Storybook. We already display React Component's paired with markdown readmes. This would fit nicely out of the box.

Hi Shawn, YES! This is on our roadmap, and we've started work on this already, Sorry for the silence, and the bot closing.

mdx support is coming to the core, so stories are still rendered in complete isolation.

In other words what we're going to do is:

  1. render mdx in a secondary view-mode
  2. extracting code samples or story references
  3. rending an iframe for each and render the code-sample or story in there.

Refining this epic here:
https://github.com/storybooks/storybook/issues/4341

We could use help, so if you're reading this, please contact me if there's something you might be able to do to help.

Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!

Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook!

Just a quick update that I found on this today. Looks like they hit it out of the park.

Storybook Docs sneak peek
https://medium.com/storybookjs/storybook-docs-sneak-peak-5be78445094a

@centerwork80 @tsiq-swyx We have a technical preview released on the 5.2.0-alpha.x releases. In the process of structuring the work & release cycle in #docs-mode on our Discord https://discord.gg/UUt2PJb

Is there a way to try out / get started with that sneak peak version? Since I've used docz for one of my projects, I'm considering switching all my projects to docz instead of storybook. That was until I saw the medium blog.

Unfortunately, I cannot find any "try it now!" docs. Those would be very helpful, to see if it's something worth waiting for.

Take a look at this package docs.

https://www.npmjs.com/package/@storybook/addon-docs

@shilman, thanks. I did find my way after @centerwork80 hinted me to look at @storybook/addon-docs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wahengchang picture wahengchang  ·  3Comments

arunoda picture arunoda  ·  3Comments

miljan-aleksic picture miljan-aleksic  ·  3Comments

Jonovono picture Jonovono  ·  3Comments

dnlsandiego picture dnlsandiego  ·  3Comments