HTML Output
Generate browsable HTML documentation for your application CFCs
π The HTML API Strategy is used to create CFC documentation based on Javadoc. DocBox does not fully support all the Javadoc syntax, but hopefully it will soon.
π¨ Modern Themes (New in 5.0)
DocBox 5.0 introduces a completely redesigned HTML output with two professional themes:
β‘ Default Theme - Modern SPA
The default theme features:
Alpine.js-based SPA - Client-side routing and dynamic filtering
π Dark Mode Support - Toggle between light and dark themes with persistence
π Real-time Search - Live method filtering with keyboard navigation (Enter/Shift+Enter)
π¨ Modern UI - Bootstrap 5, purple gradient accents, emoji indicators
π± Responsive Design - Mobile-friendly layouts
π Method Tabs - Filter by All/Public/Private/Static/Abstract
β¨ Smooth Scrolling - Enhanced navigation experience
π Frames Theme - Traditional Layout
The frames theme provides:
Frameset-based Layout - Classic three-panel documentation view
Bootstrap 5 Styling - Modern component design
Package Navigation - Left sidebar with hierarchical tree
Dark Mode Support - Consistent theming across all panels
Traditional UX - Familiar navigation pattern
π Instantiate DocBox
Begin by creating an instance of DocBox:
βοΈ Properties
The following are the properties for this strategy:
projectTitle: The HTML title used in the documentationoutputDir: The output directory absolute paththeme: (Optional) Theme name -"default"or"frames"(defaults to"default")
Just pass them in the docbox.addStrategy() call:
ποΈ Using the Frames Theme
To use the traditional frameset layout:
π Generate Documentation
Now that you have an instance of DocBox configured with your strategy and its properties, just execute the generate() method with its appropriate arguments:
Last updated
Was this helpful?