Unclear documentation

Created on 3 January 2025, 4 months ago

Problem/Motivation

I am trying to setup a Storybook following the instructions, and the video. I succeeded, but I can't get to make a twig include or embed visible https://www.drupal.org/project/storybook/issues/3490944#comment-15924313 💬 Testing Storybook sdc_examples: my-banner Storybook is blank page Active . There seems to be an error in the example posted on the readme, or, perhaps, a lack of explanation?

Apart from that, the documentation is missing the essential instructions on where to store the stories (next to the components or separately), how CSS is being added (if I am not using SDCs) etc?

Feature request
Status

Active

Version

1.0

Component

Documentation

Created by

🇫🇮Finland YevKo Espoo

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @YevKo
  • 🇺🇸United States klu

    I added a comment in https://www.drupal.org/project/storybook/issues/3490944#comment-15934552 💬 Testing Storybook sdc_examples: my-banner Storybook is blank page Active that might be helpful. I'm repeating the last part for convenience here:

    @yevko: I'm able to include/embed SDC components, e.g., `{% include('sdc_examples:my-button') %}` but as soundvox indicated, it looks like you have to use either an SDC template or a Twig template that is registered with Drupal. If you're using an existing Drupal theme, it may already be registered and you can use the appropriate namespace, e.g., `{% include '@mytheme/path/to/mytemplate.twig' %}`.

  • 🇺🇸United States klu

    I've created an MR to "Add some troubleshooting cases to README" in case it's helpful for anyone.

  • Pipeline finished with Success
    4 months ago
    Total: 169s
    #391357
  • 🇺🇸United States klu
  • Pipeline finished with Canceled
    3 months ago
    Total: 128s
    #391367
  • Pipeline finished with Success
    3 months ago
    Total: 143s
    #391368
Production build 0.71.5 2024