View Full Version : Will new JSDuck tool work with Visualforce(HTML) and Apex code (java like language)

29 Jul 2013, 1:11 AM
Will new JSDuck tool work with Visualforce(HTML) and Apex code (java like language)

30 Jul 2013, 9:13 PM
I don't believe so. Take a look at the documentation here:

API documentation generator for Sencha JavaScript frameworks.
JSDuck aims to be a better documentation generator for Ext JS (http://www.sencha.com/products/js/) than the old ext-doc (http://ext-doc.org/) was. It is used by Sencha to document Ext JS 4 (http://docs.sencha.com/ext-js/4-0/), Sencha Touch (http://docs.sencha.com/touch/2-0/) and several other (http://docs.sencha.com/) products.

30 Jul 2013, 9:55 PM
As per various blogs I read, previous JSDuck versions were working with other frameworks too, e.g. Java.
Is JSDuck recently changed to only work with ExtJs?
Also, as I know in most projects, people us ExtJs in combination with other framworks, e.g. ExtJs with Java, ExtJs with Salesforce (VF, apex). Later one is my case. I think JsDuck tool should be supported for other framwork too.

31 Jul 2013, 10:50 PM
Well, Java is not just another framework, it's another programming language. JSDuck will easily work with other JavaScript frameworks besides ExtJS, but you'll get the most out of it when documenting ExtJS code.

It used to be possible to feed JSDuck with other languages besides JavaScript, but this was an accident of implementation, not an actual feature. Since 4.0 JSDuck uses an actual JavaScript parser, so it will choke if you try to give it source code that's not valid JavaScript.

Support for other languages in not completely off the table, but support for things like CoffeeScript is more likely than support for things like Java.

I suggest you use the best tool for the job, and JSDuck is very far from being even a reasonable tool for documenting Java.