1
0
Fork 0

feat(ds.dev): example is not a shared component

This commit is contained in:
Joost De Cock 2021-12-24 17:13:48 +01:00
parent cbac621186
commit e705da9e7f
18 changed files with 784 additions and 108 deletions

View file

@ -3,14 +3,20 @@ import Highlight from './highlight.js'
import YouTube from './youtube.js'
import DesignIterator from './design-iterator.js'
import Figure from './figure.js'
import Example from './example.js'
import ReadMore from './read-more.js'
import Example from './example/index.js'
import examples from '@freesewing/examples'
import rendertest from '@freesewing/rendertest'
import tutorial from '@freesewing/tutorial'
const mdxCustomComponents = {
// Custom components
DesignIterator,
Example,
Example: props => <Example
{...props}
patterns={{examples, rendertest, tutorial}}
>{props.children}</Example>,
Fixme: props => <Popout {...props} fixme />,
Link: props => <Popout {...props} link />,
Note: props => <Popout {...props} note />,