infinum / eightshift-docs

A documentation website for Eightshift open source projects
https://eightshift.com
MIT License
84 stars 27 forks source link

Storybook bye bye #315

Closed goranalkovic-infinum closed 5 months ago

goranalkovic-infinum commented 5 months ago

As Storybook is being removed from FE libs, we need a replacement for it.

That's where WordPress playground comes in.

Instead of old Block and Component stories, there's now a Playground that spins up a live WP instance in your browser, so you can play with all the blocks and experience it on a live site.

Stories for FE libs components are now replaced with a custom theme that includes just one block that contains all the component reference docs. All main Gutenberg UI pieces are hidden so you get an immersive experience.

🚧 Some of the docs pages are still a bit rough around the edges, but the content is all there. Certain block stories were combined, and that will improve with more restructuring.

Also, the default page that you get in the Playground is WIP, I'm also considering adding some demo content so it looks nicer.

The themes used for Playground and Component docs will be in a separate PR. (Maybe I'll be able to get it to fetch them from GitHub and releases, but if not, they'll come from this repo, in the static folder).