Skip to content

Commit

Permalink
chore: remove website
Browse files Browse the repository at this point in the history
  • Loading branch information
cncolder committed May 31, 2020
1 parent 169808d commit a8908e3
Show file tree
Hide file tree
Showing 188 changed files with 1,247 additions and 17,514 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,4 @@ website/build
# Other
.DS_Store
.temp
website
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ export default () => {
* [ ] 子组件
* [x] ActivityIndicator
* [ ] Article
* [x] Avatar
* [x] [Avatar](./docs/components/Avatar.mdx)
* [x] Badge
* [x] Button
* [x] [Button](./docs/components/Button.mdx)
* [x] Calendar
* [ ] Swipe 操作
* [ ] Card
Expand Down
13 changes: 0 additions & 13 deletions babel.config.js

This file was deleted.

8 changes: 0 additions & 8 deletions config/dev.js

This file was deleted.

59 changes: 0 additions & 59 deletions config/index.js

This file was deleted.

12 changes: 0 additions & 12 deletions config/prod.js

This file was deleted.

15 changes: 15 additions & 0 deletions docs/components/Avatar.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: Avatar 头像
---

用于展示用户头像

## API

| 参数 | 说明 | 类型 | 默认值 |
| ---- | ---- | ----------------------------- | ------ |
| size | 尺寸 | `tiny` `mini` `small` `large` | |

- [Taro UI 文档](https://taro-ui.jd.com/#/docs/avatar)
- [`<Avatar />`](modules/_avatar_.md)
- [`AvatarProps`](interfaces/_avatar_.avatarprops.md)
32 changes: 14 additions & 18 deletions docs/components/Button.mdx
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
---
id: button
title: Button
sidebar_label: Button
title: Button 按钮
---

## Hello from Docusaurus
## 示例

Are you ready to create the documentation site for your open source project?
import { Button } from '@tarojsx/ui/dist/Button'

### type

// import { Button } from '../../../src/Button'
<Button>default</Button>

```tsx
<Button>default</Button>
Expand Down Expand Up @@ -65,15 +61,15 @@ function Clock(props) {
}
```

:::note
The content and title _can_ include markdown.
:::

:::tip 提示
The content and title _can_ include markdown.
:::

## API

- [`<Button />`](modules/_button_.md)
- [`ButtonProps`](interfaces/_button_.buttonprops.md)
| 参数 | 说明 | 类型 | 默认值 |
| ------------- | ----------------------------------- | ---------------------------------------------- | ------ |
| type | 类型 | `default` `primary` `secondary` `warn` `error` | |
| size | 尺寸 | `default` `normal` `small` `mini` | |
| clickThrottle | onClick 事件节流时间间隔, 单位: ms. | `boolean` `number` | 500ms |
| transparent | 透明按钮. | `boolean` | |

- [Taro UI 文档](https://taro-ui.jd.com/#/docs/button)
- [`<Button />`](../modules/_button_.md)
- [`ButtonProps`](../interfaces/_button_.buttonprops.md)
2 changes: 2 additions & 0 deletions docs/globals.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ sidebar_label: "Globals"
* ["CustomTabBar"](modules/_customtabbar_.md)
* ["FloatLayout"](modules/_floatlayout_.md)
* ["Form"](modules/_form_.md)
* ["Grid"](modules/_grid_.md)
* ["Icon"](modules/_icon_.md)
* ["ImagePicker"](modules/_imagepicker_.md)
* ["Input"](modules/_input_.md)
Expand All @@ -38,6 +39,7 @@ sidebar_label: "Globals"
* ["Message"](modules/_message_.md)
* ["Modal"](modules/_modal_.md)
* ["Progress"](modules/_progress_.md)
* ["SearchBar"](modules/_searchbar_.md)
* ["Statistic"](modules/_statistic_.md)
* ["Steps"](modules/_steps_.md)
* ["TabBar"](modules/_tabbar_.md)
Expand Down
12 changes: 6 additions & 6 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sidebar_label: "README"
<h1>Taro3 UI</h1>
</div>
<div align="center">
<strong>我们重新(zào)发(lún)明(zi) <a href="https://github.com/NervJS/taro-ui" target="_blank">Taro UI</a></strong>
<strong>我们重新(zào)发(lún)明(zi) <a href="https://github.com/NervJS/taro-ui" target="_blank">Taro UI</a></strong>
</div>

<br />
Expand All @@ -24,7 +24,7 @@ sidebar_label: "README"
<img src="https://badgen.net/npm/dt/@tarojsx/ui" alt="npm downloads" />
</a>
<a href="https://github.com/tarojsx/ui/blob/master/package.json">
<img src="https://badgen.net/github/dependents-pkg/tarojsx/ui" alt="npm downloads" />
<img src="https://badgen.net/github/dependents-pkg/tarojsx/ui" alt="dependents" />
</a>
<a href="http://makeapullrequest.com">
<img src="https://badgen.net/badge/PRs/welcome/green" alt="PRs welcome" />
Expand Down Expand Up @@ -99,9 +99,9 @@ export default () => {
* [ ] 子组件
* [x] ActivityIndicator
* [ ] Article
* [x] Avatar
* [x] [Avatar](./docs/components/Avatar.mdx)
* [x] Badge
* [x] Button
* [x] [Button](./docs/components/Button.mdx)
* [x] Calendar
* [ ] Swipe 操作
* [ ] Card
Expand All @@ -113,7 +113,7 @@ export default () => {
* [ ] ~~Flex~~ (使用率不高)
* [x] FloatLayout
* [x] Form
* [ ] Grid
* [x] Grid
* [x] Icon
* [x] ImagePicker
* [ ] Indexes
Expand All @@ -132,7 +132,7 @@ export default () => {
* [x] Progress
* [ ] Radio
* [ ] Rate
* [ ] SearchBar
* [x] SearchBar
* [ ] SegmentedControl
* [ ] Slider
* [x] Steps
Expand Down
10 changes: 5 additions & 5 deletions docs/interfaces/_actionsheet_.actionsheetprops.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,36 +26,36 @@ sidebar_label: "ActionSheetProps"

**cancelText**? : *React.ReactNode*

*Defined in [src/ActionSheet.tsx:13](https://github.com/tarojsx/ui/blob/6701f45/src/ActionSheet.tsx#L13)*
*Defined in [src/ActionSheet.tsx:13](https://github.com/tarojsx/ui/blob/v0.11.0/src/ActionSheet.tsx#L13)*

___

### `Optional` className

**className**? : *string*

*Defined in [src/ActionSheet.tsx:9](https://github.com/tarojsx/ui/blob/6701f45/src/ActionSheet.tsx#L9)*
*Defined in [src/ActionSheet.tsx:9](https://github.com/tarojsx/ui/blob/v0.11.0/src/ActionSheet.tsx#L9)*

___

### `Optional` isOpened

**isOpened**? : *boolean*

*Defined in [src/ActionSheet.tsx:11](https://github.com/tarojsx/ui/blob/6701f45/src/ActionSheet.tsx#L11)*
*Defined in [src/ActionSheet.tsx:11](https://github.com/tarojsx/ui/blob/v0.11.0/src/ActionSheet.tsx#L11)*

___

### `Optional` style

**style**? : *CSSProperties*

*Defined in [src/ActionSheet.tsx:10](https://github.com/tarojsx/ui/blob/6701f45/src/ActionSheet.tsx#L10)*
*Defined in [src/ActionSheet.tsx:10](https://github.com/tarojsx/ui/blob/v0.11.0/src/ActionSheet.tsx#L10)*

___

### `Optional` title

**title**? : *React.ReactNode*

*Defined in [src/ActionSheet.tsx:12](https://github.com/tarojsx/ui/blob/6701f45/src/ActionSheet.tsx#L12)*
*Defined in [src/ActionSheet.tsx:12](https://github.com/tarojsx/ui/blob/v0.11.0/src/ActionSheet.tsx#L12)*
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ ___

*Overrides void*

*Defined in [src/ActivityIndicator.tsx:10](https://github.com/tarojsx/ui/blob/6701f45/src/ActivityIndicator.tsx#L10)*
*Defined in [src/ActivityIndicator.tsx:10](https://github.com/tarojsx/ui/blob/v0.11.0/src/ActivityIndicator.tsx#L10)*

___

Expand Down
14 changes: 7 additions & 7 deletions docs/interfaces/_avatar_.avatarprops.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,31 +26,31 @@ sidebar_label: "AvatarProps"

**circle**? : *boolean*

*Defined in [src/Avatar.tsx:12](https://github.com/tarojsx/ui/blob/6701f45/src/Avatar.tsx#L12)*
*Defined in [src/Avatar.tsx:12](https://github.com/tarojsx/ui/blob/v0.11.0/src/Avatar.tsx#L12)*

___

### `Optional` className

**className**? : *string*

*Defined in [src/Avatar.tsx:9](https://github.com/tarojsx/ui/blob/6701f45/src/Avatar.tsx#L9)*
*Defined in [src/Avatar.tsx:9](https://github.com/tarojsx/ui/blob/v0.11.0/src/Avatar.tsx#L9)*

___

### `Optional` image

**image**? : *string*

*Defined in [src/Avatar.tsx:14](https://github.com/tarojsx/ui/blob/6701f45/src/Avatar.tsx#L14)*
*Defined in [src/Avatar.tsx:14](https://github.com/tarojsx/ui/blob/v0.11.0/src/Avatar.tsx#L14)*

___

### `Optional` openData

**openData**? : *object*

*Defined in [src/Avatar.tsx:15](https://github.com/tarojsx/ui/blob/6701f45/src/Avatar.tsx#L15)*
*Defined in [src/Avatar.tsx:15](https://github.com/tarojsx/ui/blob/v0.11.0/src/Avatar.tsx#L15)*

#### Type declaration:

Expand All @@ -64,20 +64,20 @@ ___

**size**? : *"tiny" | "mini" | "small" | "large"*

*Defined in [src/Avatar.tsx:11](https://github.com/tarojsx/ui/blob/6701f45/src/Avatar.tsx#L11)*
*Defined in [src/Avatar.tsx:11](https://github.com/tarojsx/ui/blob/v0.11.0/src/Avatar.tsx#L11)*

___

### `Optional` style

**style**? : *CSSProperties*

*Defined in [src/Avatar.tsx:10](https://github.com/tarojsx/ui/blob/6701f45/src/Avatar.tsx#L10)*
*Defined in [src/Avatar.tsx:10](https://github.com/tarojsx/ui/blob/v0.11.0/src/Avatar.tsx#L10)*

___

### `Optional` text

**text**? : *string*

*Defined in [src/Avatar.tsx:13](https://github.com/tarojsx/ui/blob/6701f45/src/Avatar.tsx#L13)*
*Defined in [src/Avatar.tsx:13](https://github.com/tarojsx/ui/blob/v0.11.0/src/Avatar.tsx#L13)*
10 changes: 5 additions & 5 deletions docs/interfaces/_badge_.badgeprops.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,36 +24,36 @@ sidebar_label: "BadgeProps"

**className**? : *string*

*Defined in [src/Badge.tsx:8](https://github.com/tarojsx/ui/blob/6701f45/src/Badge.tsx#L8)*
*Defined in [src/Badge.tsx:8](https://github.com/tarojsx/ui/blob/v0.11.0/src/Badge.tsx#L8)*

___

### `Optional` dot

**dot**? : *boolean*

*Defined in [src/Badge.tsx:10](https://github.com/tarojsx/ui/blob/6701f45/src/Badge.tsx#L10)*
*Defined in [src/Badge.tsx:10](https://github.com/tarojsx/ui/blob/v0.11.0/src/Badge.tsx#L10)*

___

### `Optional` maxValue

**maxValue**? : *number*

*Defined in [src/Badge.tsx:12](https://github.com/tarojsx/ui/blob/6701f45/src/Badge.tsx#L12)*
*Defined in [src/Badge.tsx:12](https://github.com/tarojsx/ui/blob/v0.11.0/src/Badge.tsx#L12)*

___

### `Optional` style

**style**? : *CSSProperties*

*Defined in [src/Badge.tsx:9](https://github.com/tarojsx/ui/blob/6701f45/src/Badge.tsx#L9)*
*Defined in [src/Badge.tsx:9](https://github.com/tarojsx/ui/blob/v0.11.0/src/Badge.tsx#L9)*

___

### `Optional` value

**value**? : *number | string*

*Defined in [src/Badge.tsx:11](https://github.com/tarojsx/ui/blob/6701f45/src/Badge.tsx#L11)*
*Defined in [src/Badge.tsx:11](https://github.com/tarojsx/ui/blob/v0.11.0/src/Badge.tsx#L11)*
Loading

0 comments on commit a8908e3

Please sign in to comment.