Skip to content

feat: live-preview mirror + branch/release workflow#1

Merged
DemchaAV merged 1 commit into
mainfrom
feat/live-preview
Jun 3, 2026
Merged

feat: live-preview mirror + branch/release workflow#1
DemchaAV merged 1 commit into
mainfrom
feat/live-preview

Conversation

@DemchaAV

@DemchaAV DemchaAV commented Jun 3, 2026

Copy link
Copy Markdown
Owner

What

Every render mirrors its output into a stable live/ folder so a watching
viewer (SumatraPDF) reloads in place — no hunting for the latest revision
folder. The copy runs inside the render script (scripts/lib/render-runtime.mjs),
so it costs zero agent/token overhead; the folder is gitignored and overridable
via GRAPHCOMPOSE_LIVE_DIR / RENDER_NO_LIVE.

  • live/current.pdf (+ current-debug.pdf, current.png, current.txt)
  • scripts/preview-live.mjs (npm run preview) opens it in SumatraPDF (-reuse-instance)
  • Verified end-to-end with a real invoice render.

Also

Documents the branch-per-change + release-from-main workflow in
CONTRIBUTING.md and AGENTS.md so main stays clean and renderable.

Every render now mirrors its output into a stable live/ folder (current.pdf, current-debug.pdf, current.png, current.txt) so a watching viewer like SumatraPDF reloads in place -- no hunting for the latest revision folder. The copy runs inside the render script (zero agent/token cost), is gitignored, and is overridable via GRAPHCOMPOSE_LIVE_DIR / RENDER_NO_LIVE. Adds scripts/preview-live.mjs (npm run preview) to open it in SumatraPDF.

Also documents the branch-per-change + release-from-main workflow in CONTRIBUTING.md and AGENTS.md so main stays clean and renderable.
@DemchaAV DemchaAV merged commit 5e4d4cc into main Jun 3, 2026
13 checks passed
@DemchaAV DemchaAV deleted the feat/live-preview branch June 3, 2026 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant