-
-
Notifications
You must be signed in to change notification settings - Fork 32.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
[docs][joy] Build API documentations #36008
Conversation
Netlify deploy preview
@mui/joy: parsed: +0.51% , gzip: +0.64% Bundle size report |
docs/translations/api-docs-joy/color-inversion/color-inversion.json
Outdated
Show resolved
Hide resolved
// Grid has problem with react-docgen | ||
// Stack has problem with react-docgen |
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.
Is this still the case?
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.
Yes, the inclusion of Grid and Stack are causing 3 throws of "No component definition found".
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.
Alright, we can investigate this in a follow-up PR.
*/ | ||
variant?: OverridableStringUnion<VariantProp, MenuPropsVariantOverrides>; | ||
}; | ||
props: P & { |
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.
Is this required for the script to work correctly? Should we document it or try to fix the script if this is the case?
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.
Yes, this fixed the following error:
color: Error: JSDoc @default annotation not found. Add
@default 'neutral' to the JSDoc of this prop.
Even if MenuProps
had @default 'neutral'
, it wasn't being copied to PropTypes in Menu.tsx
.
Should we document it or try to fix the script if this is the case?
Agree
@siriwatknp @mnajdova I will review the PR myself 1 more time and let you know. Don't review more yet please! |
@siriwatknp @mnajdova I think this is ready for review now! Summary of this PR:
|
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.
Two small nits from code perspective. I will test out the api pages a bit next.
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.
The CSS section is missing from the Joy's API pages, for e.g. this is how it looks for the Material UI's components: https://mui.com/material-ui/api/accordion/#css
Wouldn't it be more helpful for Joy package users if we release this PR and we work on CSS section in a separate PR? |
That works too, I mentioned it so that it's not overlooked. Apart from that I can't find anything else that's missing. Great work Benny! I will let the last review to Jun, to validate that we have everything in place. |
TODOs to be done in separate PRs
|
73de918
to
94597b5
Compare
Closes #35813
Summary of this PR:
Autocomplete
,AutocompleteListbox
,AutocompleteOption
,ScopedCssBaseline
levelMapping
docs/translations/api-docs-joy
where all JSON files for api docs of Joy components are locateddocs/pages/joy-ui/api
)Preview: https://deploy-preview-36008--material-ui.netlify.app/joy-ui/api/alert/ -> Alert API