Skip to content

Commit 2b2105a

Browse files
committed
upgrade docz, move docs to netlify
1 parent dbc10f3 commit 2b2105a

File tree

9 files changed

+1346
-1436
lines changed

9 files changed

+1346
-1436
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 0 additions & 43 deletions
This file was deleted.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.travis.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ dist: xenial
22
language: node_js
33
node_js:
44
- '--lts'
5+
cache: yarn
56
before_install:
67
- curl -o- -L https://yarnpkg.com/install.sh | bash
78
- source ~/.bashrc
@@ -13,13 +14,5 @@ script:
1314
- yarn lint
1415
- yarn test --ci --coverage
1516
- yarn build
16-
- yarn docs:build && cp .docz/dist/index.html .docz/dist/404.html
17-
deploy:
18-
provider: pages
19-
skip_cleanup: true
20-
github_token: $GITHUB_TOKEN
21-
local_dir: .docz/dist
22-
on:
23-
branch: master
2417
after_success:
2518
- bash <(curl -s https://codecov.io/bash) -e TRAVIS_NODE_VERSION

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![npm version](https://img.shields.io/npm/v/react-popper-tooltip.svg?style=flat-square)](https://www.npmjs.com/package/react-popper-tooltip)
44
[![npm downloads](https://img.shields.io/npm/dm/react-popper-tooltip.svg?style=flat-square)](https://www.npmjs.com/package/react-popper-tooltip)
55
[![Build Status](https://travis-ci.com/mohsinulhaq/react-popper-tooltip.svg?branch=master)](https://travis-ci.com/mohsinulhaq/react-popper-tooltip)
6+
[![Netlify Status](https://api.netlify.com/api/v1/badges/dd7ae444-b156-4204-957e-4bf246d84359/deploy-status)](https://app.netlify.com/sites/react-popper-tooltip/deploys)
67
[![Dependency Status](https://img.shields.io/david/mohsinulhaq/react-popper-tooltip.svg?style=flat-square)](https://david-dm.org/mohsinulhaq/react-popper-tooltip)
78
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
89
[![codecov](https://codecov.io/gh/mohsinulhaq/react-popper-tooltip/branch/master/graph/badge.svg)](https://codecov.io/gh/mohsinulhaq/react-popper-tooltip)
@@ -11,7 +12,7 @@ React tooltip component based on [react-popper](https://github.com/FezVrasta/rea
1112

1213
## Homepage
1314

14-
https://mohsinulhaq.github.io/react-popper-tooltip/
15+
https://react-popper-tooltip.netlify.com
1516

1617
## Example
1718

docs/readme.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: TooltipTrigger
33
route: /
44
---
55

6-
import {Playground, PropsTable} from 'docz';
6+
import {Playground} from 'docz';
77
import BasicTooltipTrigger from './examples/BasicTooltipTrigger';
88
import EscapeToClose from './examples/EscapeToClose';
99
import {StateContainer} from './examples/utils';

doczrc.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ import {css} from 'docz-plugin-css';
22

33
export default {
44
title: 'react-popper-tooltip',
5-
description: 'Documentation',
6-
base: '/react-popper-tooltip/',
5+
description: 'Documentation for react-popper-tooltip',
76
typescript: true,
87
codeSandbox: false,
98
plugins: [css()]

package.json

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "react-popper-tooltip",
33
"version": "2.8.2",
44
"description": "React tooltip library built around react-popper",
5-
"homepage": "https://mohsinulhaq.github.io/react-popper-tooltip/",
5+
"homepage": "https://react-popper-tooltip.netlify.com",
66
"repository": {
77
"type": "git",
88
"url": "https://github.com/mohsinulhaq/react-popper-tooltip"
@@ -22,7 +22,6 @@
2222
"prepublishOnly": "yarn typecheck && yarn lint && yarn test && yarn build",
2323
"docs": "docz dev",
2424
"docs:build": "docz build",
25-
"docs:deploy": "yarn docs:build && cp .docz/dist/index.html .docz/dist/404.html && gh-pages -d .docz/dist",
2625
"typecheck": "tsc --noEmit",
2726
"lint": "eslint src/**/*.{ts,tsx}",
2827
"test": "jest"
@@ -47,41 +46,41 @@
4746
"react-dom": "^16.6.0"
4847
},
4948
"dependencies": {
50-
"@babel/runtime": "^7.4.3",
49+
"@babel/runtime": "^7.4.4",
5150
"react-popper": "^1.3.3"
5251
},
5352
"devDependencies": {
54-
"@babel/cli": "^7.4.3",
55-
"@babel/core": "^7.4.3",
56-
"@babel/plugin-proposal-class-properties": "^7.4.0",
57-
"@babel/plugin-transform-runtime": "^7.4.3",
58-
"@babel/preset-env": "^7.4.3",
53+
"@babel/cli": "^7.4.4",
54+
"@babel/core": "^7.4.4",
55+
"@babel/plugin-proposal-class-properties": "^7.4.4",
56+
"@babel/plugin-transform-runtime": "^7.4.4",
57+
"@babel/preset-env": "^7.4.4",
5958
"@babel/preset-react": "^7.0.0",
6059
"@babel/preset-typescript": "^7.3.3",
6160
"@types/jest": "^24.0.11",
62-
"@types/react": "^16.8.13",
63-
"@types/react-dom": "^16.8.3",
64-
"@typescript-eslint/eslint-plugin": "^1.6.0",
65-
"@typescript-eslint/parser": "^1.6.0",
66-
"docz": "^0.13.7",
61+
"@types/react": "^16.8.14",
62+
"@types/react-dom": "^16.8.4",
63+
"@typescript-eslint/eslint-plugin": "^1.7.0",
64+
"@typescript-eslint/parser": "^1.7.0",
65+
"docz": "^1.0.4",
6766
"docz-plugin-css": "^0.11.0",
68-
"docz-theme-default": "^0.13.7",
67+
"docz-theme-default": "^1.0.4",
6968
"eslint": "^5.16.0",
70-
"eslint-config-prettier": "^4.1.0",
69+
"eslint-config-prettier": "^4.2.0",
7170
"eslint-plugin-jsx-a11y": "^6.2.1",
7271
"eslint-plugin-prettier": "^3.0.1",
7372
"eslint-plugin-react": "^7.12.4",
74-
"gh-pages": "^2.0.1",
7573
"jest": "^24.7.1",
7674
"pre-commit": "^1.2.2",
77-
"prettier": "^1.16.4",
78-
"react": "^16.8.5",
79-
"react-dom": "^16.8.5",
80-
"react-testing-library": "^6.1.2",
81-
"rollup": "^1.10.0",
75+
"prettier": "^1.17.0",
76+
"react": "^16.8.6",
77+
"react-dom": "^16.8.6",
78+
"react-hot-loader": "^4.8.4",
79+
"react-testing-library": "^7.0.0",
80+
"rollup": "^1.10.1",
8281
"rollup-plugin-babel": "^4.3.2",
8382
"rollup-plugin-node-resolve": "^4.2.3",
8483
"rollup-plugin-size-snapshot": "^0.8.0",
85-
"typescript": "^3.4.3"
84+
"typescript": "^3.4.5"
8685
}
8786
}

0 commit comments

Comments
 (0)