Commit graph

8 commits

Author SHA1 Message Date
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