Problem
shows.json was used to scaffold the initial website but has drifted from the actual implementation. Show pages, character data, and pipeline steps are currently hardcoded in individual HTML files, making updates cumbersome and error-prone.
Current State
- Show metadata scattered across individual HTML files
shows.json exists but is outdated and unused
gallery.json was successfully refactored for dynamic loading (good pattern to reference)
- Duplication of character info, pipeline steps, and show details across pages
Goals
- Centralize metadata in a single source of truth
- Improve maintainability and reduce duplication
- Evaluate technical approaches for the project
Considerations
Data Storage Options
- JSON files (current approach with gallery.json) - simple, works well for static hosting
- SQLite database - more powerful queries, but requires build step or server-side logic
- Markdown + frontmatter - human-friendly, pairs well with SSGs
Static Site Generation
Evaluate lightweight SSGs that could improve maintainability:
- 11ty (Eleventy) - flexible, minimal, works with various template engines
- Astro - modern, component-based, good performance
- Hugo - fast, powerful, but steeper learning curve
- Custom build script - maintain control, use what we need
Migration Strategy
- Reconcile current website content with shows.json
- Define schema for centralized metadata
- Consider incremental migration vs full rewrite
- Preserve existing URLs and functionality
Next Steps
- Audit current website content vs shows.json discrepancies
- Define metadata schema requirements
- Research and prototype SSG options
- Create migration plan
- Decide on approach and timeline
Related
Problem
shows.jsonwas used to scaffold the initial website but has drifted from the actual implementation. Show pages, character data, and pipeline steps are currently hardcoded in individual HTML files, making updates cumbersome and error-prone.Current State
shows.jsonexists but is outdated and unusedgallery.jsonwas successfully refactored for dynamic loading (good pattern to reference)Goals
Considerations
Data Storage Options
Static Site Generation
Evaluate lightweight SSGs that could improve maintainability:
Migration Strategy
Next Steps
Related