+
+
+
Try Now
+
+
+ npm i -g @storybook/cli
+ cd my-react-app
+ getstorybook
+
+
+
-
-
Read Docs
-
-
-
-
-
+
+
+
+
Documentation
+
+
+
+ 🔍
+
+
+
Basics
+
+ - Quick setup
+ - Adding to existing project
+ - Writing stories
+
+
+
+
+
Configuration
+
+ - Babel configurations
+ -
+ Webpack configurations
+
+ -
+ Custom scripts & styling
+
+ -
+ Serving static files
+
+
+
+
+
+
Addons
+
+ - Intro to Addons
+ -
+ Using Addons
+
+ -
+ Addon Gallery
+
+ -
+ Writing Addons
+
+ -
+ Api
+
+
+
;
diff --git a/docs/components/Homepage/MainLinks/style.css b/docs/components/Homepage/MainLinks/style.css
index 87cbe9c5f9d9..e91b64fb0ea6 100644
--- a/docs/components/Homepage/MainLinks/style.css
+++ b/docs/components/Homepage/MainLinks/style.css
@@ -7,32 +7,29 @@
}
.main-links-container {
- max-width: 600px;
margin: auto;
}
#main-links h2 {
- text-transform: uppercase;
text-align: center;
- font-size: 25px;
- font-weight: 600;
}
#main-links pre {
background-color: #444;
color: #DDD;
- padding: 15px 30px;
+ padding: 15px 20px;
line-height: 22px;
border: 0;
border-radius: 0;
}
-.docs-img {
- background: url('./images/docs.png');
- background-repeat: no-repeat;
- width: 40px;
- height: 54px;
- margin-top: 25px;
+.algolia-autocomplete {
+ display: block !important;
+}
+
+.try-now {
+ max-width: 450px;
+ margin: 40px auto;
}
@media only screen and (max-width: 700px) {
diff --git a/docs/components/Homepage/UsedBy/index.jsx b/docs/components/Homepage/UsedBy/index.jsx
index 18d359d93404..dcb0594a5a45 100644
--- a/docs/components/Homepage/UsedBy/index.jsx
+++ b/docs/components/Homepage/UsedBy/index.jsx
@@ -3,8 +3,8 @@ import React from 'react';
import { Link } from 'react-router';
import './style.css';
-const UsedByBg = ({ color }) =>
-
+export const UsedByBg = ({ color, style }) =>
+
;
UsedByBg.propTypes = {
color: PropTypes.string,
+ // eslint-disable-next-line
+ style: PropTypes.object,
};
UsedByBg.defaultProps = {
color: 'white',
+ style: {},
};
const User = ({ logo, demo, site, title }) =>
diff --git a/docs/components/Homepage/UsedBy/style.css b/docs/components/Homepage/UsedBy/style.css
index dad2519757cf..e4c0306f955f 100644
--- a/docs/components/Homepage/UsedBy/style.css
+++ b/docs/components/Homepage/UsedBy/style.css
@@ -10,10 +10,10 @@
.used-by-bg {
position: absolute;
- top: 0px;
- left: 0px;
- right: 0px;
- bottom: 0px;
+ top: -30px;
+ left: -30px;
+ right: -30px;
+ bottom: -30px;
}
.used-by-bg svg {
diff --git a/docs/html.js b/docs/html.js
index 31c6f2357014..38b1ed3f1a1e 100644
--- a/docs/html.js
+++ b/docs/html.js
@@ -16,6 +16,25 @@ const HTML = props => {
css = ;
}
+ const searchScript = [
+
,
+ ,
+ ,
+ ];
+
return (
@@ -29,6 +48,7 @@ const HTML = props => {
+ {searchScript}
);
diff --git a/docs/package.json b/docs/package.json
index 5f88b728135e..e27eba457bae 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -31,6 +31,7 @@
"bootstrap": "^3.3.7",
"chroma-js": "^0.7.2",
"color-pairs-picker": "^1.3.5",
+ "docsearch.js": "^2.3.3",
"front-matter": "^2.1.2",
"gatsby": "^0.12.45",
"gh-pages": "^0.12.0",