Add possibility to alter data before *.stories.json generation

Created on 17 December 2024, 7 days ago

Problem/Motivation

Sometimes, it would be great to have the possibility to change or add some data inside generated *.stories.json.
For example some data for Storybook automatic docs integration, or code examples for stories.

Steps to reproduce

1. Add some stories using *.stories.twig and try to add some additional parameters to the "with" section.
2. Run "drush storybook:generate-all-stories"
3. Ensure that there is no possibility of passing some additional data (all of that skipped)

Proposed resolution

Add some alteration possibilities to data provided by "$this->storyRenderer
->generateStoriesJsonFile($template_path, $url)" method inside "generateStoriesForTemplate" command

✨ Feature request
Status

Active

Version

1.0

Component

Other tooling

Created by

πŸ‡ΊπŸ‡¦Ukraine stomusic Ukraine

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

Comments & Activities

Production build 0.71.5 2024