---
title: 'docs'
---
Parent: [main.js|ts configuration](./main-config.md)
Type:
```ts
{
autodocs?: boolean | 'tag';
defaultName?: string;
docsMode?: boolean;
}
```
Configures Storybook's [auto-generated documentation](../writing-docs/autodocs.md).
## `autoDocs`
Type: `boolean | 'tag'`
Default: `'tag'`
Enables or disables automatic documentation for stories.
- `true`: Enables it for all stories
- `false`: Disables it for all stories
- `'tag'`: Enables it for stories tagged with `'autodocs'`
## `defaultName`
Type: `string`
Default: `'Docs'`
Name used for generated documentation pages.
## `docsMode`
Type: `boolean`
Only show documentation pages in the sidebar (usually set with the `--docs` CLI flag).