File tree Expand file tree Collapse file tree 2 files changed +1
-20
lines changed Expand file tree Collapse file tree 2 files changed +1
-20
lines changed Original file line number Diff line number Diff line change 11const path = require ( 'path' ) ;
22
33module . exports = {
4- stories : [ '../src/**/*.(stories|visual).(js|mdx) ' ] ,
4+ stories : [ '../src/Docs/introduction.stories.mdx' , '../src/ **/*.(stories|visual).js '] ,
55
66 addons : [
77 '@storybook/addon-knobs/register' ,
Original file line number Diff line number Diff line change @@ -9,27 +9,8 @@ import { DocsContainer } from '@storybook/addon-docs/blocks';
99import DocsPage from './custom/components/DocsPage' ;
1010import { addDecorator , addParameters } from '@storybook/react' ;
1111
12- // Order of folders to display
13- const headers = [
14- 'Introduction' ,
15- 'Component API'
16- ] ;
17-
18- const storySort = ( a , b ) => {
19- const aHeader = a [ 1 ] . kind . substr ( 0 , a [ 1 ] . kind . indexOf ( '/' ) ) ;
20- const bHeader = b [ 1 ] . kind . substr ( 0 , b [ 1 ] . kind . indexOf ( '/' ) ) ;
21-
22- if ( aHeader !== bHeader ) {
23- const aHeaderIndex = headers . findIndex ( h => h === aHeader ) ;
24- const bHeaderIndex = headers . findIndex ( h => h === bHeader ) ;
25- return aHeaderIndex - bHeaderIndex ;
26- }
27- return 0 ;
28- } ;
29-
3012addParameters ( {
3113 options : {
32- storySort,
3314 showRoots : true ,
3415 theme : fundamentals
3516 } ,
You can’t perform that action at this time.
0 commit comments