Storybook allows you to create rich and extensive documentation that will help you and any other stakeholder involved in the development process. Out of the box you have the tooling required to not only write it but also to preview it and build it.
At any point during your development, you can preview the documentation you've written. Storybook allows you to generate a preview of the final documentation when you use the
--docs flag. We recommend including it in your
package.json as a new script:
Depending on your configuration, when you execute the
storybook-docs script. Storybook will be put into documentation mode and will generate a different build.
There's some caveats to this build mode, as to the normal Storybook build:
You can also publish your documentation, the same you would publish your Storybook. You can use the
--docs flag with
build-storybook command. We recommend as well including it as a script in your
Based on the configuration you have, when the
build-storybook-docs script is executed, Storybook once again will be put into documentation mode and will generate a different build and output the documentation into the
The same caveats mentioned above will apply.
You can use any hosting provider to deploy your documentation, for instance: