Skip to content

Clean up deck sources and guard them against comments - #772

Merged
xmap merged 2 commits into
mainfrom
worktree-strip-maxiv-notes
Sep 4, 2026
Merged

Clean up deck sources and guard them against comments#772
xmap merged 2 commits into
mainfrom
worktree-strip-maxiv-notes

Conversation

@xmap

@xmap xmap commented Sep 4, 2026

Copy link
Copy Markdown
Owner

Two commits, both about keeping published deck sources to what renders on
screen.

Clean up the MAX IV deck source. Removes the slide-end comment blocks from
slides.md. Delivery notes live in the private talks repository now, so the
published copy matches how the APS deck already ships. Nothing rendered
changed: 117 deletions and no insertions, slide count 20 before and after,
frontmatter untouched.

Guard published deck sources against HTML comments. Slidev compiles
comments in slides.md into the deck's JavaScript bundle, so a comment written
there ships with the deck. Nothing checked for this before: the docs workflow
builds whatever talks/<slug>/ it finds, and the architecture hook is scoped to
Python.

The check enumerates git-tracked talks/*/slides.md, so it ranges over every
deck rather than only the one being changed, and it asserts that a deck was
found at all so an empty match cannot report green over nothing. Verified by
reintroducing a comment block and confirming the failure before removing it
again.

A pre-commit hook runs it on deck edits, which the Python-scoped hooks would
miss. CI has no path filters, so it runs there on every pull request too.

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown

Coverage report

This PR does not seem to contain any modification to coverable code.

xmap and others added 2 commits September 4, 2026 13:26
Remove the slide-end comment blocks from slides.md. Delivery notes live in the
private talks repository now, so the copy published here carries only what
renders on screen, matching how the APS deck already ships.

Nothing rendered changed: 117 deletions and no insertions, with the slide count
20 before and after and the frontmatter untouched.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Slidev compiles comments in slides.md into the deck's JavaScript bundle, so a
comment written there ships with the deck rather than staying in the source.
Nothing checked for them: the docs workflow builds whatever talks/<slug>/ it
finds, and the architecture hook is scoped to Python files.

The check enumerates git-tracked talks/*/slides.md, so it ranges over every deck
rather than only the one being changed, and it asserts that a deck was found at
all so an empty match cannot report green over nothing. Verified by
reintroducing a comment block and confirming the failure before removing it.

A pre-commit hook runs it on deck edits, which the Python-scoped hooks would
miss; CI has no path filters, so it runs there on every pull request too.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@xmap
xmap force-pushed the worktree-strip-maxiv-notes branch from 6059fbb to 9f917c5 Compare September 4, 2026 18:29
@xmap xmap changed the title Strip the MAX IV deck's publicly readable presenter notes Clean up deck sources and guard them against comments Sep 4, 2026
@xmap
xmap merged commit 9169cc8 into main Sep 4, 2026
17 checks passed
@xmap
xmap deleted the worktree-strip-maxiv-notes branch September 4, 2026 18:43
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