ralph loop

This commit is contained in:
2026-03-05 01:32:03 +01:00
parent 5ae988cb6c
commit 70ca2e50e5
4 changed files with 150 additions and 0 deletions

28
PLAN.md Normal file
View File

@@ -0,0 +1,28 @@
# Implementation Plan
## Project Constraints
- [ ] Pure Go binary (no external system dependencies for PDF).
- [ ] Config via `config.yaml` only (no CLI flags).
- [ ] Hardcoded paths: `./content` (input), `./output` (build artifacts).
- [ ] Modes: `gocv` (CLI), `gocv serve` (Daemon).
- [ ] Commit at every loop iteration. Do not push. Do not tag.
## Current Status
- [x] Project backbone exists (HTTP server, graceful shutdown, config reading).
- [ ] Markdown parsing logic implemented.
- [ ] HTML Template engine integrated (Hugo-like theme selection).
- [ ] PDF Generation implemented (Pure Go library selected and integrated).
- [ ] CLI Mode (`gocv`) generates static files to `./output` and exits.
- [ ] Serve Mode (`gocv serve`) hosts HTML and serves PDF on demand.
- [ ] File Watcher implemented for live reload in Serve Mode.
- [ ] Dockerfile created for multi-stage build.
## Active Task
- [ ] Analyze existing backbone code and integrate Markdown parsing.
## Known Issues / Blockers
- [ ] Identify best Pure Go PDF library that supports HTML/CSS (or define CSS subset).
## Completed Log
- [x] Initial project structure defined.
- [x] Basic HTTP server and signal handling implemented.