How getzola/zola works
Main Components Overview
a. Core Processing Layer:
• Content Processing (components/content)
• Template Processing (components/templates)
• Asset Processing (components/imageproc, components/sass)
• Markdown Processing (components/markdown)
b. Configuration Layer:
• Site Configuration (components/config)
• Theme Management
• Multilingual Support
c. Build System:
• File System Operations
• Build Pipeline
• Live Reload Server
Component Relationships
Input Sources -> Processing Pipeline -> Output Generation
Where:
• Input Sources include: Content Files, Templates, Assets, Configuration
• Processing Pipeline includes: Markdown Parser, Template Engine, Asset Processor
• Output Generation includes: HTML Files, Processed Assets, Search Index
Detailed Component Breakdown
a. Content Processing (Rectangle):
• Markdown Parser
• Frontmatter Parser
• Shortcode Processor
• Syntax Highlighter
b. Template System (Hexagon):
• Template Engine (Tera)
• Template Functions
• Filters
• Global Functions
c. Asset Pipeline (Oval):
• Image Processing
• SASS Compilation
• Static File Copying
d. Build System (Diamond):
• File Watcher
• Live Reload Server
• Link Checker
• Search Index Generator
Following flows:
• Content Files → Markdown Processor → HTML
• Templates → Template Engine → Final Pages
• Assets → Asset Pipeline → Processed Assets
• Configuration → All Components
• Syntax Highlighting System
• Search Functionality
• Multilingual Support
• Image Processing Pipeline
• Shortcode System
External Integrations
Deployment targets:
• Netlify
• Vercel
• Cloudflare Pages
• GitHub Pages
Development Tools
Development-related components:
• Live Reload Server
• CLI Interface
• Link Checker
• Error Handler
• The single binary nature of the application
• The clear separation between content processing and template rendering
• The asset co-location feature
• The build pipeline's efficiency
• The extensibility through themes and shortcodes
• Blue: Core Processing Components
• Green: Template System
• Orange: Asset Pipeline
• Purple: Build System
• Gray: External Services