I wrote an annotation processor which generates EcmaScript 6 code. The 
JavaDoc comments are enriched with information taken from custom 
annotations (where necessary), Finally I use ESDoc [1] to generate the 
final documentation. If anyone is interested the code can be at [2]. 

[1] https://esdoc.org/
[2] 
https://github.com/hal/hal.next/blob/develop/processors/src/main/java/org/jboss/hal/processor/EsDocProcessor.java


Am Donnerstag, 18. Mai 2017 12:34:21 UTC+2 schrieb Thomas Broyer:
>
> I suppose one could write an annotation processor that could generate a 
> Closure externs files (the reverse of the jsinterop-generator), copying the 
> javadoc (though probably transforming it a bit, to turn it into jsdoc with 
> type information) around, so a jsdoc tool could be used afterwards (or 
> directly generating documentation from the annotations). Or maybe rather a 
> javadoc doclet?
>
> With J2Cl, I suppose (hope!) the javadoc could be carried out to the 
> generated ES6, so that would be a non-issue.
>
> On Wednesday, May 17, 2017 at 5:16:49 PM UTC+2, Harald Pehl wrote:
>>
>> I'm currently exporting a JavaScript API of my GWT application using 
>> JsInterop. I'm looking for a way to document the JavaScript API. ATM this 
>> is all done by hand. But it would be great if I could reuse the JavaDoc of 
>> my annotated classes and methods to generate JavaScript documentation. I 
>> know there are several JavaScript doc tools out there [1], [2]. But they 
>> all need JavaScript files as input. 
>>
>> I'm wondering if anybody has a similar requirement and found a solution. 
>> All kind of suggestions, tips and ideas are welcome!
>>
>> Thanks 
>> Harald
>>
>> [1] https://esdoc.org/manual/configuration/config.html
>> [2] http://documentation.js.org/
>>
>>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to