-
-
Notifications
You must be signed in to change notification settings - Fork 184
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
Consider migrating to JSDoc 3 #73
Comments
Neither package is a slouch, but by the numbers JSDoc3 is roughly 3-4x as popular, and may be more stable.
As for tools, both provide their own generator, but JSDoc supports plugins and has been wrapped and extended by tools like jsdox and jsdoc-to-markdown, and JSDoc tags are consumed by competing (possibly better) tools like documentationjs and Dokker. Google Closure Compiler's type annotations are derived from JSDoc. Editor support for JSDoc is superior too. Visual Studio and the Jetbrains family of editors now natively understand JSDoc tags. Sublime Text and Atom get support through the docblockr plugin (among others), and vim has plugin jsdoc.vim. I can't find any of this for YUIDoc. The syntax is remarkably similar, to the point that you could probably run a JSDoc generator against p5.play's source as-is and 90% of it would work out of the box. The biggest syntax difference is that in JSDoc you can omit the As you've pointed out, the major detriment to switching is how the look and feel of our docs would diverge from p5.js. I'm not sure how much work it would be to port that theme to a jsdoc tool. Finally, this comparison from 2013 is somewhat out of date but does give a good overview of some of the differences between the documentation engines. Some of their accessibility concerns with JSDoc have been addressed by good plugins and templates since then. |
It looks like the benefit of switching isn't great enough to be decisive 😀. Closing this issue since it doesn't document a 'must fix' issue - and it'll still be around for reference purposes if we want to revisit this. |
@islemaster mentioned this in https://github.com/molleindustria/p5.play/issues/57#issuecomment-203142789 so I thought it might be useful to start a discussion about it here.
JSDoc 3 pros:
JSDoc 3 cons:
YUIDoc pros:
YUIDoc cons:
The text was updated successfully, but these errors were encountered: