Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add a new explorable component / basic setup of articles and interactives for explorables #1

Open
P3nny opened this issue Apr 20, 2020 · 0 comments

Comments

@P3nny
Copy link
Contributor

P3nny commented Apr 20, 2020

  • explorable articles are stored as mdx pages in the datenguide/datenguide repo (comparable to blog articles)
  • components are developed inside the storybook

To write a new component:
In /storybook:
- add a new component.js file in explorables/components
- add a component.stories.js file in explorables/stories
- publish the component as npm package

To use the new component in a explorable article:
In datenguide/datenguide:
- clone the explorable template
- import the components you need via npm
- import and use the components in your mdx article file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant