Skip to content

Releases

v0.5.0 — imports and tables, one-command update

Choose a tag to compare

@yakaboskic yakaboskic released this 02 Dec 19:33

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 a manifest.yaml (a shared folder, a document-sanity document, another project), relative to manifest.yaml. variables, figures and tables each take all, a list of names, or a local: remote mapping. 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-pptx and check fail 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-figures included, and <FigureImage> now takes the extension from the manifest.
  • The provenance panel says where an imported number is defined.
  • A manifest with metadata.notice can't be imported from unless the entry says allow_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.yaml at build time, so with imports or tables the tool writes the resolved manifest to .cache/manifest.yaml before every engine run, and both engines read that instead. dev re-resolves when manifest.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 update brings a project up to the release that is running: it moves the pin in pyproject.toml (never down), re-resolves uv.lock, refreshes the agent skill wherever it is installed, and adds the files this release's shared/ 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 --shared takes the template's version of each. --dry-run says what would change. See Update a project.

Fixes

  • A poster is the scene's final frame. build-manim kept 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 next build or build-manim without re-rendering any scene.
  • build empties a deck's output folder before Slidev runs, so a project's site/<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 updated FigureImage.vue and ProvenancePanel.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, then uv sync. That moves the pin to @v0.5.0, re-resolves the lock, refreshes the agent skill and adds shared/components/DataTable.vue.
  • To use imports or tables in an existing project, run uvx presentation-sanity@latest update --shared: it also takes the template's shared/vite.config.ts, FigureImage.vue and ProvenancePanel.vue. Review with git diff if you have edited those files. Until then check and 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 in public/manim/; rebuild your decks and commit the deletions in site/.

Full changelog: v0.4.3...v0.5.0

v0.4.3 — on PyPI

Choose a tag to compare

@yakaboskic yakaboskic released this 19 Oct 00:08

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-talks now works anywhere uv is installed, always with the newest release. Pin one with uvx 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 new mode 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, run uv lock, then uv run presentation-sanity skills --force to refresh the agent skill.

Full changelog: v0.4.2...v0.4.3

v0.4.2 — init leaves the template's uv.lock out

Choose a tag to compare

@yakaboskic yakaboskic released this 18 Oct 18:37

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

  • init no longer copies uv.lock, whether from the bundled template, a --from fork, or --in-place. After an in-place rename the template's own lock fails uv lock --locked, because it names the package presentation-sanity-template. The first uv sync writes 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 .gitignore doesn't ignore uv.lock.

Changed

  • New projects are pinned to v0.4.2.

Upgrading

  • Change the tag in your dependency line to @v0.4.2, run uv lock, then uv run presentation-sanity skills --force to refresh the agent skill. Projects that already have a committed, current uv.lock need nothing else.

Full changelog: v0.4.1...v0.4.2

v0.4.1 — dev targets that work, a line-start lint in check

Choose a tag to compare

@yakaboskic yakaboskic released this 18 Oct 17:16

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

  • dev suggestions name an output. init's next steps, the README it writes, new's next step (a new --from fork copies both files too), the README and the agent skill now say dev ID:slides (and dev ID:blog for the post). A bare dev ID still works when a presentation has only one output.

Added

  • check warns 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

  • init ships the new example from presentation-sanity-template: a deck and a post that make one claim per slide and prove it, with a new one_source manim scene. New projects are pinned to v0.4.1.

Upgrading

  • Change the tag in your dependency line to @v0.4.1, run uv lock, then uv run presentation-sanity skills --force to 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

Choose a tag to compare

@yakaboskic yakaboskic released this 18 Oct 16:36

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. --git adds git init and a first commit. --from gh:owner/repo[@ref] starts from a lab's fork, downloaded as a tarball (GH_TOKEN for private ones).
  • Agent skill: /presentation-sanity [mode] with modes for init, new, slides, blog, manim, figures, variables, cite, export, check and deploy. It explains, and the CLI does the work. It finds the project root itself, and trusts --help when the installed tool is newer than the skill. init installs 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 \cite key 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 init writes .github/workflows/pages.yml: on every push to main it installs without manim (uv sync --locked --no-default-groups), runs npm ci, builds with the site's base path, and deploys site/. The runner never renders. It ships the videos and figures committed in public/. --only-repo OWNER/NAME keeps forks and template copies from deploying; --branch picks the branch. A Pages site is public, even from a private repository.
  • python -m presentation_sanity runs the CLI too.

Upgrading

  • Change the tag in your dependency line to @v0.4.0 and run uv lock, then uv run presentation-sanity skills to 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], and default-groups = ["manim"] under [tool.uv]. uv sync still installs manim. pages init refuses the old layout and prints this edit. Commit your rendered public/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

Choose a tag to compare

@yakaboskic yakaboskic released this 02 Oct 12:56

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 records from: lineage.
  • list shows every presentation and what's built (outputs remains as an alias).
  • Targets are PRESENTATION[:OUTPUT] for every verb — build kickoff builds every version of a talk, dev kickoff/v2:blog starts one blog. Inside a presentation's folder, that presentation is the default.
  • site/<id>/<output>/ per presentation, plus a site/index.html grouped by folder (title, date, venue, lineage), refreshed on every build.
  • --base is the deploy prefix for all of site/: decks build with ./, blogs with <prefix><id>/<output>/.
  • A presentation's own manifest.yaml may set metadata (title, date, venue, authors) and outputs overrides; shared inputs can only be declared in the project manifest.
  • Blogs: one VitePress site per presentation, generated under .cache/vitepress/<id>/, with @project / @shared import 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 root package.json. Start from presentation-sanity-template, or follow its "Moving a single-deck repo into a project" section.

Fixes

  • export-pptx passes the deck's entry to Slidev's PNG export instead of relying on a slides.md in the working directory.
  • build and dev fail 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

Choose a tag to compare

@yakaboskic yakaboskic released this 02 Oct 12:56

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: in manifest.yaml — the engine is inferred for slides/deck (Slidev) and blog/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 every dev/build: shared components are registered globally, the provenance panel is mounted once, blog.css is imported. Theme levers (nav, sidebar, footer, themeConfig, vitepress) live under outputs.<key>:.
  • math: — TeX macros, equation tags and bare \begin{align} blocks, rendered to static SVG at build time.
  • bibliography: — \cite{…}, \citet{…} and \bibliography from .bib files, formatted at build time (numeric or author-year), with no citation runtime on the page.
  • New outputs and scaffold verbs; a landing page links every printout under site/.

Compatibility

A manifest without outputs: still builds as a lone Slidev deck to site/.