Skip to content
This repository has been archived by the owner on Mar 30, 2018. It is now read-only.

Commit

Permalink
Refactor: Publish storybook in docs folder (#604)
Browse files Browse the repository at this point in the history
* publish storybook in docs folder

* clean

* lint ignore patterns
  • Loading branch information
stipsan committed Sep 30, 2017
1 parent 4b66eb9 commit ab1026c
Show file tree
Hide file tree
Showing 14 changed files with 218 additions and 13 deletions.
11 changes: 1 addition & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,4 @@ jobs:

- run: yarn coveralls

- run:
name: Maybe publish on npm
command: yarn semantic-release || true

- run:
name: Maybe deploy to uikit-react.io
command: |
if [[ $CIRCLE_BRANCH == master ]]; then
yarn deploy-storybook
fi
- run: yarn semantic-release || true
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
lib
.storybook
docs
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.coverage
.out
.storybook
docs
src
test
assets.json
1 change: 1 addition & 0 deletions docs/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uikit-react.io
Binary file added docs/favicon.ico
Binary file not shown.
32 changes: 32 additions & 0 deletions docs/iframe.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script>
if (window.parent !== window) {
window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__;
}
</script>
<title>React Storybook</title>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-25067435-4', 'auto');
ga('send', 'pageview');

</script>


</head>
<body>
<div id="root"></div>
<div id="error-display"></div>
<script src="static/preview.2490834e5e7cc4b85e05.bundle.js"></script>
</body>
</html>

44 changes: 44 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="storybook-version" content="2.35.3">
<title>React Storybook</title>
<style>
/*
When resizing panels, the drag event breaks if the cursor
moves over the iframe. Add the 'dragging' class to the body
at drag start and remove it when the drag ends.
*/
.dragging iframe {
pointer-events: none;
}

/* Styling the fuzzy search box placeholders */
.searchBox::-webkit-input-placeholder { /* Chrome/Opera/Safari */
color: #ddd;
font-size: 16px;
}

.searchBox::-moz-placeholder { /* Firefox 19+ */
color: #ddd;
font-size: 16px;
}

.searchBox:focus{
border-color: #EEE !important;
}

.btn:hover{
background-color: #eee
}
</style>
</head>
<body style="margin: 0;">
<div id="root"></div>
<script src="static/manager.cfe4c30ac4edf96602b0.bundle.js"></script>
</body>
</html>

33 changes: 33 additions & 0 deletions docs/logo-inverse.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions docs/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions docs/static/manager.cfe4c30ac4edf96602b0.bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/static/manager.cfe4c30ac4edf96602b0.bundle.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions docs/static/preview.2490834e5e7cc4b85e05.bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/static/preview.2490834e5e7cc4b85e05.bundle.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"build": "babel ./src --ignore __tests__,stories --out-dir ./lib",
"prepublish": "npm run build",
"storybook": "start-storybook -p 9001",
"build-storybook": "build-storybook -o .out -s .storybook/static",
"deploy-storybook": "storybook-to-ghpages",
"build-storybook": "build-storybook -o docs -s .storybook/static",
"changelog:preview": "sr-changelog",
"changelog:commit": "sr-changelog commit",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
Expand Down Expand Up @@ -54,7 +53,8 @@
],
"testPathIgnorePatterns": [
"/node_modules/",
"lib/"
"lib/",
"docs/"
]
},
"devDependencies": {
Expand Down

0 comments on commit ab1026c

Please sign in to comment.