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
|
@ -1,31 +1,39 @@
|
|||
---
|
||||
title: Patrons
|
||||
---
|
||||
|
||||
import { DocusaurusDoc } from '@freesewing/react/components/Docusaurus'
|
||||
import { ComponentDocs } from '@site/src/components/component-docs.js'
|
||||
import * as jsdoc from '@site/prebuild/jsdoc/components.patrons.mjs'
|
||||
import { Joost, Plea, PleaseSubscribe, Subscribe } from '@freesewing/react/components/Patrons'
|
||||
|
||||
|
||||
<DocusaurusDoc>
|
||||
|
||||
The __Patrons__ component family provides the following components:
|
||||
- [Components](#components)
|
||||
|
||||
## Components
|
||||
|
||||
The **Patrons** component family provides the following components:
|
||||
|
||||
- [Joost](#joost)
|
||||
- [Plea](#plea)
|
||||
- [PleaseSubscribe](#pleasesubscribe)
|
||||
- [Subscribe](#subscribe)
|
||||
|
||||
## Joost
|
||||
### Joost
|
||||
|
||||
<ComponentDocs docs={jsdoc.jsdocJoost} example={Joost} />
|
||||
|
||||
## Plea
|
||||
### Plea
|
||||
|
||||
<ComponentDocs docs={jsdoc.jsdocPlea} example={Plea} />
|
||||
|
||||
## PleaseSubscribe
|
||||
### PleaseSubscribe
|
||||
|
||||
<ComponentDocs docs={jsdoc.jsdocPleaseSubscribe} example={PleaseSubscribe} />
|
||||
|
||||
## Subscribe
|
||||
### Subscribe
|
||||
|
||||
<ComponentDocs docs={jsdoc.jsdocSubscribe} example={Subscribe} />
|
||||
|
||||
</DocusaurusDoc>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue