views:

117

answers:

2

I'd like to create HTML documentation for a Java class library that includes

  • programming guide information - beyond just a class reference
  • code examples in the reference doc
  • collapsible regions

I want it to look well-styled. Something like this:

alt text

I think that Javadoc exposes a doclet API that allows other parties to provide doc generation integrated in Javadoc. Is there a doclet option that I can use (for free) that does something a little nicer than the standard javadoc output?

I tried googling for this but no luck. Suggestions?

Addendum
I found doclet.com but I don't know how to evaluate the options. Recommendations?

In particular, XHtmlDoclet sounds like it wants to address these issues. Anyone used it? I can't get it to work. Also the example offered by the XHTML Doclet guys doesn't look any better than the docs generated from c.1998 javadoc .


Related:
Why does Javadoc generate non-compliant XHTML?

+1  A: 

Perhaps you're thinking of Java doclet API:

http://java.sun.com/j2se/1.4.2/docs/tooldocs/javadoc/overview.html

It appears that you're adding examples and some text. I think it's entirely possible with existing javadocs. The problem will be the content rather than the rendering.

Castor used doclet to ease its config burden. So did EJB 1.0. Take a look at those if you'd like.

duffymo
Changing the CSS should be trivial too.
Donal Fellows
@dummymo: Well the doclet API allows additional doclet engines as far as I know. In other words the generation is pluggable. I'm asking, what other doclets have been produced for generating API and guidance docs? @donal, ok, sounds easy. How?
Cheeso
You've got the output files, and javadoc uses a single CSS file in the root directory of the generated tree. If you can't work it out from there, I despair... ;–)
Donal Fellows
@Cheeso, why the switch to "dummymo"? Not a good way to convince people to give you their best.
duffymo
sorry, typo. my mistake. not intentional.
Cheeso
I'm not buying it. "m" isn't close to "f" on my keyboard.
duffymo
Ah, it's your choice whether to believe me or not!
Cheeso
That's right, it is, and I don't. I've formulated another belief instead.
duffymo
+1  A: 

This question got me thinking (ok, Googling) and I stumbled on this set of taglets. Never tried it, but it looks pretty promising.

ig0774