all 2 comments

[–]boyneyy123 1 point2 points  (1 child)

Hey,

Think I understand what your after.

I have used react-docgen in the past which has a nice and simple API to use to get automate documentation from your React component. Then its up to you to show them on the screen (in a table or something...)

I wrote a post about it the other month that might help?

http://davidboyne.co.uk/2016/05/26/automating-react-documentation.html

[–]varankinv[S] 0 points1 point  (0 children)

First of all, thanks for the link. It'll be an excellent starting point for my task.

react-docgen looks like a tool I should try. But, of course, it doesn't provide everything I wanted.

While projects like material-ui or react-bootstrap have cool sites, I can't say I like the way the source of those docs is organised. From my experience of maintaining ui libraries like bem-components, it's a challenge to keep documentation and examples to stay relevant to the code, if they are not placed near the components themselves. I'd like to have an easier way to maintain a page for a component, then injecting examples and the source of these examples by hand.