Open paulgv opened 3 years ago
is there any update? Have you found a solution to render the source correctly?
This has been addressed recently in 7.0 beta.
Would you mind trying it, and report if it meets your needs?
@ndelangen this is still happening in Storybook 7.0.7: https://gitlab-org.gitlab.io/gitlab-ui/?path=/docs/utilities-sprintf--docs
Here's the story file: https://gitlab.com/gitlab-org/gitlab-ui/-/blob/df415b9dfc204e41a9d0941a2bd3aedafe542b79/src/components/utilities/sprintf/sprintf.stories.js
Describe the bug
One of our components is written in a
.vue
file but leverages arender
function instead of a<template>
section to render its markup:GlSprintf
.We wrote a few stories for this component. For instance, here's what the
SentenceWithLink
story looks like:Note how this story also uses the
GlLink
component. Interestingly, the generated source code for this story – and all otherGlSprintf
stories – does not includeGlSprintf
itself, but it does however includeGlLink
:Here's the relevant page in our hosted Storybook: https://gitlab-org.gitlab.io/gitlab-ui/?path=/docs/utilities-sprintf--sentence-with-link
To Reproduce Steps to reproduce the behavior:
https://gitlab.com/gitlab-org/gitlab-ui.git
.yarn && yarn start
.GlSprintf
stories.Docs
tab.Expected behavior
The source code includes all components used in the story.
System