Repository navigation
Releases
v0.5.0 — imports and tables, one-command update
Imports and tables: one number for the talk and the paper
A project manifest can now take variables, figures and tables from another manifest, and show data tables. document-sanity v0.3.0 reads the same imports: block the same way, which lets one shared/manifest.yaml feed a deck and a paper. This release also carries the two fixes prepared as v0.4.4, which was never published.
Imports
imports:in the project manifest.from:names a folder holding amanifest.yaml(a shared folder, a document-sanity document, another project), relative tomanifest.yaml.variables,figuresandtableseach takeall, a list of names, or alocal: remotemapping. Imported names are used like local ones:<DataValue var="…" />,<FigureImage figure="…" />,<DataTable table="…" />. See Imports and tables.- An import resolves or the command stops. A missing target or name, a name that is also defined locally, a variable with no
value, a figure with no file a page can show:build,dev,export,export-pptxandcheckfail with the reason. Nothing renders as??key??. - Imported figures are finished files. Their best web format (svg, then png, jpg, gif, webp) is copied to
public/figures/<key>.<ext>on every run,--skip-figuresincluded, and<FigureImage>now takes the extension from the manifest. - The provenance panel says where an imported number is defined.
- A manifest with
metadata.noticecan't be imported from unless the entry saysallow_notice: true.
Tables
tables:and<DataTable>. A csv, tsv or markdown pipe table declared in the manifest (or imported) is read at build time and shown in decks and posts.
How it reaches the page
- Components read
manifest.yamlat build time, so with imports or tables the tool writes the resolved manifest to.cache/manifest.yamlbefore every engine run, and both engines read that instead.devre-resolves whenmanifest.yaml, or a manifest it imports from, changes. A project with neither block is untouched. - Variables also accept provenance nested under
provenance:, the way document-sanity writes it.
Update a project with one command
uvx presentation-sanity@latest updatebrings a project up to the release that is running: it moves the pin inpyproject.toml(never down), re-resolvesuv.lock, refreshes the agent skill wherever it is installed, and adds the files this release'sshared/Vue layer has that the project lacks.- Files in
shared/that differ from the template are listed and left alone, since the difference may be your own edit.update --sharedtakes the template's version of each.--dry-runsays what would change. See Update a project.
Fixes
- A poster is the scene's final frame.
build-manimkept the first frame of the last second, so a scene whose last animation runs to the end got a mid-animation poster, which is what PDF and PPTX exports show. Old posters are re-extracted on the nextbuildorbuild-manimwithout re-rendering any scene. buildempties a deck's output folder before Slidev runs, so a project'ssite/<id>/slides/no longer keeps every previous build's hashed bundles.
Changed
- New projects are pinned to v0.5.0 and get the new Vue layer: the manifest alias in
shared/vite.config.ts,DataTable.vue, and the updatedFigureImage.vueandProvenancePanel.vue. - The agent skill covers imports, and knows that in a joint sanitism repository its project root is
present/.
Upgrading
uvx presentation-sanity@latest update, thenuv sync. That moves the pin to@v0.5.0, re-resolves the lock, refreshes the agent skill and addsshared/components/DataTable.vue.- To use imports or tables in an existing project, run
uvx presentation-sanity@latest update --shared: it also takes the template'sshared/vite.config.ts,FigureImage.vueandProvenancePanel.vue. Review withgit diffif you have edited those files. Until thencheckand every deck command say the alias is missing, instead of building slides that show??key??. - Run
uv run presentation-sanity build-manim(it needs manim and ffmpeg) and commit the posters it re-extracts inpublic/manim/; rebuild your decks and commit the deletions insite/.
Full changelog: v0.4.3...v0.5.0
v0.4.3 — on PyPI
On PyPI: uvx presentation-sanity init my-talks
The first release published to PyPI.
Start a project in one short command
uvx presentation-sanity init my-talksnow works anywhere uv is installed, always with the newest release. Pin one withuvx presentation-sanity@0.4.3 init …. The git+ form still works too (#4).- Releases publish themselves. Publishing a GitHub release runs
release.yml: it checks the tag matches the version, runs the tests, builds the sdist and wheel, starts a project from the wheel, and uploads to PyPI through a trusted publisher. No token is stored anywhere.
Changed
- The README is rewritten in the Sanitism style, with neutral project examples (#5). The agent skill's
newmode uses neutral examples too. - New projects get the refreshed template (its README in the same style) and are pinned to v0.4.3.
Upgrading
- Change the tag in your dependency line to
@v0.4.3, runuv lock, thenuv run presentation-sanity skills --forceto refresh the agent skill.
Full changelog: v0.4.2...v0.4.3
v0.4.2 — init leaves the template's uv.lock out
init leaves the template's uv.lock out
A patch release. Projects made by init used to start with the template's uv.lock, taken before the template was re-locked against the new tag. So a v0.4.1 project pinned @v0.4.1 but locked an older release, and the Pages workflow from pages init (which runs uv sync --locked) failed until someone ran uv sync locally and committed the result.
Fixes
initno longer copiesuv.lock, whether from the bundled template, a--fromfork, or--in-place. After an in-place rename the template's own lock failsuv lock --locked, because it names the packagepresentation-sanity-template. The firstuv syncwrites a fresh lock that resolves to the pinned tag.- Commit that first lock.
init's next steps, the README it writes, the README and the agent skill's init mode all say so, because the generated Pages workflow syncs with--locked. A test checks that the template's.gitignoredoesn't ignoreuv.lock.
Changed
- New projects are pinned to v0.4.2.
Upgrading
- Change the tag in your dependency line to
@v0.4.2, runuv lock, thenuv run presentation-sanity skills --forceto refresh the agent skill. Projects that already have a committed, currentuv.lockneed nothing else.
Full changelog: v0.4.1...v0.4.2
v0.4.1 — dev targets that work, a line-start lint in check
dev commands that work, a line-start lint in check, and a new example
A patch release. v0.4.0 told people to run presentation-sanity dev <first>, which refuses for any presentation with both a deck and a post, and the example init creates has both.
Fixes
devsuggestions name an output.init's next steps, the README it writes,new's next step (anew --fromfork copies both files too), the README and the agent skill now saydev ID:slides(anddev ID:blogfor the post). A baredev IDstill works when a presentation has only one output.
Added
checkwarns when<DataValue>or<FigureImage>starts a line inside a paragraph. markdown-it reads that line as an HTML block, which splits the paragraph. The warning gives file:line. A tag alone between blank lines (like a<ManimFigure … />figure) passes, and so do code, HTML comments and lines inside an HTML block such as a<div>. It found a case in v0.4.0's own example deck.
Changed
initships the new example from presentation-sanity-template: a deck and a post that make one claim per slide and prove it, with a newone_sourcemanim scene. New projects are pinned to v0.4.1.
Upgrading
- Change the tag in your dependency line to
@v0.4.1, runuv lock, thenuv run presentation-sanity skills --forceto refresh the agent skill.
Full changelog: v0.4.0...v0.4.1
v0.4.0 — Start, check and ship: init, an agent skill, Pages deploys
Start, check and ship a project: init, an agent skill, Pages deploys
presentation-sanity now starts projects as well as building them, ships an agent skill that knows how a project works, and deploys to GitHub Pages. It's the first tool rolled out as part of Sanitism: built for autists to communicate their work, sanely.
Highlights
init [DIR|.]makes a project from the snapshot of presentation-sanity-template that ships inside this release, with no clone and no git:uvx --from "presentation-sanity @ git+https://github.com/yakaboskic/presentation-sanity.git@v0.4.0" presentation-sanity init my-talks --title "My talks" --first kickoff. It renames the project, its authors and first presentation (prompted, or--title/--first/--author… with--yes), and pins the new project to v0.4.0. When you knit into an existing folder, it lists the files it would replace and writes nothing unless--force.--gitaddsgit initand a first commit.--from gh:owner/repo[@ref]starts from a lab's fork, downloaded as a tarball (GH_TOKENfor private ones).- Agent skill:
/presentation-sanity [mode]with modes forinit,new,slides,blog,manim,figures,variables,cite,export,checkanddeploy. It explains, and the CLI does the work. It finds the project root itself, and trusts--helpwhen the installed tool is newer than the skill.initinstalls it into.claude/skills/and.agents/skills/.skills [--force]installs or refreshes it in an existing project. The repo is also a Claude Code plugin (.claude-plugin/plugin.json). check [TARGET…]confirms every<DataValue var>, manim scene,<FigureImage figure>and\citekey a document uses is declared, and warns about scenes and figures that haven't been rendered. It exits non-zero on a missing reference and suggests the closest key.pages initwrites.github/workflows/pages.yml: on every push tomainit installs without manim (uv sync --locked --no-default-groups), runsnpm ci, builds with the site's base path, and deployssite/. The runner never renders. It ships the videos and figures committed inpublic/.--only-repo OWNER/NAMEkeeps forks and template copies from deploying;--branchpicks the branch. A Pages site is public, even from a private repository.python -m presentation_sanityruns the CLI too.
Upgrading
- Change the tag in your dependency line to
@v0.4.0and runuv lock, thenuv run presentation-sanity skillsto add the agent skill. - To deploy with
pages init, keep manim off the main dependency line:"presentation-sanity @ git+…@v0.4.0"under[project],manim = ["presentation-sanity[manim]"]under[dependency-groups], anddefault-groups = ["manim"]under[tool.uv].uv syncstill installs manim.pages initrefuses the old layout and prints this edit. Commit your renderedpublic/manim/videos (the template does now).
Full changelog: v0.3.0...v0.4.0
v0.3.0 — Projects: many presentations and versions in one repo
Projects: many presentations and versions in one repo
A repo with a presentations/ directory next to manifest.yaml is now a project. Every folder under presentations/ that has a slides.md and/or a blog.md is a presentation, and its path is its id — so the versions of a talk are just folders (kickoff/v1, kickoff/v2), not branches or copied repos. Variables, scenes, figures, bibliography, math and public/ stay project-wide and render once.
Highlights
new <id> --from <id>forks a presentation into a new version: copies its folder, retitles the deck, and recordsfrom:lineage.listshows every presentation and what's built (outputsremains as an alias).- Targets are
PRESENTATION[:OUTPUT]for every verb —build kickoffbuilds every version of a talk,dev kickoff/v2:blogstarts one blog. Inside a presentation's folder, that presentation is the default. site/<id>/<output>/per presentation, plus asite/index.htmlgrouped by folder (title, date, venue, lineage), refreshed on every build.--baseis the deploy prefix for all ofsite/: decks build with./, blogs with<prefix><id>/<output>/.- A presentation's own
manifest.yamlmay setmetadata(title, date, venue, authors) andoutputsoverrides; shared inputs can only be declared in the project manifest. - Blogs: one VitePress site per presentation, generated under
.cache/vitepress/<id>/, with@project/@sharedimport aliases and per-presentation component overrides.
Upgrading
- Repos without
presentations/(single decks) build exactly as before. - Decks in subfolders need the shared Vue files as a local Slidev addon in
shared/, enabled once from the rootpackage.json. Start from presentation-sanity-template, or follow its "Moving a single-deck repo into a project" section.
Fixes
export-pptxpasses the deck's entry to Slidev's PNG export instead of relying on aslides.mdin the working directory.buildanddevfail fast when an entry file is missing (Slidev would prompt to create it and exit 0).
Full changelog: v0.2.0...v0.3.0
v0.2.0 — A VitePress blog alongside the Slidev deck
A VitePress blog alongside the Slidev deck
A manifest now describes a subject with one or more outputs: — printouts of the same variables, manim scenes and figures. Slidev renders the deck and VitePress renders a blog post, both from the same components/, manifest.yaml and public/.
Highlights
outputs:inmanifest.yaml— the engine is inferred forslides/deck(Slidev) andblog/post/article(VitePress). Every verb takes an output target:build blog,dev slides,preview blog.- Generated VitePress config —
.vitepress/is written from the manifest on everydev/build: shared components are registered globally, the provenance panel is mounted once,blog.cssis imported. Theme levers (nav,sidebar,footer,themeConfig,vitepress) live underoutputs.<key>:. math:— TeX macros, equation tags and bare\begin{align}blocks, rendered to static SVG at build time.bibliography:—\cite{…},\citet{…}and\bibliographyfrom.bibfiles, formatted at build time (numeric or author-year), with no citation runtime on the page.- New
outputsandscaffoldverbs; a landing page links every printout undersite/.
Compatibility
A manifest without outputs: still builds as a lone Slidev deck to site/.