Programming guide
Build a pipeline from Apps, processing components, functions, and target states.
Start with Core Concepts for the mental model and the diagrams behind it. Use this reference to find each building block, its API, and its role in an incremental pipeline.
How the pieces fit
An App runs processing components. Each component calls functions and declares target states, which describe the output CocoIndex keeps in sync.
- App
Starts the pipeline with the source and output directories.
Runs processing components - Processing component
Processes a source file. Calls functions to read Markdown and produce HTML.
Declares target states - Target state
Describes the output file: its name and HTML content.
CocoIndex updates the output
When the component finishes, CocoIndex creates, updates, or removes its output files as needed.