mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 11:11:53 +08:00
891 B
891 B
title |
---|
config.docs |
Type:
{
autodocs?: boolean | 'tag';
defaultName?: string;
docsMode?: boolean;
}
Configures Storybook's auto-generated documentation.
<CodeSnippets paths={[ 'common/main-config-docs.js.mdx', 'common/main-config-docs.ts.mdx', ]} />
config.docs.autoDocs
Type: boolean | 'tag'
Default: 'tag'
Enables or disables automatic documentation for stories.
true
: Enables it for all storiesfalse
: Disables it for all stories'tag'
: Enables it for stories tagged with'autodocs'
config.docs.defaultName
Type: string
Default: 'Docs'
Name used for generated documentation pages.
config.docs.docsMode
Type: boolean
Only show documentation pages in the sidebar (usually set with the --docs
CLI flag).