Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge docs repo into this repo: add /docs #1131

Merged
merged 164 commits into from
May 27, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
164 commits
Select commit Hold shift + click to select a range
2e39f45
Initial commit
thani-sh Apr 15, 2017
fbe55ba
Create CNAME
thani-sh Apr 15, 2017
83294fe
Monorepo/storybooks.js.org doc update
shilman Apr 17, 2017
a4c7299
Test index.html
shilman Apr 17, 2017
2b25359
Remove CNAME temporarily
shilman Apr 17, 2017
5dee115
Merge pull request #1 from shilman/925-monorepo-doc-update
thani-sh Apr 18, 2017
c01484b
Add CNAME file
thani-sh Apr 18, 2017
cc6a3f9
Add publish script
thani-sh Apr 18, 2017
da6bf45
Merge pull request #2 from storybooks/setup-publish-script
shilman Apr 18, 2017
c0e42aa
Clean up monorepo links
shilman Apr 18, 2017
c03303a
Merge pull request #4 from storybooks/3-cleanup-repo-links
shilman Apr 18, 2017
66f049e
Fix SPA deep-linking problem
shilman Apr 19, 2017
f0117ff
Merge pull request #6 from storybooks/912-fix-deep-links
arunoda Apr 20, 2017
b8aa19a
Add note about webpack version
danny-andrews Apr 21, 2017
8812e78
Add StoryRouter to the addon gallery
gvaldambrini Apr 25, 2017
010257e
Update linkTo documentation
shilman Apr 27, 2017
16cb95e
Merge pull request #9 from gvaldambrini/storyrouter
shilman Apr 27, 2017
b8521df
Fix line break
Apr 27, 2017
dd80a30
Fixed typos and add function example
shilman Apr 27, 2017
717d6ee
Merge pull request #11 from storybooks/10-update-linkto-documentation
shilman Apr 27, 2017
c459ab9
Added PR template similar to storybook repo
shilman Apr 27, 2017
600ce1f
Fix edit this page link
shilman Apr 27, 2017
34de975
New, static site starting from Gatsby starter kit
shilman Apr 28, 2017
beb1b0d
Merge pull request #8 from danny-andrews/patch-1
xavxyz Apr 28, 2017
0fbcef0
Merge pull request #13 from storybooks/7-edit-this-page-link
xavxyz Apr 28, 2017
7cd1f3d
Merge pull request #12 from storybooks/pr-template
shilman Apr 28, 2017
da08abd
Add edit-this-page link
shilman May 1, 2017
0e969e4
Rename doc.md to doc/index.md
shilman May 1, 2017
8774f7c
Global styling
shilman May 1, 2017
1443d41
Remove auto-generated files and fix deprecation errors
shilman May 1, 2017
531b15a
Use original docs components and styling inside gatsby
shilman May 2, 2017
1105780
Merge branch 'source' into 5-gatsby-static-site
shilman May 2, 2017
fecad1e
Restore CNAME
shilman May 2, 2017
e972dfa
Cleanup unused function
shilman May 2, 2017
4df1247
Add favicon
usulpro May 2, 2017
5840f27
Fix favicon
shilman May 3, 2017
c650bf1
Remove container wrapper to fix layout issues
shilman May 3, 2017
ac036e0
manually add CNAME to build process
shilman May 3, 2017
e94c97d
Ignore public files generated by gatsbyjs
shilman May 3, 2017
a76119b
Fix code highlighting
shilman May 3, 2017
007f548
Merge pull request #14 from storybooks/5-gatsby-static-site
shilman May 3, 2017
ab6d140
Fix docs link
fabien0102 May 3, 2017
e5d58e6
Merge pull request #16 from fabien0102/source
shilman May 3, 2017
cab26be
Reapply lost change from gatsby crossover
shilman May 3, 2017
0768f18
add the storybook-addon-jsx to the list of thrid party addon
wcastand May 10, 2017
ee83f97
apply suggestion
wcastand May 10, 2017
347ce50
Merge pull request #17 from wcastand/source
shilman May 10, 2017
1dcc3be
Update documentation to use addon-links package
shilman May 12, 2017
be57585
Merge pull request #20 from storybooks/1016-restore-addon-links
ndelangen May 12, 2017
0d9d912
Deprecate built-in linkTo/action addons
shilman May 13, 2017
21f9955
Merge pull request #22 from storybooks/1017-deprecate-builtin-addons
shilman May 13, 2017
b402c44
Fix one more documentation relating to default addons
shilman May 13, 2017
6c31a77
Merge pull request #23 from storybooks/1017-deprecate-builtin-addons
thani-sh May 13, 2017
df3d901
ADD markdown linting && CI
ndelangen May 13, 2017
47bb523
Merge pull request #24 from storybooks/add-ci-linting
shilman May 13, 2017
97f49ce
Automatic deployment
shilman May 14, 2017
ad091e7
Merge pull request #26 from storybooks/25-auto-deploy
ndelangen May 14, 2017
245b172
Need to build before we can deploy
shilman May 14, 2017
ed52e83
Merge pull request #27 from storybooks/25-auto-deploy
shilman May 14, 2017
ac47ac5
Test the auto-deploy by fixing a typo
shilman May 14, 2017
63a8f92
Merge pull request #28 from storybooks/25-auto-deploy
shilman May 14, 2017
a78aaef
Give Travis permission to deploy
shilman May 14, 2017
6f33585
Merge pull request #29 from storybooks/25-auto-deploy
shilman May 14, 2017
8a79fed
Another change to test auto-deploy
shilman May 14, 2017
1d17b82
Merge pull request #30 from storybooks/25-auto-deploy
shilman May 14, 2017
70f9092
Try using gh-pages-travis to deploy from travis
shilman May 14, 2017
bb77230
Merge pull request #31 from storybooks/25-auto-deploy
shilman May 14, 2017
ea569ab
Update travis deployment to use GH_TOKEN variable encoded in secure
shilman May 14, 2017
642c1da
Merge pull request #32 from storybooks/25-auto-deploy
shilman May 14, 2017
6356be8
Run without silent for debugging
shilman May 14, 2017
a3de601
Merge pull request #33 from storybooks/25-auto-deploy
shilman May 14, 2017
42f9497
Configure github username
shilman May 14, 2017
1e9b050
Merge pull request #34 from storybooks/25-auto-deploy
shilman May 14, 2017
8d4c354
Don't run Travis in master branch
shilman May 14, 2017
1ec5574
Merge pull request #35 from storybooks/25-auto-deploy
shilman May 14, 2017
3e1feed
Deploy .travis.yml to avoid broken builds
shilman May 14, 2017
61893b9
Merge pull request #36 from storybooks/25-auto-deploy
shilman May 14, 2017
b069836
Include dot files in auto deploy so that travis doesn't build master
shilman May 14, 2017
130b3d9
Merge pull request #37 from storybooks/25-auto-deploy
shilman May 14, 2017
6254252
As storybook-router now supports react-router v3 remove the version from
gvaldambrini May 14, 2017
4459c0d
Merge branch 'source' into storyrouter3
shilman May 14, 2017
f5d56b8
Merge pull request #38 from gvaldambrini/storyrouter3
shilman May 14, 2017
24baf82
Added a community section / change the menu
tmeasday May 15, 2017
80eee9d
Merge branch 'source' into 5-gatsby-static-site
shilman May 15, 2017
292dd86
Add sitemap on build
shilman May 15, 2017
96f7c3a
Merge pull request #40 from storybooks/15-sitemap
shilman May 15, 2017
73e3e24
Merge branch 'source' into add-community
shilman May 15, 2017
30bbc31
Merge pull request #39 from storybooks/add-community
shilman May 15, 2017
202c93c
Updated to use react-router links
shilman May 15, 2017
ee541e9
Add google webmaster verification page
shilman May 15, 2017
27b3687
Move CNAME to static directory and copy all static assets in build
shilman May 15, 2017
0f72928
Merge pull request #44 from storybooks/15-google-webmaster-verification
ndelangen May 15, 2017
0af2dc7
Merge branch 'source' into 41-page-refresh
shilman May 15, 2017
9c3e7c1
Merge pull request #43 from storybooks/41-page-refresh
ndelangen May 15, 2017
9d0d910
Fix formatting issue
shilman May 16, 2017
3266c8b
Merge branch 'source' into fix-cli-options-formatting
usulpro May 16, 2017
0b0adfb
Merge pull request #48 from storybooks/fix-cli-options-formatting
usulpro May 16, 2017
6d7a737
Update README with Gatsby info
shilman May 16, 2017
31b0d58
Update addonAPI.addPanel() docs
usulpro May 16, 2017
dd5ed2d
Merge pull request #50 from storybooks/UsulPro-patch-1
shilman May 17, 2017
4c255a2
Merge branch 'source' into shilman-readme-gatsby
shilman May 17, 2017
de2da14
Add storybook instructions
shilman May 17, 2017
0a2eab4
Merge pull request #49 from storybooks/shilman-readme-gatsby
usulpro May 18, 2017
1839aca
Add clickable anchors to docs
shilman May 21, 2017
45f7c0b
Use link symbol
shilman May 21, 2017
5cd921f
Update link line-hight so that header doesn't jiggle on hover
shilman May 21, 2017
e9c9428
Merge pull request #53 from storybooks/52-clickable-anchors
shilman May 21, 2017
55a232d
CHANGE docs to 3.0.0 && Lint js && UPDATE to use 3.0.0-alpha && FIX w…
ndelangen May 21, 2017
5f2cb4e
Examples gallery
shilman May 22, 2017
342885c
Fix example gallery storybook, add lonely planet demo
shilman May 22, 2017
e0c666e
Merge commit '55a232d7a3a4ef02279da90f4629cf462c0bdc3c' into update-d…
ndelangen May 22, 2017
8994687
Unstyled featured storybook users
shilman May 23, 2017
f4cbd0a
Updated homepage story to include user data
shilman May 23, 2017
22345a2
Fix stale platforms links
shilman May 23, 2017
fdcf195
Merge pull request #58 from storybooks/shilman-patch-1
ndelangen May 23, 2017
f586419
Merge branch 'source' into update-docs-to-3.0.0
ndelangen May 23, 2017
d6dd194
Updated thumbnails, curated list, and tweaked visuals
shilman May 23, 2017
4b48f2d
Merge branch 'source' into 45-examples-gallery
shilman May 23, 2017
5b890e3
Update index.md
theatlasroom May 23, 2017
6efb8b2
Merge pull request #59 from theatlasroom/patch-1
shilman May 24, 2017
90261e7
Added remitly
shilman May 24, 2017
81701a1
new logo
SachaG May 24, 2017
bf6a704
Added Slack, Nulogy
shilman May 24, 2017
a027587
Update addon urls
danielduan May 24, 2017
bb4c000
Merge pull request #60 from danielduan/source
danielduan May 24, 2017
62ec787
working on "used by" section
SachaG May 25, 2017
f9f3e4c
Added wix.com, remitly SVG
shilman May 25, 2017
dd37924
Merge branch '56-homepage-logos' of https://github.com/storybooks/sto…
SachaG May 25, 2017
0863045
homepage work
SachaG May 25, 2017
4e63efc
Added TerraEclipse
shilman May 25, 2017
4f903b9
fix logo colors
SachaG May 25, 2017
1bcd131
Merge pull request #61 from SachaG/56-homepage-logos
shilman May 25, 2017
894eba3
Added squarespace
shilman May 25, 2017
0e54b3e
Add nofollow links to reduce SEO spam
shilman May 25, 2017
5edc6e9
Merge branch 'source' into 45-examples-gallery
shilman May 25, 2017
c8c0b81
Merge pull request #55 from storybooks/45-examples-gallery
shilman May 25, 2017
eb14f70
Merge branch 'source' into 56-homepage-logos
shilman May 25, 2017
15c35e6
Merge branch 'source' into 56-homepage-logos
shilman May 25, 2017
f626334
Homepage logo cleanup
shilman May 25, 2017
4582347
Merge pull request #57 from storybooks/56-homepage-logos
shilman May 25, 2017
8be2c88
FIX cyclical dependencies
ndelangen May 25, 2017
bcd101f
prepare for import command
ndelangen May 25, 2017
111b8f8
Merge commit '5edc6e9eeab30178041f4c7b9bac108d6282a89c' into update-d…
ndelangen May 25, 2017
68f51bb
Merge branch 'source' into update-docs-to-3.0.0
ndelangen May 25, 2017
8fff799
MOVE all to /docs
ndelangen May 25, 2017
3a90bcb
Merge branch 'prepare-for-import' of github.com:storybooks/storybooks…
ndelangen May 25, 2017
5f3e909
integrate docs
ndelangen May 25, 2017
8d5c4ba
FIX linting
ndelangen May 26, 2017
474d6c7
FIX linting
ndelangen May 26, 2017
67d902f
FIX listing for markdown
ndelangen May 26, 2017
e4a679a
CHANGE too to only show a depth of max 3
ndelangen May 26, 2017
eca86fb
ADD eslint cache
ndelangen May 26, 2017
bd016f2
ADD docs scripts
ndelangen May 26, 2017
654b69e
FIX linting
ndelangen May 26, 2017
5c66eda
FIX linting
ndelangen May 26, 2017
12e0099
Merge branch 'master' into ndelangen/dev
ndelangen May 26, 2017
f4fc55c
FIX linting
ndelangen May 26, 2017
eb9b161
CHANGE to real gh-pages as deploy branch
ndelangen May 26, 2017
b00f125
ADD bootstrap for docs
ndelangen May 26, 2017
1373579
FIX CNAME
ndelangen May 26, 2017
6054d9f
CHANGE install docs on homepage to new package name
ndelangen May 26, 2017
4a5ed50
MOVE too deeply nested documentation
ndelangen May 26, 2017
7964734
IMPROVE docs
ndelangen May 26, 2017
d0ea916
IMPROVE docs
ndelangen May 26, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ dist
build
coverage
node_modules
docs/public
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
root: true,
extends: [
'./node_modules/eslint-config-airbnb-base/rules/es6.js',
],
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ build
packages/examples/automated-*
yarn.lock
/**/LICENSE
docs/public
16 changes: 16 additions & 0 deletions .remarkrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"plugins": [
"remark-preset-lint-recommended",
["remark-lint-list-item-indent", false],
["remark-lint-code", {"js": {
"module": "node_modules/remark-lint-code-eslint",
"options": {
"fix": true
}
}}],
["remark-toc", {
"tight": true,
"maxDepth": 3
}]
]
}
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ before_install: ./scripts/travis/before_install.sh
after_success: ./scripts/travis/after_success.sh
script:
- npm run bootstrap
- lerna exec --scope test-cra -- npm i
- npm run bootstrap:test-cra
- npm run bootstrap:docs
- npm run lint
- npm run test -- --coverage
- npm run coverage
Expand Down
73 changes: 34 additions & 39 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,37 +8,33 @@ Please review this document to help to streamline the process and save everyone'

No software is bug free. So, if you got an issue, follow these steps:

* Search the [issue list](https://github.com/storybooks/storybook/issues?utf8=%E2%9C%93&q=) for current and old issues.
* If non of that is helping, create an issue with with following information:
* Clear title (make is shorter if possible).
* Describe the issue in clear language.
* Share error logs, screenshots and etc.
* To speed up the issue fixing process, send us a sample repo with the issue you faced:
- Search the [issue list](https://github.com/storybooks/storybook/issues?utf8=%E2%9C%93&q=) for current and old issues.
- If non of that is helping, create an issue with with following information:
- Clear title (make is shorter if possible).
- Describe the issue in clear language.
- Share error logs, screenshots and etc.
- To speed up the issue fixing process, send us a sample repo with the issue you faced:

### Testing against `master`

To test your project against the current latest version of storybook, you can clone the repository and link it with `npm`. Try following these steps:

1. Download the latest version of this project, and build it
1. Download the latest version of this project, and build it

```
git clone https://github.com/storybooks/storybook.git
cd storybook
npm install
npm run bootstrap
```
git clone https://github.com/storybooks/storybook.git
cd storybook
npm install
npm run bootstrap

2. Link `storybook` and any other required dependencies
2. Link `storybook` and any other required dependencies

```
cd packages/react-storybook
npm link
cd packages/react-storybook
npm link

cd <your-project>
npm link @kadira/storybook
cd <your-project>
npm link @kadira/storybook

# repeat with whichever other parts of the monorepo you are using.
```
# repeat with whichever other parts of the monorepo you are using.

### Reproductions

Expand Down Expand Up @@ -68,18 +64,18 @@ git remote add <your-username> https://github.com/<your-username>/storybook.git
git push -u <your-username> master
```

If you follow that process, you can then link to the github repository in the issue. See https://github.com/storybooks/storybook/issues/708#issuecomment-290589886 for an example.
If you follow that process, you can then link to the github repository in the issue. See <https://github.com/storybooks/storybook/issues/708#issuecomment-290589886> for an example.

**NOTE**: If your issue involves a webpack config, create-react-app will prevent you from modifying the *app's* webpack config, however you can still modify storybook's to mirror your app's version of storybook. Alternatively, use `npm run eject` in the CRA app to get a modifiable webpack config.
**NOTE**: If your issue involves a webpack config, create-react-app will prevent you from modifying the _app's_ webpack config, however you can still modify storybook's to mirror your app's version of storybook. Alternatively, use `npm run eject` in the CRA app to get a modifiable webpack config.

## Pull Requests (PRs)

We welcome your contributions. There are many ways you can help us. This is few of those ways:

* Fix typos and add more [documentation](https://github.com/storybooks/storybook/labels/needs%20docs).
* Try to fix some [bugs](https://github.com/storybooks/storybook/labels/bug).
* Work on [API](https://github.com/storybooks/storybook/labels/enhancement%3A%20api), [Addons](https://github.com/storybooks/storybook/labels/enhancement%3A%20addons), [UI](https://github.com/storybooks/storybook/labels/enhancement%3A%20ui) or [Webpack](https://github.com/storybooks/storybook/labels/enhancement%3A%20webpack) use enhancements and new [features](https://github.com/storybooks/storybook/labels/feature%20request).
* Add more [tests](https://codecov.io/gh/storybooks/storybook/tree/master/packages) (specially for the [UI](https://codecov.io/gh/storybooks/storybook/tree/master/packages/storybook-ui/src)).
- Fix typos and add more [documentation](https://github.com/storybooks/storybook/labels/needs%20docs).
- Try to fix some [bugs](https://github.com/storybooks/storybook/labels/bug).
- Work on [API](https://github.com/storybooks/storybook/labels/enhancement%3A%20api), [Addons](https://github.com/storybooks/storybook/labels/enhancement%3A%20addons), [UI](https://github.com/storybooks/storybook/labels/enhancement%3A%20ui) or [Webpack](https://github.com/storybooks/storybook/labels/enhancement%3A%20webpack) use enhancements and new [features](https://github.com/storybooks/storybook/labels/feature%20request).
- Add more [tests](https://codecov.io/gh/storybooks/storybook/tree/master/packages) (specially for the [UI](https://codecov.io/gh/storybooks/storybook/tree/master/packages/storybook-ui/src)).

Before you submit a new PR, make you to run `npm test`. Do not submit a PR if tests are failing. If you need any help, create an issue and ask.

Expand All @@ -102,9 +98,10 @@ Issues that are tagged `question / support` or `needs reproduction` are great pl
Once you've helped out on a few issues, if you'd like triage access you can help label issues and respond to reporters.

We use the following label scheme to categorize issues:
- **type** - `bug`, `feature`, `question / support`, `discussion`, `greenkeeper`, `maintenance`.
- **area** - `addon: x`, `addons-api`, `stories-api`, `ui`, etc.
- **status** - `needs reproduction`, `needs PR`, `in progress`, etc.

- **type** - `bug`, `feature`, `question / support`, `discussion`, `greenkeeper`, `maintenance`.
- **area** - `addon: x`, `addons-api`, `stories-api`, `ui`, etc.
- **status** - `needs reproduction`, `needs PR`, `in progress`, etc.

All issues should have a `type` label. `bug`/`feature`/`question`/`discussion` are self-explanatory. `greenkeeper` is for keeping package dependencies up to date. `maintenance` is a catch-all for any kind of cleanup or refactoring.

Expand All @@ -116,17 +113,17 @@ If an issue is a `bug`, and it doesn't have a clear reproduction that you have p

### Closing issues

- Duplicate issues should be closed with a link to the original.
- Duplicate issues should be closed with a link to the original.

- Unreproducible issues should be closed if it's not possible to reproduce them (if the reporter drops offline, it is reasonable to wait 2 weeks before closing).
- Unreproducible issues should be closed if it's not possible to reproduce them (if the reporter drops offline, it is reasonable to wait 2 weeks before closing).

- `bug`s should be labeled `merged` when merged, and be closed when the issue is fixed and released.
- `bug`s should be labeled `merged` when merged, and be closed when the issue is fixed and released.

- `feature`s, `maintenance`s, `greenkeeper`s should be labeled `merged` when merged, and closed when released or if the feature is deemed not appropriate.
- `feature`s, `maintenance`s, `greenkeeper`s should be labeled `merged` when merged, and closed when released or if the feature is deemed not appropriate.

- `question / support`s should be closed when the question has been answered. If the questioner drops offline, a reasonable period to wait is two weeks.
- `question / support`s should be closed when the question has been answered. If the questioner drops offline, a reasonable period to wait is two weeks.

- `discussion`s should be closed at a maintainer's discretion.
- `discussion`s should be closed at a maintainer's discretion.

## Development Guide

Expand All @@ -135,9 +132,7 @@ If an issue is a `bug`, and it doesn't have a clear reproduction that you have p
This project written in ES2016+ syntax so, we need to transpile it before use.
So run the following command:

```
npm run dev
```
npm run dev

This will watch files and transpile.

Expand Down
2 changes: 1 addition & 1 deletion HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## v.Next

- Deprecated `{ linkTo, action }` as built-in addons: https://github.com/storybooks/storybook/issues/1017. From 3.0 use them as you would [any other addon](https://storybooks.js.org/docs/react-storybook/addons/using-addons/).
- Deprecated `{ linkTo, action }` as built-in addons: <https://github.com/storybooks/storybook/issues/1017>. From 3.0 use them as you would [any other addon](https://storybooks.js.org/docs/react-storybook/addons/using-addons/).

Before:

Expand Down
79 changes: 60 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# Storybook

[![Greenkeeper badge](https://badges.greenkeeper.io/storybooks/storybook.svg)](https://greenkeeper.io/)
[![Build Status](https://travis-ci.org/storybooks/storybook.svg?branch=master)](https://travis-ci.org/storybooks/storybook)
[![CodeFactor](https://www.codefactor.io/repository/github/storybooks/storybook/badge)](https://www.codefactor.io/repository/github/storybooks/storybook)
[![Known Vulnerabilities](https://snyk.io/test/github/storybooks/storybook/8f36abfd6697e58cd76df3526b52e4b9dc894847/badge.svg)](https://snyk.io/test/github/storybooks/storybook/8f36abfd6697e58cd76df3526b52e4b9dc894847)
[![BCH compliance](https://bettercodehub.com/edge/badge/storybooks/storybook)](https://bettercodehub.com/results/storybooks/storybook) [![codecov](https://codecov.io/gh/storybooks/storybook/branch/master/graph/badge.svg)](https://codecov.io/gh/storybooks/storybook)
[![BCH compliance](https://bettercodehub.com/edge/badge/storybooks/storybook)](https://bettercodehub.com/results/storybooks/storybook) [![codecov](https://codecov.io/gh/storybooks/storybook/branch/master/graph/badge.svg)](https://codecov.io/gh/storybooks/storybook)
[![Storybook Slack](https://storybooks-slackin.herokuapp.com/badge.svg)](https://storybooks-slackin.herokuapp.com/)
[![Backers on Open Collective](https://opencollective.com/storybook/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/storybook/sponsors/badge.svg)](#sponsors)

---
* * *

Storybook is a development environment for UI components.
It allows you to browse a component library, view the different states of each component, and interactively develop and test components.
Expand All @@ -20,10 +21,23 @@ Storybook runs outside of your app. This allows you to develop UI components in

Storybook comes with a lot of [addons](https://storybooks.js.org/docs/react-storybook/addons/introduction) for component design, documentation, testing, interactivity, and so on. Storybook's easy-to-use API makes it easy to configure and extend in various ways. It has even been extended to support React Native development for mobile.

## Table of contents

- [Getting Started](#getting-started)
- [Projects](#projects)
- [Main Projects](#main-projects)
- [Sub Projects](#sub-projects)
- [Addons](#addons)
- [Contributing](#contributing)
- [Development scripts](#development-scripts)
- [Backers](#backers)
- [Sponsors](#sponsors)

## Getting Started

First install storybook:
```js

```sh
npm i -g @storybook/cli
cd my-react-app
getstorybook
Expand All @@ -36,32 +50,61 @@ For full documentation on using Storybook visit: [storybooks.js.org](https://sto
## Projects

### Main Projects
- [Storybook for react](app/react) - Storybook for React components
- [Storybook for react-native](app/react-native) - Storybook for React components

- [Storybook for react](app/react) - Storybook for React components
- [Storybook for react-native](app/react-native) - Storybook for React components

### Sub Projects
- [CLI](lib/cli) - Streamlined installation for a variety of app types
- [examples](examples) - Code examples to illustrate different Storybook use cases

- [CLI](lib/cli) - Streamlined installation for a variety of app types
- [examples](examples) - Code examples to illustrate different Storybook use cases

### Addons
- [addon-storyshots](addons/storyshots) - Easy snapshot testing for storybook
- [addon-actions](addons/actions/) - Log actions as users interact with components in storybook
- [addon-comments](addons/comments/) - Comment on storybook stories
- [addon-graphql](addons/graphql/) - Query a GraphQL server within Storybook stories
- [addon-info](addons/info/) - Annotate stories with extra component usage information
- [addon-knobs](addons/knobs/) - Interactively edit component prop data in the Storybook UI
- [addon-notes](addons/notes/) - Annotate storybook stories with notes
- [addon-options](addons/options/) - Customize the storybook UI in code

- [storyshots](addons/storyshots) - Easy snapshot testing for storybook
- [actions](addons/actions/) - Log actions as users interact with components in storybook
- [comments](addons/comments/) - Comment on storybook stories
- [graphql](addons/graphql/) - Query a GraphQL server within Storybook stories
- [info](addons/info/) - Annotate stories with extra component usage information
- [knobs](addons/knobs/) - Interactively edit component prop data in the Storybook UI
- [notes](addons/notes/) - Annotate storybook stories with notes
- [options](addons/options/) - Customize the storybook UI in code

## Contributing

We welcome contributions to Storybook! There are many ways to contribute to
this project. [Get started here](CONTRIBUTING.md)

### Development scripts

#### `npm run bootstrap`

> Installs package dependencies and links packages together - using lerna

#### `npm run publish`

> Push a release to git and npm
> will ask for version in interactive mode - using lerna.

#### `npm run lint`

> boolean check if code conforms to linting rules - uses remark & eslint

- `npm run lint:js` - will check js
- `npm run lint:markdown` - will check markdown + code samples

- `npm run lint:js -- --fix` - will autofix js
- `npm run lint:markdown -- -o` - will autofix markdown

#### `npm run test`

> boolean check if unittests all pass - uses jest

- `npm run test:watch` - will run tests in watchmode

### Backers

Support us with a monthly donation and help us continue our activities. [[Become a backer](https://opencollective.com/storybook#backer)]
Support us with a monthly donation and help us continue our activities. \[[Become a backer](https://opencollective.com/storybook#backer)]

<a href="https://opencollective.com/storybook/backer/0/website" target="_blank"><img src="https://opencollective.com/storybook/backer/0/avatar.svg"></a>
<a href="https://opencollective.com/storybook/backer/1/website" target="_blank"><img src="https://opencollective.com/storybook/backer/1/avatar.svg"></a>
Expand Down Expand Up @@ -94,10 +137,9 @@ Support us with a monthly donation and help us continue our activities. [[Become
<a href="https://opencollective.com/storybook/backer/28/website" target="_blank"><img src="https://opencollective.com/storybook/backer/28/avatar.svg"></a>
<a href="https://opencollective.com/storybook/backer/29/website" target="_blank"><img src="https://opencollective.com/storybook/backer/29/avatar.svg"></a>


### Sponsors

Become a sponsor and get your logo on our README on Github with a link to your site. [[Become a sponsor](https://opencollective.com/storybook#sponsor)]
Become a sponsor and get your logo on our README on Github with a link to your site. \[[Become a sponsor](https://opencollective.com/storybook#sponsor)]

<a href="https://opencollective.com/storybook/sponsor/0/website" target="_blank"><img src="https://opencollective.com/storybook/sponsor/0/avatar.svg"></a>
<a href="https://opencollective.com/storybook/sponsor/1/website" target="_blank"><img src="https://opencollective.com/storybook/sponsor/1/avatar.svg"></a>
Expand Down Expand Up @@ -129,4 +171,3 @@ Become a sponsor and get your logo on our README on Github with a link to your s
<a href="https://opencollective.com/storybook/sponsor/27/website" target="_blank"><img src="https://opencollective.com/storybook/sponsor/27/avatar.svg"></a>
<a href="https://opencollective.com/storybook/sponsor/28/website" target="_blank"><img src="https://opencollective.com/storybook/sponsor/28/avatar.svg"></a>
<a href="https://opencollective.com/storybook/sponsor/29/website" target="_blank"><img src="https://opencollective.com/storybook/sponsor/29/avatar.svg"></a>

22 changes: 13 additions & 9 deletions addons/actions/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,43 @@
## Changelog

### v1.1.3

22 Mar 2017

* Fix issue caused by `v1.1.2` where storybook crashes when actions are used without names [PR30](https://github.com/storybooks/storybook-addon-actions/pull/30).
- Fix issue caused by `v1.1.2` where storybook crashes when actions are used without names [PR30](https://github.com/storybooks/storybook-addon-actions/pull/30).

### v1.1.2

21 Mar 2017

* Document `decorateAction` function (action decorator). [PR28](https://github.com/storybooks/storybook-addon-actions/pull/28)
- Document `decorateAction` function (action decorator). [PR28](https://github.com/storybooks/storybook-addon-actions/pull/28)

* Set correct Function.name for action handlers [PR24](https://github.com/storybooks/storybook-addon-actions/pull/24)
- Set correct Function.name for action handlers [PR24](https://github.com/storybooks/storybook-addon-actions/pull/24)

### v1.1.1

11 Sep 2016

* Support arguments with circular references [PR6](https://github.com/kadirahq/storybook-addon-actions/pull/6)
- Support arguments with circular references [PR6](https://github.com/kadirahq/storybook-addon-actions/pull/6)

### v1.1.0

11 Sep 2016

* Support action decorators [PR3](https://github.com/kadirahq/storybook-addon-actions/pull/3)
- Support action decorators [PR3](https://github.com/kadirahq/storybook-addon-actions/pull/3)

### v1.0.4

* Refactor source code (use separate files)
- Refactor source code (use separate files)

### v1.0.3

* Log all arguments (only the first argument was logged previously)
- Log all arguments (only the first argument was logged previously)

### v1.0.2

* Style tweak: center counter and inspector elements
- Style tweak: center counter and inspector elements

### v1.0.1

* First stable release with all features from the storybook action logger such as `action` function, react inspector and grouping log messages.
- First stable release with all features from the storybook action logger such as `action` function, react inspector and grouping log messages.
3 changes: 2 additions & 1 deletion addons/actions/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Storybook Addon Actions

[![Greenkeeper badge](https://badges.greenkeeper.io/storybooks/storybook.svg)](https://greenkeeper.io/)
[![Build Status](https://travis-ci.org/storybooks/storybook.svg?branch=master)](https://travis-ci.org/storybooks/storybook)
[![CodeFactor](https://www.codefactor.io/repository/github/storybooks/storybook/badge)](https://www.codefactor.io/repository/github/storybooks/storybook)
Expand All @@ -20,7 +21,7 @@ You can use this addon without installing it manually.

Import the `action` function and use it to create actions handlers. When creating action handlers, provide a **name** to make it easier to identify.

> *Note: Make sure NOT to use reserved words as function names. [issues#29](https://github.com/storybooks/storybook-addon-actions/issues/29#issuecomment-288274794)*
> _Note: Make sure NOT to use reserved words as function names. [issues#29](https://github.com/storybooks/storybook-addon-actions/issues/29#issuecomment-288274794)_

```js
import { storiesOf } from '@storybook/react'
Expand Down
Loading