YUIDoc vs DocumentJS
When comparing YUIDoc vs DocumentJS, the Slant community recommends YUIDoc for most people. In the question“What are the best JavaScript documentation tools?” YUIDoc is ranked 4th while DocumentJS is ranked 5th. The most important reason people chose YUIDoc is:
YUIDoc is not available for JavaScript only, it supports every language that has `/**/` comment blocks.
Ranked in these QuestionsQuestion Ranking
Pros
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.
Pro Document JS and CSS
Also great for style guides.
Cons
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.