mirror of
https://github.com/zhigang1992/docz.git
synced 2026-05-29 05:50:51 +08:00
chore(docz): use category() instead of group
This commit is contained in:
@@ -2,10 +2,9 @@ import React, { Fragment } from 'react'
|
||||
import { doc } from 'docz'
|
||||
|
||||
import { Alert } from './Alert'
|
||||
import { components } from './'
|
||||
|
||||
doc('Alert')
|
||||
.group(components)
|
||||
.category('Components')
|
||||
.description('This component is used to show alerts')
|
||||
.section('Basic usage', () => <Alert>Some message</Alert>)
|
||||
.section('Using different kinds', () => (
|
||||
|
||||
@@ -2,8 +2,7 @@ import React from 'react'
|
||||
import { doc } from 'docz'
|
||||
|
||||
import { Button } from './Button'
|
||||
import { components } from './'
|
||||
|
||||
doc('Button')
|
||||
.group(components)
|
||||
.category('Components')
|
||||
.section(() => <Button>Click me</Button>)
|
||||
|
||||
@@ -1,6 +1,2 @@
|
||||
import { group } from 'docz'
|
||||
|
||||
export { Alert } from './Alert'
|
||||
export { Button } from './Button'
|
||||
|
||||
export const components = group('Components')
|
||||
|
||||
Reference in New Issue
Block a user