Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a javadoc replacement that uses a Wiki-like syntax? [closed]

Is there a tool replacing javadoc with something that is more Wiki-style syntax instead of the HTMLish syntax of normal JavaDoc?

One of my problems is that I mostly read JavaDoc in source form. Even for external libraries I try to have the source attached so I can navigate into it from my IDE, checking the documentation above the entry point and if necessary the code below.

The other problem is that things like lists and code samples are messy to write, especially if your IDE insists on putting stars on every line. What I would like to see is something that uses a kind of Wiki syntax with at least the following features:

  • lists
  • code blocks
  • crosslinking to methods/classes

There are many more things that would be nice, but I believe these are the essentials.

Does anyone know of such a tool?

like image 840
Peter Becker Avatar asked Sep 21 '09 23:09

Peter Becker


People also ask

Is Javadoc still used?

Fortunately, all modern versions of the JDK provide the Javadoc tool – for generating API documentation from comments present in the source code.

What is the use of @link in Java?

It's an annotation used so when you generate the Javadoc, you'll have a link for the specified item. In this case, the KeyEvent class, with the anchor of KEYCODE_ENTER.

When to use@ link in Javadoc?

This inserts an inline link with a visible text label. The text label points to the documentation for the specified package, class, or member name. This tag can be used everywhere, including an overview, package, class, method, field, etc.

How do you write a good Javadoc?

The correct approach is an @param tag with the parameter name of <T> where T is the type parameter name. There should be one blank line between the Javadoc text and the first @param or @return. This aids readability in source code. The @param and @return should be treated as phrases rather than complete sentences.


2 Answers

There is a project called WikiDoclet, I have never used it, but I'd be interested to see what you think of it.

From the site:

This is an extension to the standard javadoc doclet provided with the Java JDK. It adds support for what I am calling Wiki formatting. What this means is that your JavaDoc can now be formatted using text rules that are easier on the eyes than html embedded in JavaDoc. For example, to put emphasis on a piece of text you surround it with stars. Italics with underscores. When the doclet is run to produce JavaDoc these rules are evaluated and html substitutions are made. This formatting should make reading java source code much easier since it will no longer be cluttered with HTML tags. This is especially true for bulleted lists and for tables. HTML is preserved still though, so you can mix and match as you like.

For other doclet formats, check out doclet.com.

like image 150
Rich Seller Avatar answered Oct 24 '22 09:10

Rich Seller


now here: http://code.google.com/p/wikidoclet/

like image 43
franz Avatar answered Oct 24 '22 11:10

franz