How onsdigital/sdg-indicators works
Main Components
a) Frontend Layer:
• Jekyll Static Site Generator (evident from _config.yml and Jekyll-specific directories)
• Custom Components (_includes/components/)
• Layout Templates (_layouts/)
• Static Assets (assets/)
• Custom Styling (_sass/)
b) Integration Components:
• Analytics Integration (Google Analytics, Hotjar)
• Cookie Management System
• Accessibility Features
c) Content Management:
• Data Storage (_data/)
• Posts System (_posts/)
• Pages System (_pages/)
d) CI/CD Pipeline:
• GitHub Actions Workflows (.github/workflows/)
• Development/Staging/Production Environments
[User Browser Layer]
• ↓
[Content Delivery Layer]
• ↓
[Static Site Generation Layer]
• ↓
[Data Management Layer]
Key Relationships to Highlight
a) Build Process Flow:
• Jekyll processing of _includes, _layouts, and _sass
• Configuration management between environments
• GitHub Actions deployment workflow
b) Frontend Components:
• Custom components integration
• Analytics and tracking implementation
• Cookie management system
c) Content Management:
• Data flow from _data to rendered pages
• Blog posts and updates system
• Static asset serving
Additional Elements
• Component types and their relationships
• Environment-specific configurations
• Custom implementation areas
• Third-party service integrations
Remember to include:
• Clear separation of concerns between content, presentation, and functionality
• Integration points with external services (Analytics, Hotjar)
• Custom components and their relationship to the core system
• Build and deployment pipelines for different environments