Using JAVAdoc to document HTML Files

Hello All.

We are running a project which includes not just JAVA source, but a lot of associated HTML code.

We would like to ensure consistent look-and-feel for our documentation by using JAVAdoc to parse both the .java files and .html files.

Has anyone done this? Can you help with the limitations of such a strategy?

[343 byte] By [matthewra] at [2007-9-28 12:56:35]
# 1
The MIF Doclet can possibly do this, depending on what you mean -- it will generate FrameMaker and PDF files from .java and .html files. See the samples at: http://java.sun.com/javadoc/mifdoclet-Doug KramerJavadoc team
dkramera at 2007-7-12 8:40:33 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2

Hello,

I have a similar problem like you, because I need to document some JavaScript files. Taglets can possibly do this job.

Taglets are extensions to javadoc. You can write your own Class which documents an external file and use this in javadoc.

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

Until now, there are very few taglets available.

peterg104a at 2007-7-12 8:40:33 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 3

Taglets are part of doclets, which are a *back* end to Javadoc,

not a front end. The front end parses only .java and .class

files -- it cannot parse JavaScript files.

Taglets and doclets enable documentation that has been

extracted from .java and .class files to be presented

in custom ways.

I don't see how you could use taglets to document JavaScript files.

-Doug

dkramera at 2007-7-12 8:40:33 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 4
Hello Doug,what abou a taglet, which reads an external file, does some simple parsing and returns the results to javadoc. example: @docJSFile c:\..\File.jsWhat about this idea?I can't work with taglets because every time I get the NoClassDefFoundError
peterg104a at 2007-7-12 8:40:33 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 5
Okay, yes, that seemd like it could work.I didn't think someone would be so ambitious.Hopefully you can get your taglet workingfrom my rely in the other thread.-Doug
dkramera at 2007-7-12 8:40:33 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 6
peterg,have you had any luck with this? i'm working on a project using a lot of well-formed javascript (ie using pseudo-classes) and need to produce javadoc style documentation. i'd be really interested to hear how you get on (and help out)thanksDuncan
DcHa at 2007-7-12 8:40:33 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...