DocBox - API Docs

DocBox is a JavaDoc-style documentation generator for your BoxLang and CFML Applications.

πŸ“š DocBox - API Documentation Generator

DocBox is a JavaDoc-style documentation generator for BoxLang codebases, featuring modern HTML themes, JSON output, and UML diagram generation.

You can check out the API Docs for DocBox itself here: https://s3.amazonaws.com/apidocs.ortussolutions.com/docbox/5.0.0/index.html

✨ Features

  • 🎨 Modern HTML Documentation - Two professional themes with dark mode support

  • πŸ” Real-time Search - Live method filtering with keyboard navigation

  • πŸ“‹ Multiple Output Formats - HTML, JSON, and XMI/UML diagrams

  • 🦀 BoxLang Native - First-class BoxLang runtime and CLI support

  • πŸ“ JavaDoc Compatible - Standard JavaDoc comment block parsing

  • ⚑ Alpine.js SPA - Fast, modern single-page application interface

  • πŸŒ“ Dark Mode - System preference detection with manual toggle

πŸš€ Quick Start

Install DocBox as a BoxLang module for CLI access. You can find the full documentation here: https://docbox.ortusbooks.com/getting-started/boxlang-cli

Generate documentation from the command line:

BoxLang Apps

Install as a development dependency in your BoxLang project:

Use programmatically in your build scripts:


πŸ“¦ Installation Options

Method
Command
Use Case

BoxLang Module

box install bx-docbox

CLI usage, BoxLang projects

BoxLang Apps

box install docbox --saveDev

Programmatic use, build scripts

CommandBox Module

box install commandbox-docbox

Task runner, automated builds


🎨 Modern Themes

Default Theme (Alpine.js SPA)

  • ⚑ Client-side routing and dynamic filtering

  • πŸŒ“ Dark mode with localStorage persistence

  • πŸ” Real-time method search

  • πŸ“‘ Method tabs (All/Public/Private/Static/Abstract)

  • πŸ’œ Modern purple gradient design

Frames Theme (Traditional)

  • πŸ—‚οΈ Classic frameset layout

  • πŸ“š jstree navigation sidebar

  • 🎯 Bootstrap 5 styling

  • πŸ“± Mobile-friendly design


πŸ’» System Requirements

  • BoxLang 1.8+

  • CommandBox (for installation and CLI usage)


πŸ“š Output Formats

Format
Description
Use Case

HTML

Modern browsable documentation

Developer reference, public API docs

JSON

Machine-readable structured data

Integration with other tools, custom processing

XMI

UML diagram generation

Architecture diagrams, visual documentation


πŸ› οΈ CLI Examples

BoxLang Module CLI

CommandBox Task Runner

Install the commandbox-docbox module:

Generate documentation using CommandBox commands:

Use in a task.cfc for automated builds:


πŸ“– Documentation

Complete documentation is available at docbox.ortusbooks.com


Last updated

Was this helpful?