storybook-addon-docusaurus

0.3.3 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.3.3
    15
    • latest

Version History

Package Sidebar

Install

npm i storybook-addon-docusaurus

Weekly Downloads

17

Version

0.3.3

License

MIT

Unpacked Size

11 kB

Total Files

11

Last publish

Collaborators

  • jodyheavener