Skip to content
This repository has been archived by the owner on Jun 17, 2021. It is now read-only.

Commit

Permalink
update to docz v1 beta
Browse files Browse the repository at this point in the history
  • Loading branch information
superhawk610 committed Mar 27, 2019
1 parent c3433e6 commit 9e2caae
Show file tree
Hide file tree
Showing 11 changed files with 5,344 additions and 1,888 deletions.
20 changes: 4 additions & 16 deletions doczrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// @flow
import { COLORS } from './src/constants';
import { css } from 'docz-plugin-css';

export default {
title: 'Guppy',
Expand All @@ -10,20 +12,6 @@ export default {
primary: COLORS.blue[700],
},
},
modifyBundlerConfig: config => {
config.module.rules.push({
test: /\.css/i,
use: [
require.resolve('style-loader'),
{
loader: require.resolve('css-loader'),
options: {
importLoaders: 1,
},
},
],
});

return config;
},
plugins: [css()],
menu: ['Guppy Style Guide', 'Components', 'Reusable Components', 'Shared'],
};
24 changes: 15 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,16 @@
"build-docz": "docz build"
},
"lint-staged": {
"*.{js,jsx,mjs}": [
"npm run prettier",
"eslint",
"git add"
]
"linters": {
"*.{js,jsx,mjs}": [
"npm run prettier",
"eslint",
"git add"
]
}
},
"resolutions": {
"ansi-styles": "^3.2.0"
},
"dependencies": {
"create-react-app": "1.5.2",
Expand Down Expand Up @@ -89,8 +94,9 @@
"color": "3.0.0",
"cross-env": "5.2.0",
"css-loader": "0.28.9",
"docz": "0.11.2",
"docz-theme-default": "0.11.2",
"docz": "^1.0.0-rc.3",
"docz-plugin-css": "^0.11.0",
"docz-theme-default": "^1.0.0-rc.3",
"dotenv": "5.0.0",
"dotenv-expand": "4.2.0",
"electron": "4.0.0",
Expand Down Expand Up @@ -135,10 +141,10 @@
"prettier": "1.13.7",
"raf": "3.4.0",
"random-seed": "0.3.0",
"react": "16.3.2",
"react": "^16.8.5",
"react-dev-utils": "6.0.0-next.66cc7a90",
"react-docgen": "2.21.0",
"react-dom": "16.3.2",
"react-dom": "^16.8.5",
"react-icons-kit": "1.1.5",
"react-instantsearch": "5.1.0",
"react-motion": "0.5.2",
Expand Down
6 changes: 3 additions & 3 deletions src/components/Button/ButtonBase.mdx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
name: ButtonBase
menu: Button
menu: Reusable Components
---

import { Component, Fragment } from 'react'
import { Playground, PropsTable } from 'docz'
import { Playground, Props } from 'docz'

import { COLORS } from '../../constants'
import ButtonBase from './ButtonBase'
Expand All @@ -14,7 +14,7 @@ import ButtonBase from './ButtonBase'
> Note: You probably don't want to use this component directly. It's just the
> underlying shared bit of code between FillButton and StrokeButton.
<PropsTable of={ButtonBase} />
<Props of={ButtonBase} />

## Basic usage

Expand Down
6 changes: 3 additions & 3 deletions src/components/Button/FillButton.mdx
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
---
name: FillButton
menu: Button
menu: Reusable Components
---

import { Playground, PropsTable } from 'docz'
import { Playground, Props } from 'docz'

import { COLORS } from '../../constants'
import FillButton from './FillButton'

# FillButton

<PropsTable of={FillButton} />
<Props of={FillButton} />


## Basic usage
Expand Down
6 changes: 3 additions & 3 deletions src/components/Button/StrokeButton.mdx
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---
name: StrokeButton
menu: Button
menu: Reusable Components
---

import { Playground, PropsTable } from 'docz'
import { Playground, Props } from 'docz'
import { Toggle as ToggleState } from 'react-powerplug'

import { COLORS } from '../../constants'
import StrokeButton from './StrokeButton'

# StrokeButton

<PropsTable of={StrokeButton} />
<Props of={StrokeButton} />


## Basic usage
Expand Down
6 changes: 4 additions & 2 deletions src/components/Logo/Logo.mdx
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
---
name: Logo
menu: Components
---
import { Playground, PropsTable } from 'docz'

import { Playground, Props } from 'docz'

import Logo from './Logo'

# Logo

<PropsTable of={Logo} />
<Props of={Logo} />

## Basic Usage

Expand Down
5 changes: 3 additions & 2 deletions src/components/Toggle/toggle.mdx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
name: Toggle
menu: Reusable Components
---

import { Playground, PropsTable } from 'docz'
import { Playground, Props } from 'docz'
import { Toggle as ToggleState } from 'react-powerplug'
import { Tooltip } from 'react-tippy';

Expand All @@ -14,7 +15,7 @@ import 'react-tippy/dist/tippy.css';

# Toggle

<PropsTable of={Toggle} />
<Props of={Toggle} />


## Default
Expand Down
6 changes: 4 additions & 2 deletions src/components/WhimsicalInstaller/WhimsicalInstaller.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
name: WhimsicalInstaller
menu: Components
---
import { Playground, PropsTable } from 'docz'

import { Playground, Props } from 'docz'

import { COLORS } from '../../constants'

Expand All @@ -10,7 +12,7 @@ import WhimsicalInstaller from './WhimsicalInstaller'

# WhimsicalInstaller

<PropsTable of={WhimsicalInstaller} />
<Props of={WhimsicalInstaller} />


## Current Usage
Expand Down
2 changes: 2 additions & 0 deletions src/stories/colors/colors.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
name: Colors
menu: Shared
---

import { COLORS } from '../../constants';
import Heading from '../../components/Heading';
import ColorList from './ColorList';
Expand Down
12 changes: 12 additions & 0 deletions src/style-guide.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: Guppy Style Guide
route: '/'
---

# Style Guide

blah

## Usage

blah
Loading

0 comments on commit 9e2caae

Please sign in to comment.