The Java documentation support in Document! X allows you to create documentation for your Java source code projects.
A full documentation set is generated including pages for each class, interface, enumeration, constructor, method, and field you choose to include. Inheritance hierarchies, cross topic links, Object Model diagrams, and Syntax sections are all automatically generated and combined with content from Javadoc source comments and any additional content you choose to author in a Document! X Content File.
The Document! X Java Documentation support fully leverages Javadoc source comments, adding features and functionality to what is possible with the Standard Javadoc generator.
Create a New Java Reference Documentation Project
Creating an empty project creates a project without any content. You can customize its settings according to your needs.
To create an empty project:
The project is created at the default directory which is configurable in the Options Editor (Paths page). However, you can optionally choose a specific directory to save your project by browsing the Project Directory field.
The new empty documentation project is created and opened for edit. You can now add the Java Projects that you wish to document:
The selected Java Project is added to the Project Explorer under the Java Projects node. You can expand down through each project node to select/deselect individual packages or types in order to include / exclude them from the generated output; by default private and protected types are excluded (cleared).
You can add as many additional Java Projects as you wish by repeating the procedure above.
A Content File is created and added to the project under the Content Files node for each Java Project you add to the project. You can use this Content File to author additional content in the pages that Document! X automatically generates.
Author Content in Javadoc Comments
You can use standard Javadoc source comments in your Java source code and Document! X uses them by default in the generated output.
/** * <p>Returns an Image object that can then be painted on the screen. * The url argument must specify an absolute {@link URL}. The name * argument is a specifier that is relative to the url argument.</p> * <p>This method always returns immediately, whether or not the * image exists. When this applet attempts to draw the image on * the screen, the data will be loaded. The graphics primitives * that draw the image will incrementally paint on the screen.</p> * * @param url an absolute URL giving the base location of the image * @param name the location of the image, relative to the url argument * @return the image at the specified URL * @see Image */ public Image getImage(URL url, String name) { try { return getImage(new URL(url, name)); } catch (MalformedURLException e) { return null; } }
See Author Content using the Content File Editor for authoring outside of the source code.
Author content outside of the source code
If you would like to supplement the content of the pages automatically generated by Document! X and HelpStudio outside of the source code, you can do so using the Document! X and HelpStudio Content File Editor.
The Content File Editor allows you to review and author content for any item for which a reference documentation page is generated.
To open the Content File Editor:
Add Conceptual Topics
Conceptual information is a key part of reference documentation, providing a high level introduction, tutorials, or other conceptual information. You can easily create conceptual topics in Document! X.
You can find more information on Topic Editing in the Topic Editor topic.
Change Java Documentation Settings
The settings that govern Java documentation generation are defined in the Build Profile editor. In a new project there is a single Build Profile but you can define many build profiles if you want to create multiple outputs with different settings.
To edit Java documentation settings:
In the Build Profile editor, you can find the Java Settings pages under the Reference Documentation section.
You can change the Template used for Java documentation (which defines the look and feel of generated pages) on the Templates page.
Identify Undocumented Items
An essential part of delivering a complete documentation set is ensuring that all the items have been documented. Document! X includes the Undocumented Items tool to quickly and easily identify undocumented items.
Build and Deploy Java Reference Documentation
On the Project tab, click the Build button to build your Java Reference Documentation.
Java documentation generated by Document! X can be published and associated with your Java Projects in Java Development tools in order to drive both tooltip and Shift+F1 help functionality, thereby providing developments who use your Java Projects with instant access to the documentation.
Refer to the Deploying Java Documentation topic for more information on publishing your Java documentation.