yui / yuidoc

YUI Javascript Documentation Tool
http://yui.github.com/yuidoc
Other
892 stars 211 forks source link

Possible to include original code in docs from sourcemap? #381

Open legomind opened 8 years ago

legomind commented 8 years ago

I have a project written in livescript, which I am currently compiling to javascript in order to use yuidoc.

The docs generate fine, but the rather messy transpiled javascript is included instead of my gorgeous livecript.

If the livescript contains sourcemap json in a comment at the end of each file, wouldn't it be possible to include the original code in the docs? That would be very handy.

thealjey commented 8 years ago

YUIDoc is language agnostic (it does not care what language your program is in), it only reads /** ... */ style comments. Just generate the documentation from your original code :smiley: