0.3.3 ā€¢ Published 1 year ago

storybook-addon-docusaurus v0.3.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

storybook-addon-docusaurus

šŸ¦– A Storybook addon to aid in developing with Docusaurus.

Features

  • Adds support for Docusaurus module aliases such as @theme, @docusaurus, @generated, and @site. Theme alias loading order is also respected across core theme, plugin-provided, and swizzled components.
  • Enables core Docusaurus loaders for JS, SVG, and fonts and other assets. Will prefer docusaurus-plugin-sass over Storybook's SASS loader.
  • Loads the client modules and Webpack configs from all plugins.
  • Applies a global decorator that wraps all components in Docusaurus React contexts, allowing the rendering of all swizzled components.

Installing and Usage

This addon assumes you're working in a project that already has Docusaurus and Storybook set up.

Install the addon

With npm:

npm i storybook-addon-docusaurus

Or with yarn:

yarn add storybook-addon-docusaurus

Enable the addon

Add "storybook-addon-docusaurus" to the list of addons in your Storybook .storybook/main.js file. Learn more.

That's it! You should now be able to write stories that make use of Docusaurus components.

License

MIT

0.3.0

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.3.3

1 year ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago