Skip to content

Commit

Permalink
remove stories, add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nucleogenesis committed Mar 16, 2022
1 parent 66557d6 commit 20b20ff
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 95 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ docs/jsdocs.js
# IDE
.idea
kolibri-design-system.iml

# ignore storybook stories
stories/
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,3 +263,12 @@ yarn run devserver
```

Now you're all set to see your changes to the Kolibri Design System working live in Kolibri!


### Using Storybook locally

The Kolibri Design System is configured with [Storybook](https://storybook.js.org/) and can be used locally. This is a tool designed to give you a chance to play with and tests components and the various combinations of props they might be configured with.

In order to make use of this tool, you will need to create a `stories/` directory in the root of your KDS repository. Inside of that folder, you can create any number of `*.stories.js` files according to the [Storybook VueJS docs](https://storybook.js.org/docs/vue/writing-stories/introduction). __Note: The `stories/` directory is included in the .gitignore, so these will not be committed along with any of your other work.__

Once you have stories created, you can run `yarn storybook` to start a server, which will open in your browser a window showing all of the stories you've created.
95 changes: 0 additions & 95 deletions stories/KButton.stories.js

This file was deleted.

0 comments on commit 20b20ff

Please sign in to comment.