#disable autodoc for specific story?

1 messages · Page 1 of 1 (latest)

fierce dust
#

I thought the tags: ['autoDocs'] was what opted-in to autodocs but removing it didn't do anything. I still want the canvas view for a specific story, but the docs are useless in this specific case and I don't want it there.

const meta: Meta<WindowProps> = {
  title: 'Components/Window/Window',
  component: Window
}
misty halo
#

can you share your .storybook/main.js

fierce dust
#
module.exports = {
  stories: ['../app/**/*.mdx', '../app/**/*.stories.@(ts|tsx)'],
  addons: ['@storybook/addon-links', '@storybook/addon-interactions', {
    name: '@storybook/addon-essentials',
    options: {
      backgrounds: false,
      viewport: false
    }
  }],
  framework: {
    name: '@storybook/react-vite',
    options: {}
  },
  core: {},
  features: {
    storyStoreV7: true
  },
  docs: {
    autodocs: true
  }
}
#

the autodocs config was changed a few times by the auto migration steps

fierce dust
#

I've actually just replaced the docs I don't want with custom mdx files. I honestly should clarify stuff and explain why there's no docs page for that kind of stuff anyway, so that "solves" this issue for me

misty halo
#

You could also modify your main.js to

docs: {
  autodocs; 'tag'
}

And that would only generate docs for components tagged with 'autodocs'