JavadocClassic template set provides two main templates:
FramedDoc.tpl
– to generate framed multi-file HTML documentationSingleDoc.tpl
– to generate single-file HTML and RTF documentation
Main template is the one, which can be specified for interpretation directly to the generator
(either with -template
option on the Javadoc
command line or in the
Doclet GUI Dialog).
Effectively, each main template represents a separate documentation generator.
{flexdoc-javadoc}/templates/classic/
{flexdoc-javadoc}
is a designation of your FlexDoc/Javadoc installation directory, e.g.: C:\flexdoc-javadoc-2.0\
File / Directory | Description |
---|---|
README.html |
this file |
FramedDoc.tpl |
The main template to generate framed HTML documentation. |
SingleDoc.tpl |
The main template to generate single-file documentation (in HTML or RTF format). |
help/ |
The descriptions of parameters of both main templates; used by the Parameter Inspector. |
lib/
|
The directory containing all subtemplates (and icon files) that power the JavadocClassic template application. |
doclet9.dsmtype
|
The configuration file that defines the 'doclet9'
DSM Type,
on which the JavadocClassic template set is based.
Although the Doclet DSM itself is defined in the implementation of
Doclet DSM Driver,
this configuration file allows you to extend it with some custom element types used in the template application.
|
dsmtype/CustomElements.json
|
This file is referenced from doclet9.dsmtype and
contains the definitions of custom element types used in JavadocClassic template set.
Custom Elements allow you to create structured chunks of data that look the same as ordinary DSM elements coming from the main data source (i.e. Doclet API). Thereby, they can be manipulated together with the ordinary elements and using the same template functionality (e.g. iterated, sorted, grouped etc). |
css/
|
CSS stylesheets that may be used with JavadocClassic while generating of HTML documentation: |
stylesheet_ext.css
|
|
azure-theme_FramedDoc.css
|
|
azure-theme_SingleDoc.css
|
|
azure-theme_ext.css
|
|
TitlePageDemo/
|
A custom title page demo. See: Trying custom title page demo |
Note: All files and directories are located in JavadocClassic home directory: {flexdoc-javadoc}/templates/classic/
Please note that some general functionality (i.e. template language) used in a particular version of JavadocClassic may be available only since the specific version of FlexDoc/Javadoc. For instance, JavadocClassic version 3.0 requires FlexDoc/Javadoc version 2.0 or later.
License Type | Description |
---|---|
Demo License |
Once you have downloaded FlexDoc/Javadoc archive, you can run JavadocClassic
immediately and see what it is. You don't need to request any trial and register anywhere!
By default, everything will work in demo mode. It means that all your input Java classes will be fully processed, however fully documented will be only limited number of them. What exactly the demo limits are depends on a particular main template (as well as some metrics). If those limits are not reached, you will get the complete documentation. Otherwise, some content will be omitted and the message included saying which limits were exceeded. Anyway, the result documentation will be minimally distorted, to allow you to evaluate how everything will look under the full license. Any documentation generated in demo mode is yours. You may use it for free as you wish. |
Full License |
The full (or commercial) “FlexDoc/Javadoc” license unlocks all functionality implemented in JavadocClassic template set.
In particular, you will be able to:
Since the “FlexDoc/Javadoc” license is also the «SDK license», it will allow you additionally:
|
Trial License |
The trial license is functionally the same as the full one.
The difference is that:
|
{flexdoc-javadoc}/templates/classic/
Actually, JavadocClassic template application is quite autonomous.
You can copy/move (or rename) the 'classic/'
directory to any other location and run the templates directly from there.
This may be particularly useful when you want to modify something in the original templates and derive your own version of JavadocClassic.
{flexdoc-javadoc}/bin/generator-modular.bat
to specify the 'JDK_HOME'
variable according to the location of JDK 11 (or later) installed on your system.
In the bottom line, you can also specify the location of your Java packages/classes to document.
By default, it is specified for a demo Java project included in FlexDoc/Javadoc: {flexdoc-javadoc}/demo/modular
generator-modular.bat
. You will see the generator dialog.
While running JavadocClassic templates for large Java projects,
the template interpreter may require a lot of memory. The lack of memory may considerably
slow down the generation (or even cause the OutOfMemory exception)!
To avoid this, make sure the maximum heap size available for JVM is 1024Mb or more
(e.g. Javadoc option -J-Xmx1024m
sets the maximum heap size to 1024Mb).
FramedDoc.tpl
template.
You can choose this template from {flexdoc-javadoc}/templates/classic/
directory using File Chooser.
The FramedDoc.tpl
main template can generate only framed HTML documentation!
SingleDoc.tpl
template.There is a way to hack into that by feeding to the generator some custom CSS rules associated with particular formatting styles defined in templates. See: Using “azure-theme” stylesheets
However, any doc-comments specified in your Java code are fed directly into the generated HTML output. So, you can use in them any your special CSS classes, which will be beyond the influence of FlexDoc.To provide such custom CSS classes used in your doc-comments, on the step of selecting HTML format, click «Options» button and in the HTML Options dialog that appears, specify:
<link rel="stylesheet" type="text/css" href="../custom.css">
'stylesheet_ext.css'
file provided with JavadocClassic:
{flexdoc-javadoc}/templates/classic/css/stylesheet_ext.css
{flexdoc-javadoc}/templates/classic/css/
directory:
azure-theme_FramedDoc.css
is applicable with FramedDoc.tplazure-theme_SingleDoc.css
is applicable with SingleDoc.tplYou can use these CSS files also as a base for your own customizations.
To applyazure-theme_FramedDoc.css
, please follow the same steps as described in Running JavadocClassic.
On the step of selecting HTML format, click «Options» button and in the HTML Options dialog, which should appear,
specify:
templates/classic/css/azure-theme_FramedDoc.css
templates/classic/css/azure-theme_ext.css
{flexdoc-javadoc}/templates/classic/TitlePageDemo/
custom-title-page.tpl
lib/title-page.tpl
template that generates the Title Page
in single-file documentation.
This template was created on a request of a customer to demonstrate how to add a static image on the title page (e.g. logotype) inside a complex table structure with multi-row spanning cells.
That template is called from SingleDoc.tpl, however, the call is disabled. To enable it:Thereby, JavadocClassic works now with all JDK versions starting from Java 11.
Here is the list of what has changed:
Since FlexDoc/Javadoc 1.7.0, it became possible to define template formatting styles for tables, table rows, table cells and horizontal rules. That, along with paragraph and character styles existed before, allowed switching all documentation formatting programmed in JavadocClassic templates to be specified only through styles. The benefit of that is that template formatting styles can be automatically translated into named CSS rules, which in turn can be substituted by the custom ones. So, now you can substantially change how your documentation looks only by applying your custom CSS stylesheet during the generation. See also: Using «azure-theme» stylesheets.