Skip to content

Commit 1fda05a

Browse files
WesSouzaarturbien
authored andcommitted
chore: remove docz dependency
1 parent 018de20 commit 1fda05a

File tree

32 files changed

+19
-148
lines changed

32 files changed

+19
-148
lines changed

.gitignore

-4
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,3 @@ yarn-error.log*
3333

3434
# JetBrains IDEs
3535
.idea/*
36-
37-
# Docs
38-
.docz
39-
/docs/build

docs/component_template docs/component_template.mdx

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: __component
33
menu: Components
44
---
55

6-
import { Playground, Props } from 'docz';
7-
86
import { __component } from 'react95';
97

108
# __component

docs/index.mdx

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: Welcome
33
route: /
44
---
55

6-
import { Link } from 'docz';
7-
86
## Welcome to React95
97

108
<p align="center">
@@ -36,7 +34,7 @@ import { Link } from 'docz';
3634

3735
### Getting Started
3836

39-
<span>Check out our <Link to='/installation'>getting started</Link> docs!</span>
37+
<span>Check out our [getting started](/installation) docs!</span>
4038

4139
### Motivation
4240

docs/installation.mdx

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ To install and save your `package.json` dependencies, run:
1313

1414
```sh
1515
// yarn
16-
yarn react95 styled-components
16+
yarn add react95 styled-components
1717

1818
// npm
19-
npm i react95 styled-components
19+
npm i -S react95 styled-components
2020
```
2121

2222
In order to have `react95` working properly, you'll also need [`styled-components`](https://github.com/styled-components/styled-components), this way you can use custom themes and get the best of the library 🙂
@@ -31,11 +31,11 @@ import { createGlobalStyle, ThemeProvider } from 'styled-components';
3131
import { styleReset, List, ListItem, Divider } from 'react95';
3232

3333
/* Pick a theme of your choice */
34-
import original from "react95/dist/themes/original";
34+
import original from 'react95/dist/themes/original';
3535

3636
/* Original Windows95 font (optional) */
37-
import ms_sans_serif from "react95/dist/fonts/ms_sans_serif.woff2";
38-
import ms_sans_serif_bold from "react95/dist/fonts/ms_sans_serif_bold.woff2";
37+
import ms_sans_serif from 'react95/dist/fonts/ms_sans_serif.woff2';
38+
import ms_sans_serif_bold from 'react95/dist/fonts/ms_sans_serif_bold.woff2';
3939

4040
const GlobalStyles = createGlobalStyle`
4141
@font-face {

package.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@
4444
"lint": "eslint src --ext .js",
4545
"lint:fix": "npm run lint -- --fix",
4646
"semantic-release": "semantic-release",
47-
"cz": "git-cz",
48-
"docs:dev": "docz dev",
49-
"docs:build": "docz build"
47+
"cz": "git-cz"
5048
},
5149
"peerDependencies": {
5250
"react": ">= 16.8.0",
@@ -72,7 +70,6 @@
7270
"commitizen": "^4.2.5",
7371
"cross-env": "^7.0.3",
7472
"cz-conventional-changelog": "^3.3.0",
75-
"docz": "^2.4.0",
7673
"eslint": "^8.20.0",
7774
"eslint-config-airbnb": "^19.0.4",
7875
"eslint-config-prettier": "^8.5.0",
@@ -81,7 +78,6 @@
8178
"eslint-plugin-prettier": "^4.2.1",
8279
"eslint-plugin-react": "^7.30.1",
8380
"firebase-tools": "^11.3.0",
84-
"gatsby-theme-docz": "^2.4.0",
8581
"husky": "^8.0.1",
8682
"jest": "^28.1.3",
8783
"jest-environment-jsdom": "^28.1.3",

src/Anchor/Anchor.mdx

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: Anchor
33
menu: Components
44
---
55

6-
import { Playground, Props } from 'docz';
7-
86
import Anchor from './Anchor';
97

108
# Anchor

src/AppBar/AppBar.mdx

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: AppBar
33
menu: Components
44
---
55

6-
import { Playground, Props } from 'docz';
7-
86
import AppBar from './AppBar'
97
import Toolbar from '../Toolbar/Toolbar'
108
import Button from '../Button/Button'

src/Avatar/Avatar.mdx

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: Avatar
33
menu: Components
44
---
55

6-
import { Playground, Props } from 'docz';
7-
86
import Avatar from './Avatar';
97

108
# Avatar

src/Bar/Bar.mdx

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: Bar
33
menu: Components
44
---
55

6-
import { Playground, Props } from 'docz';
7-
86
import Bar from '../Bar/Bar'
97
import AppBar from '../AppBar/AppBar.js'
108
import Toolbar from '../Toolbar/Toolbar.js'

src/Button/Button.mdx

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: Button
33
menu: Components
44
---
55

6-
import { Playground, Props } from 'docz';
7-
86
import Button from './Button'
97
import Window from '../Window/Window'
108
import WindowContent from '../WindowContent/WindowContent'

src/Checkbox/Checkbox.mdx

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: Checkbox
33
menu: Components
44
---
55

6-
import { Playground, Props } from 'docz';
7-
86
import Checkbox from './Checkbox'
97
import Fieldset from '../Fieldset/Fieldset'
108
import Button from '../Button/Button'

src/Counter/Counter.mdx

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ name: Bar
33
menu: Components
44
---
55

6-
import { Playground, Props } from 'docz';
7-
8-
import Counter from '../Counter/Counter'
6+
import Counter from '../Counter/Counter';
97

108
# Counter
119

src/Cutout/Cutout.mdx

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: Cutout
33
menu: Components
44
---
55

6-
import { Playground, Props } from 'docz';
7-
86
import Cutout from './Cutout'
97
import Window from '../Window/Window'
108
import WindowContent from '../WindowContent/WindowContent'

src/DatePicker/DatePicker.mdx

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: DatePicker
33
menu: Components
44
---
55

6-
import { Playground, Props } from 'docz';
7-
86
import DatePicker from './DatePicker';
97

108
# DatePicker

src/Desktop/Desktop.mdx

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ name: Desktop
33
menu: Components
44
---
55

6-
import { Playground, Props } from 'docz';
7-
8-
import Desktop from '../Desktop/Desktop'
6+
import Desktop from '../Desktop/Desktop';
97

108
# Desktop
119

src/Divider/Divider.mdx

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
---
2+
23
name: Divider
34
menu: Components
4-
---import { Playground, Props } from 'docz';
5-
6-
import Divider from './Divider'
5+
---import Divider from './Divider'
76
import List from '../List/List'
87
import ListItem from '../ListItem/ListItem'
98

src/Fieldset/Fieldset.mdx

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: Fieldset
33
menu: Components
44
---
55

6-
import { Playground, Props } from 'docz';
7-
86
import Fieldset from './Fieldset'
97
import Window from '../Window/Window'
108
import WindowContent from '../WindowContent/WindowContent'

src/Hourglass/Hourglass.mdx

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: Hourglass
33
menu: Components
44
---
55

6-
import { Playground, Props } from 'docz';
7-
86
import Hourglass from './Hourglass';
97

108
# Hourglass

src/List/List.mdx

+2-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@ name: List
33
menu: Components
44
---
55

6-
import { Playground, Props } from 'docz';
7-
8-
import List from './List'
9-
import ListItem from '../ListItem/ListItem'
6+
import List from './List';
7+
import ListItem from '../ListItem/ListItem';
108

119
# List
1210

src/ListItem/ListItem.mdx

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: ListItem
33
menu: Components
44
---
55

6-
import { Playground, Props } from 'docz';
7-
86
import ListItem from './ListItem';
97
import List from '../List/List';
108
import Divider from '../Divider/Divider';

src/NumberField/NumberField.mdx

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: NumberField
33
menu: Components
44
---
55

6-
import { Playground, Props } from 'docz';
7-
86
import NumberField from './NumberField';
97
import Cutout from '../Cutout/Cutout'
108

src/Progress/Progress.mdx

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: Progress
33
menu: Components
44
---
55

6-
import { Playground, Props } from 'docz';
7-
86
import Progress from './Progress';
97

108
# Progress

src/Radio/Radio.mdx

+4-6
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@ name: Radio
33
menu: Components
44
---
55

6-
import { Playground, Props } from 'docz';
7-
8-
import Radio from './Radio'
9-
import Fieldset from '../Fieldset/Fieldset'
10-
import Window from '../Window/Window'
11-
import WindowContent from '../WindowContent/WindowContent'
6+
import Radio from './Radio';
7+
import Fieldset from '../Fieldset/Fieldset';
8+
import Window from '../Window/Window';
9+
import WindowContent from '../WindowContent/WindowContent';
1210

1311
# Radio
1412

src/Select/Select.mdx

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: Select
33
menu: Components
44
---
55

6-
import { Playground, Props } from 'docz';
7-
86
import Select from './Select'
97
import Window from '../Window/Window'
108
import WindowContent from '../WindowContent/WindowContent'

src/Table/Table.mdx

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: Table
33
menu: Components
44
---
55

6-
import { Playground, Props } from 'docz';
7-
86
import Table from './Table'
97
import TableBody from '../TableBody/TableBody'
108
import TableHead from '../TableHead/TableHead'

src/Tabs/Tabs.mdx

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: Tabs
33
menu: Components
44
---
55

6-
import { Playground, Props } from 'docz';
7-
86
import Tabs from './Tabs'
97
import Tab from '../Tab/Tab'
108
import TabBody from '../TabBody/TabBody'

src/TextField/TextField.mdx

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: TextField
33
menu: Components
44
---
55

6-
import { Playground, Props } from 'docz';
7-
86
import TextField from './TextField';
97
import Cutout from '../Cutout/Cutout';
108

src/Tooltip/Tooltip.mdx

+2-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@ name: Tooltip
33
menu: Components
44
---
55

6-
import { Playground, Props } from 'docz';
7-
8-
import Tooltip from './Tooltip'
9-
import Button from '../Button/Button'
6+
import Tooltip from './Tooltip';
7+
import Button from '../Button/Button';
108

119
# Tooltip
1210

src/Window/Window.mdx

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: Window
33
menu: Components
44
---
55

6-
import { Playground, Props } from 'docz';
7-
86
import Window from './Window'
97
import WindowContent from '../WindowContent/WindowContent'
108
import WindowHeader from '../WindowHeader/WindowHeader'

src/gatsby-theme-docz/README.md

-1
This file was deleted.

src/gatsby-theme-docz/components/Playground/index.js

-18
This file was deleted.

0 commit comments

Comments
 (0)