preact-mdl icon indicating copy to clipboard operation
preact-mdl copied to clipboard

Documentation

Open prateekbh opened this issue 8 years ago • 10 comments

Hey! Documentation is something really needed here. reading index.js for props is not really awesome! do we have something in mind for documentation? a microsite? another readme?

#HappyToHelp

prateekbh avatar Jan 03 '17 05:01 prateekbh

I'd love to set at least a readme up, listing the available components and their props. It might be possible to generate that from the JSDoc annotations already in the code. Typically that'd be done via documentation.js, but I'm open to anything really!

developit avatar Jan 03 '17 14:01 developit

Yess, that'd be a good start point, but a microsite with code samples is really really helpful. just a small thing with gh-pages

prateekbh avatar Jan 03 '17 15:01 prateekbh

yup, can do. the static site generator from preact-www would work, or even just gh-pages' readme default.

developit avatar Jan 03 '17 16:01 developit

Is there an ETA on this? I've had to go back into the React Ecosystem b/c of the lack of documentation on this project. I'd love to be of assistance, but looking through the source files can be pretty unintuitive

brenapp avatar Apr 09 '17 22:04 brenapp

Ahhh its super bad on my part to be honest, @developit shall we quickly check documentation.js and get something rolling out?

prateekbh avatar Apr 10 '17 00:04 prateekbh

Alright I just quickly generated some (script now runs during build, npm run docs). The markdown output isn't great, but it's better than nothing I guess: https://github.com/developit/preact-mdl/blob/master/docs.md

developit avatar Apr 10 '17 03:04 developit

Looks good

prateekbh avatar Apr 10 '17 04:04 prateekbh

lol it exists, wouldn't say it's overly useful. I was hoping for nicer output, but you have to go HTML for any configuration options there.

developit avatar Apr 10 '17 14:04 developit

Examples would be very helpful as well, which I could help with, if you so desire?

brenapp avatar Apr 11 '17 04:04 brenapp

Sure, please raise a PR..

prateekbh avatar Apr 11 '17 04:04 prateekbh