-
Notifications
You must be signed in to change notification settings - Fork 2k
Storybook: Fix Overview doc #104049
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Storybook: Fix Overview doc #104049
Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
This PR does not affect the size of JS and CSS bundles shipped to the user's browser. Generated by performance advisor bot at iscalypsofastyet.com. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 Confirmed no errors on Overview, and affected components / sections are shown as expected.
@@ -4,7 +4,8 @@ module.exports = { | |||
...storybookDefaultConfig( { | |||
stories: [ | |||
'../{src,styles}/**/*.stories.{js,jsx,ts,tsx}', | |||
'../{src,styles,.storybook}/**/*.mdx', | |||
'../{src,styles}/**/*.mdx', | |||
'./**/*.mdx', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What files is this intended to match?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They're intended to match the MDX files under packages/components/.storybook/
. The original glob ../{src,styles,.storybook}
used to work fine for this but I think something in the path resolution changed recently.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting that the ../src
file matching still works 🤔 Maybe something specifically about traversing up and back into the same directory.
@@ -17,6 +17,7 @@ yarn components:storybook:start | |||
## Special sections | |||
|
|||
- **WP Overrides**: Automattic-specific overrides for WordPress Core components. | |||
- **Still Internal**: Components that are still internal to the package and not exported. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Existing, but I wonder if this should just be "Internal", or maybe "Unpublished" or "Experimental". There's somethig awkward about "still internal" 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure 😄 7877be0
Regression discovered while testing #103000
Proposed Changes
Fixes the "Cannot find module './.storybook/overview.mdx'" error when trying to load the main "Overview" MDX file in Storybook.
Also flattens some of the approved components to the top level.
Why are these changes being made?
This likely regressed in a recent dependency update.
Testing Instructions
yarn components:storybook:start
and confirm that the main "Overview" file loads without error.Pre-merge Checklist