When comparing JSDoc vs YUIDoc, the Slant community recommends JSDoc for most people. In the question“What are the best JavaScript documentation tools?” JSDoc is ranked 1st while YUIDoc is ranked 4th. The most important reason people chose JSDoc is:
The community behind JSDoc has built sever templates and other related tools that allow you to use JSDoc in a simpler and more efficient way.
Ranked in these QuestionsQuestion Ranking
Pros
Pro Numerous templates available
The community behind JSDoc has built sever templates and other related tools that allow you to use JSDoc in a simpler and more efficient way.
Pro Grunt plugin available
For people who like to use Grunt, there's a Grunt plugin available.
Pro Cross-platform
YUIDoc is not available for JavaScript only, it supports every language that has /**/
comment blocks.
Pro Great output
YUIDoc's default theme is very appealing. The output it renders is very readable, searchable and user-friendly.
Pro Live preview
A standalone doc server is included which allows you to easily preview the documentation as it's being written.
Cons
Con Only provides an output of the API
JSDoc only provides a linear output of the API and not really a visually appealing or any information other than the methods and what they do. It's very technical so it may be hard for beginners to read documentation generated by it and understand it.
Con The name of the method/class need to be mentioned in the comments
Since YuiDoc only parses comment blocks, it requires the names of the methods to be specified there, ignoring what's outside of the comment block.
