Skip to content

Commit

Permalink
Added info how to specify custom configuration directory
Browse files Browse the repository at this point in the history
  • Loading branch information
martinerko committed Apr 5, 2016
1 parent 6e3a8eb commit ca842f3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ You can configure React Storybook in different ways. We'll discuss them here.
* [Command Line API](#command-line-api)
* [Port](#port)
* [Static Directory](#static-directory)
* [Configuration Directory](#configuration-directory)
* [Story Creation API](#story-creation-api)
* [Creating Stories](#creating-stories)
* [Creating Actions](#creating-actions)
Expand Down Expand Up @@ -38,6 +39,16 @@ Here's how to tell React Storybook to use that directory to load static files:
start-storybook -p 6977 -s ./public
```

### Configuration Directory

React Storybook uses `.storybook` directory as a default location for its [basic](#basic-configurations) and [custom webpack](#custom-webpack-configurations) configuration.

Here's how to tell React Storybook to use a custom directory to load your configuration files:

```
start-storybook -p 6977 -s ./public -c ./storybook-config
```

## Story Creation API

We need to create stories to show your components inside React Storybook. For that, we need to use this API.
Expand Down

0 comments on commit ca842f3

Please sign in to comment.