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 documentation

  • outputDir : The output directory absolute path

  • theme : (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?