1
0
mirror of https://github.com/storybookjs/storybook.git synced 2025-03-24 05:02:24 +08:00
storybook/stories/index.js
Michael Shilman 531b15aea3 Use original docs components and styling inside gatsby
- get rid of sections concept temporarily
- markdown is already parsed to HTML by gatsby
2017-05-02 16:29:08 +10:00

17 lines
443 B
JavaScript

import React from 'react';
import { storiesOf } from '@kadira/storybook';
import implementations from './implementations';
const storyGroups = {};
for (const key in implementations) {
const [groupName, itemName] = key.split('.');
const implementation = implementations[key];
if (!storyGroups[groupName]) {
storyGroups[groupName] = storiesOf(groupName, module);
}
storyGroups[groupName].add(itemName, () => implementation);
}