Doc Browser

The docbrowse module provides a comprehensive documentation browser for Project Forge applications. It automatically converts Markdown files into a navigable web interface with hierarchical organization and responsive navigation.

Overview

This module transforms your ./doc directory into a fully-featured documentation website with:

Key Features

Automatic Organization

Content Management

Developer Experience

Package Structure

Controllers

Libraries

Views

Usage

Basic Setup

  1. Add Markdown files to your ./doc directory:

    doc/
    ├── getting-started.md
    ├── api/
    │   ├── overview.md
    │   └── reference.md
    └── guides/
       ├── deployment.md
       └── troubleshooting.md
    
  2. Access documentation at /docs in your application

  3. Navigation is automatically generated from the folder structure

Document Structure

Each Markdown file should start with a heading:

1
2
3
# Document Title

Your content here...

The first # heading becomes the document title in navigation menus.

Organizing Content

API Endpoints

GET /docs

Returns the documentation index page with full navigation menu.

GET /docs/{path}

Serves individual documentation pages. Supports: - HTML: Default browser response with full page layout - JSON: Raw document data for API consumption

Configuration

No configuration required. The module automatically: - Discovers all .md files in ./doc - Generates navigation structure - Serves content at documented endpoints

Source Code

See Also