Thursday, May 18, 2017

Re: Generate JavaScript documentation from JsInterop annotated Java sources

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


--
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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment