-
Notifications
You must be signed in to change notification settings - Fork 730
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8f9082e
commit c5bd021
Showing
4 changed files
with
74 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import React from 'react'; | ||
import Markdown from 'react-markdown/with-html'; | ||
|
||
import Page from '../../components/Page'; | ||
import Footer from '../../components/Footer'; | ||
import ApiTable, { DocGenInfo } from '../../components/ApiTable'; | ||
import BrushReadme from '!!raw-loader!../../../../vx-brush/Readme.md'; | ||
import Brush from '../../../../vx-brush/src/Brush'; | ||
import DocPage from '../../components/DocPage'; | ||
|
||
const components = [ | ||
// @ts-ignore | ||
Brush.__docgenInfo, | ||
] as DocGenInfo[]; | ||
|
||
export default () => ( | ||
<Page title="@vx/brush documentation"> | ||
<DocPage currentPackage="brush"> | ||
<Markdown escapeHtml={false} source={BrushReadme} /> | ||
<h2>Components</h2> | ||
<ul> | ||
{components.map(component => ( | ||
<li key={component.displayName}> | ||
<a href={`#${component.displayName}`}> | ||
<code><{component.displayName} /></code> | ||
</a> | ||
</li> | ||
))} | ||
</ul> | ||
|
||
<h2>APIs</h2> | ||
{components.map(component => ( | ||
<ApiTable key={component.displayName} docgenInfo={component} /> | ||
))} | ||
</DocPage> | ||
<Footer /> | ||
</Page> | ||
); |
This file was deleted.
Oops, something went wrong.