Internal Generators
Internal generators process data and provide output for other generators. They cannot be invoked directly via the CLI.ast
Parses Markdown API doc files into Abstract Syntax Trees (MDAST).Depends on: None (processes raw Markdown files)
Parallel processing: Yes
Version: 1.0.0
Parallel processing: Yes
Version: 1.0.0
metadata
Generates a flattened list of metadata entries from API documentation.Depends on:
Parallel processing: Yes
Version: 1.0.0
astParallel processing: Yes
Version: 1.0.0
- API entry types (methods, properties, classes, etc.)
- Headings and hierarchy
- Type information
- Stability indicators
- Change history
typeMap- Path to type mapping JSON file
jsx-ast
Converts MDAST to JSX Abstract Syntax Trees.Depends on:
Parallel processing: Yes
Version: 1.0.0
metadataParallel processing: Yes
Version: 1.0.0
ref- Git reference for source links (default: ‘main’)
ast-js
Parses JavaScript source files into Abstract Syntax Trees.Version: 1.0.0
Public Generators
Public generators can be invoked directly via the CLI and produce final output.web
Generates HTML/CSS/JS bundles from JSX AST entries.Depends on:
Parallel processing: No (requires all entries for code splitting)
Version: 1.0.0
jsx-astParallel processing: No (requires all entries for code splitting)
Version: 1.0.0
- Server-side rendered HTML pages
- Client-side JavaScript with code splitting
- Bundled CSS styles
templatePath- Path to HTML template filetitle- Site title (default: ‘Node.js’)imports- Custom import mappings for components
json-simple
Generates simplified JSON version of API docs.Depends on:
Parallel processing: No
Version: 1.0.0
metadataParallel processing: No
Version: 1.0.0
man-page
Generates Unix man pages from CLI documentation.Depends on:
Parallel processing: No
Version: 1.0.0
metadataParallel processing: No
Version: 1.0.0
fileName- Output filename (default: ‘node.1’)cliOptionsHeaderSlug- Slug for CLI options section (default: ‘options’)envVarsHeaderSlug- Slug for environment variables section (default: ‘environment-variables-1’)templatePath- Path to man page template
node.1 man page for Unix systems
Example:
orama-db
Generates Orama database for API documentation search.Depends on:
Parallel processing: No
Version: 1.0.0
metadataParallel processing: No
Version: 1.0.0
llms-txt
Generates LLM-optimized text format of API documentation.Depends on:
Version: 1.0.0
metadataVersion: 1.0.0
sitemap
Generates XML sitemap for documentation.Version: 1.0.0
addon-verify
Verifies addon documentation for correctness.Version: 1.0.0
api-links
Generates database of API links and references.Version: 1.0.0
Legacy Generators
These generators maintain compatibility with older documentation formats:legacy-html
legacy-html
Generates documentation in the legacy HTML format.Use case: Maintaining backward compatibility with older documentation builds
legacy-html-all
legacy-html-all
Generates all-in-one legacy HTML documentation.Use case: Single-page HTML documentation in legacy format
legacy-json
legacy-json
Generates documentation in the legacy JSON format.Use case: Backward compatibility with tools expecting the old JSON format
legacy-json-all
legacy-json-all
Generates all-in-one legacy JSON documentation.Use case: Complete API documentation in legacy JSON format
Generator Dependencies
Here’s how generators depend on each other:Next Steps
Creating Custom Generators
Build your own generators
Parallel Processing
Optimize with worker threads