-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to render stories to individual HTML files? #9455
Comments
Possibly related #9221 Maybe an example of #775 (comment) will be helpful enough. |
Another issue I found which could be related: #8009 I tried to use |
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! |
It's still a valid question. |
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! |
Still relevant
…On Thu, 27 Feb 2020, 19:03 stale[bot], ***@***.***> wrote:
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!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#9455?email_source=notifications&email_token=AAOVTFGAGTERT7XLS7CLZADRE6MYRA5CNFSM4KG6TTT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEND52VQ#issuecomment-591912278>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOVTFGQVZWBHJV5X7BZQXLRE6MYRANCNFSM4KG6TTTQ>
.
|
@kalinchernev AFAIK there's no way to do this currently |
Hi @shilman in a project where I need this, I have already migrated configurations to latest recommended structure, as well as stories format. I made a small attempt last week to use the stories glob pattern from the config which was ok, and I also validated that the custom babel config for the storybook is usable outside the storybook (duh :)) In a week or two I plan to setup a webpack to follow the babel config or possibly the overrides coming from storybook and I still have hope that stories being react components, with react's server side rendering it might be some how possible. Do you think this way of thinking is wrong or there have been similar failed attempts? |
@kalinchernev I'm not aware of any efforts here yet. You've commented on #9382 which is a similar issue/concern (can I close this and we continue the conversation there?). It should be possible, with work, and @ndelangen would be the right person to collaborate with on this. |
@kalinchernev I've been giving the following some thought recently: What if storybook had a command to generate a |
The task at hand for me at the moment is to generate HTML files for teams
to compare markup between different language implementations in different
instances of storybook. Like between React and Twig.
What would the data.json look like?
…On Mon, 2 Mar 2020, 20:23 Norbert de Langen, ***@***.***> wrote:
@kalinchernev <https://github.com/kalinchernev> I've been giving the
following some thought recently:
What if storybook had a command to generate a data.json which would
include the stories? Would that help your case?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9455?email_source=notifications&email_token=AAOVTFEYZE3AVY7MJRVDSF3RFOQN7A5CNFSM4KG6TTT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENPDMFY#issuecomment-593376791>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOVTFBTUXPO77QLS7VWGRDRFOQN7ANCNFSM4KG6TTTQ>
.
|
Clarification: comparison of components between implementations.
…On Mon, 2 Mar 2020, 21:11 Kalin Chernev, ***@***.***> wrote:
The task at hand for me at the moment is to generate HTML files for teams
to compare markup between different language implementations in different
instances of storybook. Like between React and Twig.
What would the data.json look like?
On Mon, 2 Mar 2020, 20:23 Norbert de Langen, ***@***.***>
wrote:
> @kalinchernev <https://github.com/kalinchernev> I've been giving the
> following some thought recently:
>
> What if storybook had a command to generate a data.json which would
> include the stories? Would that help your case?
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#9455?email_source=notifications&email_token=AAOVTFEYZE3AVY7MJRVDSF3RFOQN7A5CNFSM4KG6TTT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENPDMFY#issuecomment-593376791>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAOVTFBTUXPO77QLS7VWGRDRFOQN7ANCNFSM4KG6TTTQ>
> .
>
|
@kalinchernev I think you could use storyshots for this purpose? |
The projects are in different repositories. One is
https://github.com/ec-europa/europa-component-library and another is
https://github.com/ec-europa/ecl-twig
I tried the storyshots few months ago for regression testing in the first
one, but wasn't quite successful and the setup wasn't accepted in the main
branch.
I also checked it's code few weeks ago trying to imagine using part of its
APIs for rendering with puppeteer, but could find a doable path for few
hours.
…On Mon, 2 Mar 2020, 22:01 Norbert de Langen, ***@***.***> wrote:
@kalinchernev <https://github.com/kalinchernev> I think you could use
storyshots for this purpose?
https://github.com/storybookjs/storybook/tree/next/addons/storyshots/storyshots-core
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9455?email_source=notifications&email_token=AAOVTFHN4CTMX4PPITRPYRDRFO34HA5CNFSM4KG6TTT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENPNBBI#issuecomment-593416325>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOVTFA53P3AXM74KIV5YK3RFO34HANCNFSM4KG6TTTQ>
.
|
@kalinchernev I'd be open to an online meeting discussing this, and perhaps helping you in the right direction. |
Many thanks, sent a suggestion, please adjust to your preference!
Much appreciated!
…On Mon, 2 Mar 2020, 22:30 Norbert de Langen, ***@***.***> wrote:
@kalinchernev <https://github.com/kalinchernev> I'd be open to an online
meeting discussing this, and perhaps helping you in the right direction.
https://calendly.com/ndelangen/storybook
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9455?email_source=notifications&email_token=AAOVTFGMS4ITF2DPR6BRCGTRFO7GPA5CNFSM4KG6TTT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENPQI5Q#issuecomment-593429622>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOVTFA6EPZLUCCTYZXZZLTRFO7GPANCNFSM4KG6TTTQ>
.
|
Topic: Norbert de Langen's Personal Meeting Room Meeting Recording: |
Thank you again for the time @ndelangen ! |
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! |
Hello All, I wanted to do something similar. Is there a way we could render stories and export them into HTML files? I read the comments and it seems there is no way to do this but still wanted to check. |
I am also looking to do this. Seems there's some demand in the industry to solve for this. |
@ndelangen @kalinchernev Can you share a summary of your discussion? Zoom link doesn't work anymore. I'm also very interested in with this. Is there any blocker? |
The meeting was a bit more than 2 years ago. From the technical discussions I remember https://storybook.js.org/docs/react/sharing/storybook-composition being mentioned as a potential solution. |
Versions
@storybook/addon-a11y
: 5.2.8,@storybook/addon-cssresources
: 5.2.8,@storybook/addon-knobs
: 5.2.8,@storybook/addon-options
: 5.2.8,@storybook/addon-viewport
: 5.2.8,@storybook/addons
: 5.2.8,@storybook/react
: 5.2.8,@storybook/theming
: 5.2.8,Hello, I'm looking for a way to provide rendered HTML files for each story defined withing a project.
The current syntax is
StoriesOf
, for example:And the config file is with an older organization, such as this:
A given
story
andcontext
is accessible through amakeDecorator()
API but I can't figure a way to have a function with these parameters out of Storybook's context.What I'm trying to achieve is to load all stories from node and use ReactDOMServer to render stories with their contexts.
Would it be possible with 5.2.8? Would I need to first migrate to 5.3 as suggested here? (the hint is one of the last points about "Creating a separate page per component")
Thanks in advance for any hints!
The text was updated successfully, but these errors were encountered: