-
-
Notifications
You must be signed in to change notification settings - Fork 249
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
Automatically render Description / Prop Tables / Components Methods #170
Comments
Or we can use jsdoc or similar tool to generate markdown docs on all sources related to story and automatically render at addons panel. @lonyele What do you think? |
@tuchk4 I maybe can implement this feature as I've understood more about placeholder part of code base while looking at #171. If this feature is implemented and became stable, Sunday is almost over here, I think I can do it in coming week. As I know of, you are busy for 1~2 month and preparing for next release. So maybe I can take a look at it? |
Yeah, I would like to start with #171 and then add support of all features described here. According to #171 Proof of concept implemented at #178 for such story: ## TItle
\```js
const value = state.counter || 0;
<Button
onClick={() => {
setState({
counter: value + 1,
});
}}
>
Hello World {value}
</Button>;
\```
### Footer We will have:
So it is possible to render prop table, methods table, description right after story and make it configurable.
This would be perfect 🔥 Also we should think:
|
The same way as
<!-- PROPS -->
works.Support
<!-- DESCRIPTION -->
component's description<!-- METHODS -->
component's methods<!-- DOCS -->
aggregate & description & methods & propsAlso would be nice to automatically generate default readmes
The text was updated successfully, but these errors were encountered: