[RFC] Toolpad component documentation #1590
Replies: 4 comments 3 replies
-
I'd also add 3rd option - generating docs - I feel that manually maintaining those docs might be error prone, especially once we have more and more components, so maybe it's worth to consider how much of that could be automated. If not fully, then maybe some partial automation which would require final touch ups done by engineers |
Beta Was this translation helpful? Give feedback.
-
For sure the API section with the props description should be automated at least, directly from the component
Could we make the argTypes importable from the
I can't think of a super straightforward way to do this right now, but it could probably be done with a script by using git CLI commands. |
Beta Was this translation helpful? Give feedback.
-
should be possible with tsdoc parsers or something similar, I remmember in one of previous companies we did something similar to automatically generate component docs. Now that I wrote it, wondering if core team doesn't generate props from TS types too? 🤔 maybe we could just pick their method
One way that we could try to do something similar is by using playwright tests 🤔 we could i.e. build examples, that are executable, and then we could additionally executed examples in playwright. If they break, then we at least are aware |
Beta Was this translation helpful? Give feedback.
-
We have covered the API part of this discussion in our docs: https://mui.com/toolpad/reference/components/ |
Beta Was this translation helpful? Give feedback.
-
What's the problem? 🤔
As per last weekly meeting, there is insufficient documentation around working with Toolpad components.
What are the requirements? ❓
What are our options? 💡
Proposed solution 🟢
We add a section "Components" with one page per Toolpad component, either after the "Building UI" section, or inside it. Each of the pages could be structured as:
Notes:
Resources and benchmarks 🔗
Beta Was this translation helpful? Give feedback.
All reactions