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
|
@ -5,16 +5,15 @@ title: Mini
|
|||
import { DocusaurusDoc } from '@freesewing/react/components/Docusaurus'
|
||||
import { ComponentDocs } from '@site/src/components/component-docs.js'
|
||||
import * as jsdoc from '@site/prebuild/jsdoc/components.mini.mjs'
|
||||
import {
|
||||
MiniNoteExample,
|
||||
MiniTipExample,
|
||||
MiniWarningExample,
|
||||
} from './_examples.js'
|
||||
|
||||
import { MiniNoteExample, MiniTipExample, MiniWarningExample } from './_examples.js'
|
||||
|
||||
<DocusaurusDoc>
|
||||
|
||||
The __Mini__ component family provides the following components:
|
||||
- [Components](#components)
|
||||
|
||||
## Components
|
||||
|
||||
The **Mini** component family provides the following components:
|
||||
|
||||
- [MiniNote](#mininote)
|
||||
- [MiniTip](#minitip)
|
||||
|
@ -26,15 +25,16 @@ These components are typically used when a
|
|||
space.
|
||||
:::
|
||||
|
||||
### MiniNote
|
||||
|
||||
## MiniNote
|
||||
<ComponentDocs docs={jsdoc.jsdocMiniNote} example={MiniNoteExample} />
|
||||
|
||||
## MiniTip
|
||||
### MiniTip
|
||||
|
||||
<ComponentDocs docs={jsdoc.jsdocMiniTip} example={MiniTipExample} />
|
||||
|
||||
## MiniWarning
|
||||
### MiniWarning
|
||||
|
||||
<ComponentDocs docs={jsdoc.jsdocMiniWarning} example={MiniWarningExample} />
|
||||
|
||||
</DocusaurusDoc>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue