Skip to main content
RFC Status: This document is part of the OpenDocs RFC and subject to change based on community feedback.

Documentation Set Builder

The DocumentationSet builder helps you organize extracted DocItems into structured, navigable documentation sets. This guide covers workspace organization, file formats, and cross-project references.

Workspace Organization

WorkspaceBuilder Class

Basic Implementation

File Organization Strategies

Monolithic Format

Best for small projects (< 5MB):

Chunked Format

Best for medium projects (5-50MB):

JSON $ref Format

Best for large projects (> 50MB) using JSON $ref to external files:

Writing JSON and JSON $ref Formats

JSON Format Writer

JSON $ref Format Writer

File Format Optimization

Automatic Format Selection

Usage Example

Cross-References Between Projects

Reference Types

Reference Manager

Usage Example

Complete Example

Output Structure

Best Practices

1. Choose the Right Format

  • Monolithic: Small, self-contained projects
  • Chunked: Projects that will be loaded entirely but are too large for monolithic
  • Streaming: Very large projects or when memory is constrained

2. Use Consistent IDs

Ensure IDs are stable across builds:

3. Validate Before Writing

4. Handle Large Datasets Efficiently

Use streaming for large projects:

See Also


This guide is part of the OpenDocs Specification RFC. Help us improve it by sharing your implementation experience.