Documentation Index
Fetch the complete documentation index at: https://mintlify.com/nodejs/doc-kit/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The generator orchestration system manages the execution of documentation generators in dependency order, with support for parallel processing and streaming results.createGenerator
Creates a generator orchestration system that schedules and executes generators.Returns
Function to execute generators with configuration
runGenerators
Runs all requested generators with their dependencies in the correct order.Parameters
Runtime configuration object containing:
Returns
Array of results from all requested generators, in the same order as the
target arrayExample
Generator Execution Flow
The orchestration system:- Schedules generators - Analyzes dependencies and schedules generators in the correct order
- Creates worker pool - Initializes a worker thread pool based on the
threadsconfiguration - Executes generators - Runs generators, waiting for dependencies to complete first
- Handles streaming - For generators that yield results, collects streaming output
- Parallel processing - Creates parallel workers for generators with
hasParallelProcessor: true - Returns results - Returns all generator outputs in the requested order
Internal Methods
scheduleGenerator
Internal method that schedules a generator and its dependencies for execution. Source:generators.mjs:51
getDependencyInput
Retrieves the collected input from a dependency generator, handling both regular and streaming results. Source:generators.mjs:31
Related APIs
- Configuration API - For managing runtime configuration
- Logger API - For debugging generator execution
- Metadata API - For working with extracted API documentation metadata