-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Switch to JSDoc instead of emu/markdown #939
Comments
Yeah, for example we get screwups like #954. I've been getting annoyed at the docs for a couple reasons:
I guess it would be a lot of tedious search and replace and macro action to port to JSDoc, but it might be worth it. |
We could do a trial run on a single file, then if we like it, I have no issue with divvying up the work :) We don't really annotate the "types" of parameters, so I imagine that would be the largest part. |
Also would we want to target this undertaking at 'develop' or 'master'? |
I think we can go ahead with it on master. 2.0 will live for a while, and it shouldn't be too difficult to merge the changes into develop, since it's just comments. I think this may actually be a lot of work, because of documenting each parameter, optional parameters, etc. etc. I would guess almost a week of work total. It also looks like JSDoc might be pretty picky about how you structure your code. So we'd definitely want to try it on a more complex file to make sure it works with our code. Probably @jrideout went with the simple strategy of copying and pasting the existing markdown documentation into comments and using emu because of these complications. |
This is just a suggestion, as there isn't really anything wrong with emu/markdown...except that it's just a bit hack-y.
JSDoc is pretty much the defacto standard for Javascript Documentation generation. If we still need to export to Markdown, it has a plugin to do so.
Comparison of other 3rd party documentation generators.
http://blog.fusioncharts.com/2013/12/jsdoc-vs-yuidoc-vs-doxx-vs-docco-choosing-a-javascript-documentation-generator/
Would be a fairly large undertaking to do, but likely more tedious than complex.
The text was updated successfully, but these errors were encountered: