Commit graph

10 commits

Author SHA1 Message Date
Claude
d81c3af3b3 fix(build-slides): marp --output rejects multiple inputs — iterate per file
All checks were successful
Build slides / build (push) Successful in 52s
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-17 17:27:02 +02:00
Claude
90598056d4 ci: build slides via Forgejo Actions runner
Some checks failed
Build slides / build (push) Failing after 1m5s
Adds .forgejo/workflows/build-slides.yml triggering on push to main and
manual dispatch. Job runs in node:20-bookworm-slim, installs marp-cli +
python3, mounts /srv/slides/html into /output, and invokes
build-slides.sh with OUTPUT_DIR=/output.

build-slides.sh now honors OUTPUT_DIR/SLIDES_TITLE/REPO_WEB_URL env
overrides (defaults preserve local-dev behavior), wipes stale .html
before each build, and regenerates a styled index.html listing every
deck — replacing the equivalent logic from the old webhook update.sh.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-17 17:24:34 +02:00
sjat
695a8102e6 fix: use parentElement and explicit mermaid.run() for reliable rendering
el.closest('pre') returns null after marp's polyfill replaces
<pre is="marp-pre"> with <marp-pre> on browsers without customized
built-in element support. el.parentElement works in both cases.

startOnLoad:true does not trigger in a deferred type="module" script
because DOMContentLoaded has already fired. Explicit mermaid.run()
ensures diagrams render regardless of timing.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-10 18:14:02 +02:00
sjat
afe0dff5f9 fix: exclude superpowers/ from marp slide discovery
Prevents AI tooling docs (specs, plans) from being built as presentations.
The grep pattern matched marp: true inside code examples in plan files.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-10 18:00:22 +02:00
sjat
9e5a315c54 fix: make build-slides.sh work with Docker marp by using temp directory with proper permissions
- Process each slide individually to avoid Docker --output flag issues
- Use a temp directory with 777 permissions for Docker to write to
- Copy generated files to final output directory after build
- Both marp-cli and mermaid injection now work properly with Docker

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-10 17:49:02 +02:00
sjat
c6052a8a66 fix: robust mermaid injection with utf-8 encoding and error check 2026-05-10 17:43:59 +02:00
sjat
b5226fd74c feat: inject mermaid.js into slides that use it 2026-05-10 17:42:35 +02:00
abc2a9c300 reverting changes 2026-05-10 12:21:09 +02:00
2459b4c680 trying to get mermaid diagrams to work 2026-05-10 12:18:02 +02:00
sjat
141511322f Add marp slide infra and messaging alternatives presentation
- build-slides.sh: local build script (uses marp CLI or Docker fallback)
- slides/.gitkeep: output directory tracked, generated HTML gitignored
- docs/møder/2026-05-xx-messaging-presentation.md: first presentation

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-06 10:23:00 +02:00