Disable Docs menu entry in Storybook

592 Views Asked by At

Prior to version 7, the "Docs" were available as a tab at the top after opening a story from sidebar like this:
enter image description here

However in version 7, "Docs" were removed from the tab and are now available from the sidebar menu, which clutters the menu space. How can I override and disable this per story or globally? Can I switch back to old way (Docs as a card)?

before / after
enter image description here

1

There are 1 best solutions below

0
Jun On

Check the main.js in .storybook. Add or update autodocs to false, it works for me

module.exports = {
  ...
  docs: {
    autodocs: false
  },
  ...
};