-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Addon-docs: Add docs index configuration via main.js #18573
Addon-docs: Add docs index configuration via main.js #18573
Conversation
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 45f141b. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
ae3be2b
to
1642483
Compare
1642483
to
814885f
Compare
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.
Mostly LGTM. A couple nits.
lib/core-server/src/dev-server.ts
Outdated
@@ -1,8 +1,14 @@ | |||
import express, { Router } from 'express'; | |||
import compression from 'compression'; | |||
|
|||
import type { CoreConfig, Options, StorybookConfig } from '@storybook/core-common'; | |||
import { normalizeStories, logConfig } from '@storybook/core-common'; | |||
import { |
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.
This goes against the coding style established by @ndelangen where the types & concrete imports are always separate. We should update it OR update the project style guidelines
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.
Can we maybe get linting setup for this?
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.
I guess I see now that's why it does a yellow twiddle on it.
ab17703
to
c547333
Compare
@tmeasday can you
let me know if you need any help with the latter |
c547333
to
45f141b
Compare
@shilman I think it is green now apart from one flaky chromatic test that I believe @ghengeveld introduced (and maybe fixed)? |
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. Merging!
Added three options on the top-level field
docs
:enabled
- if unset, we don't generate anytype: docs
entriesdefaultName
- what name to use for docs entries?docsPage
- [NOT YET USED] -- will be used to drive the creation of docs entries per-CSF file.How to test
defaultName
changes the entry for "Examples/Button":