2020-07-08 22:15:58 +10:00
|
|
|
module.exports = {
|
2020-07-09 18:43:11 +10:00
|
|
|
toc: [
|
|
|
|
{
|
2020-07-09 19:15:35 +10:00
|
|
|
title: 'Get Started',
|
2020-07-09 18:43:11 +10:00
|
|
|
prefix: 'get-started',
|
|
|
|
pages: ['introduction', 'install', 'whats-a-story', 'browse-stories', 'setup', 'conclusion'],
|
|
|
|
},
|
|
|
|
{
|
2020-07-09 19:15:35 +10:00
|
|
|
title: 'Writing Stories',
|
2020-07-09 18:43:11 +10:00
|
|
|
prefix: 'writing-stories',
|
|
|
|
pages: [
|
|
|
|
'introduction',
|
|
|
|
'args',
|
|
|
|
'parameters',
|
|
|
|
'decorators',
|
|
|
|
'naming-components-and-hierarchy',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2020-07-09 19:15:35 +10:00
|
|
|
title: 'Writing Docs',
|
2020-07-09 18:43:11 +10:00
|
|
|
prefix: 'writing-docs',
|
|
|
|
pages: ['introduction', 'docs-page', 'mdx', 'doc-blocks'],
|
|
|
|
},
|
2020-07-25 02:01:53 +01:00
|
|
|
{
|
2020-07-24 16:15:19 +01:00
|
|
|
title: 'Essentials',
|
|
|
|
prefix:'essentials',
|
|
|
|
pages:['introduction','controls','actions','viewports','backgrounds','toolbars-and-globals']
|
|
|
|
},
|
2020-07-30 17:03:55 +01:00
|
|
|
{
|
|
|
|
title: 'Configure',
|
|
|
|
prefix: 'configure',
|
|
|
|
pages: ['overview', 'integration', 'story-rendering', 'user-interface'],
|
|
|
|
},
|
|
|
|
{
|
2020-07-27 20:48:37 +01:00
|
|
|
title:'Workflows',
|
|
|
|
prefix:'workflows',
|
|
|
|
pages:[
|
|
|
|
'publish-storybook',
|
|
|
|
'build-pages-with-storybook',
|
|
|
|
'stories-for-multiple-components',
|
|
|
|
'testing-with-storybook',
|
|
|
|
'unit-testing',
|
|
|
|
'visual-testing',
|
|
|
|
'interaction-testing',
|
|
|
|
'snapshot-testing',
|
|
|
|
'storybook-composition',
|
|
|
|
'package-composition'
|
|
|
|
]
|
2020-07-30 17:03:55 +01:00
|
|
|
},
|
|
|
|
{
|
2020-08-05 23:51:38 +01:00
|
|
|
title: 'API',
|
2020-08-05 23:14:32 +01:00
|
|
|
pathSegment: 'api',
|
|
|
|
type: 'menu',
|
|
|
|
children:[
|
|
|
|
{
|
|
|
|
pathSegment: 'stories',
|
|
|
|
title: 'Stories',
|
|
|
|
type: 'link',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
pathSegment: 'csf',
|
|
|
|
title: 'Component Story Format',
|
|
|
|
description:'Learn about the Component Story Format API',
|
|
|
|
type: 'bullet-link',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
pathSegment: 'mdx',
|
|
|
|
title: 'MDX syntax',
|
|
|
|
description:'Learn how to add MDX to your Storybook',
|
|
|
|
type: 'bullet-link',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
pathSegment: 'argtypes',
|
|
|
|
title: 'ArgTypes',
|
|
|
|
description:'Learn how to use Argtypes with your Storybook',
|
|
|
|
type: 'bullet-link',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
pathSegment: 'addons',
|
|
|
|
title: 'Addons',
|
|
|
|
type: 'link',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
pathSegment: 'addons-api',
|
|
|
|
title: 'Addons API',
|
|
|
|
type: 'link',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
pathSegment: 'presets',
|
|
|
|
title: 'Presets',
|
|
|
|
type: 'link',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
pathSegment: 'writing-presets',
|
|
|
|
title: 'Writing your own Storybook Preset',
|
|
|
|
type: 'link',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
pathSegment: 'new-frameworks',
|
|
|
|
title: 'Frameworks',
|
|
|
|
type: 'link',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
pathSegment: 'cli-options',
|
|
|
|
title: 'CLI Options',
|
|
|
|
type: 'link',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
pathSegment: 'frameworks-feature-support',
|
|
|
|
title: 'Feature support for frameworks',
|
|
|
|
type: 'link',
|
|
|
|
},
|
|
|
|
],
|
2020-07-25 02:01:53 +01:00
|
|
|
},
|
2020-07-09 18:43:11 +10:00
|
|
|
],
|
2020-07-25 02:01:53 +01:00
|
|
|
};
|