feat(dev): Added react docs for Pattern + refactor
This adds support for not only documenating components, but also constants and functions that may be exported next to components.
This commit is contained in:
parent
d0baf7cece
commit
22a89f12d3
50 changed files with 1816 additions and 669 deletions
|
@ -12,17 +12,14 @@ import {
|
|||
jsdocH5,
|
||||
jsdocH6,
|
||||
} from '@site/prebuild/jsdoc/components.heading.mjs'
|
||||
import {
|
||||
H1Example,
|
||||
H2Example,
|
||||
H3Example,
|
||||
H4Example,
|
||||
H5Example,
|
||||
H6Example,
|
||||
} from './_examples.js'
|
||||
import { H1Example, H2Example, H3Example, H4Example, H5Example, H6Example } from './_examples.js'
|
||||
|
||||
<DocusaurusDoc>
|
||||
|
||||
- [Components](#components)
|
||||
|
||||
## Components
|
||||
|
||||
The **Button** component family provides the following components:
|
||||
|
||||
- [H1](#h1)
|
||||
|
@ -32,23 +29,28 @@ The **Button** component family provides the following components:
|
|||
- [H5](#h5)
|
||||
- [H6](#h6)
|
||||
|
||||
## H1
|
||||
### H1
|
||||
|
||||
<ComponentDocs docs={jsdocH1} example={H1Example} />
|
||||
|
||||
## H2
|
||||
### H2
|
||||
|
||||
<ComponentDocs docs={jsdocH2} example={H2Example} />
|
||||
|
||||
## H3
|
||||
### H3
|
||||
|
||||
<ComponentDocs docs={jsdocH3} example={H3Example} />
|
||||
|
||||
## H4
|
||||
### H4
|
||||
|
||||
<ComponentDocs docs={jsdocH4} example={H4Example} />
|
||||
|
||||
## H5
|
||||
### H5
|
||||
|
||||
<ComponentDocs docs={jsdocH5} example={H5Example} />
|
||||
|
||||
## H6
|
||||
### H6
|
||||
|
||||
<ComponentDocs docs={jsdocH6} example={H6Example} />
|
||||
|
||||
|
||||
</DocusaurusDoc>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue