jQuery compatible JavaScript documentation generator

clyfe picture clyfe · Dec 21, 2010 · Viewed 8.8k times · Source

I need to choose a documentation generator (similar to jdoc in java or rdoc in ruby) for my javascript project that (built with jquery, underscore and backbone)

Candidates:

Requirements

  • should work with jquery, underscore and backbone. that means object-literal methods etc
  • I really like pdoc but its too centered around prototype, poorly documented, and I don't want to make extra files (sections?) to make it work (not sure about this)
  • docco is nice but I want structured output (as in menu + class/func structure like jdoc)
  • must be command line/makefile compatible (not web pastie)

Tips, tricks, tutorials, success stories, advice greatly welcomed.


Why Doesn't jQuery use JSDoc?

Answer

Gaurav Jassal picture Gaurav Jassal · Aug 9, 2012

I would rate jsduck from Sencha on top. I have used it on many projects. Simple to use

https://github.com/senchalabs/jsduck

A single command will generate docs like this http://docs.sencha.com/touch/2-0/