Closed stefano-8wave closed 1 year ago
I tried this out in a fresh Vite project and it worked fine for me, so I'm wondering if it's a problem with multiple versions in your node_modules or something like that.
Do you a have a reproduction repo you can share? If not, can you create one? See how to create a repro.
@shilman Yes, with npx storybook@next sandbox is working, so maybe is a package.. You can try here https://github.com/volverjs/ui-vue/tree/develop
@shilman Ok, the problem maybe is the .mdx file stories i think.. on mdx files can i disable the autodocs?
Hi there! Thank you for opening this issue, but it has been marked as stale
because we need more information to move forward. Could you please provide us with the requested reproduction or additional information that could help us better understand the problem? We'd love to resolve this issue, but we can't do it without your help!
I'm afraid we need to close this issue for now, since we can't take any action without the requested reproduction or additional information. But please don't hesitate to open a new issue if the problem persists – we're always happy to help. Thanks so much for your understanding.
FYI @stefano24 @shilman I have reproduced this as well here:
https://github.com/stevus/storybook-autodocs-false-repro/tree/master
I can either create another issue or this one could potentially be reopened?
What is the solution to hide the Docs entry for all stories?
This is the single story:
https://github.com/stevus/storybook-autodocs-false-repro/blob/master/jsx/SampleStory.stories.mdx
import { Meta, Story } from '@storybook/addon-docs'
import App from './App'
<Meta title='App' component={App} />
<Story
name='App'>
<App />
</Story>
main.js file:
https://github.com/stevus/storybook-autodocs-false-repro/blob/master/%40storybook/main.js
module.exports = {
addons: [
'@storybook/addon-links',
'@storybook/addon-controls',
'@storybook/addon-a11y',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
],
docs: {
autodocs: 'false',
},
features: {
postcss: false,
},
framework: {
name: '@storybook/react-vite',
options: {},
},
stories: ['../jsx/**/*.stories.mdx', '../stories/**/*.stories.mdx'],
}
'../stories/*/.stories.mdx' does not exist, needs to be removed, but that shouldn't effect the outcome here.
Describe the bug
versions
"vue": 3.2.47 "@storybook/builder-vite": "7.0.2", "@storybook/vue3-vite": "7.0.2", "vite": "4.2.1", "storybook": "7.0.2", "@storybook/addon-essentials": "7.0.2", "@storybook/...": "7.0.2",
Expected
I want to hide all the "Docs" autogenerated files on the sidebar. From the documentation I can set:
Unexpected
But It's not working. The docs files always exists. Only with the config below I can hide all the docs files, but then "storybook dev" command is not working:
With the above config, docs correctly hides but the storybook dev command has this warning for all my stories: "Unable to index files" "... No matching story indexer found ....."
Any suggestion to hide docs files?
To Reproduce
Use this config on the main.js with the above versions.
Run the dev storybook command:
System
Additional context
On the previous storybook version (7.0.0-beta.40) I can hide all the autogenerated docs files adding this to the config:
But with 7.0.2 is not working.