jackdbd/zig-tour
An introduction to the Zig programming language and toolchain
An introduction to the Zig programming language and toolchain.
I gave this talk at pisa.dev.
The presentation is Vue.js application built with Slidev. You can install the dependencies with:
npm install
Slidev can hot-code reload your presentation thanks to Vite. Launch the dev server with:
npm run dev
Slidev Play mode:
Slidev Presenter Mode:
http://localhost:3030/presenter/1
The dist
directory will be automatically deployed to Vercel on each git push
.
Slidev allows exporting the slides to a PDF. This feature relies on Playwright and requires playwright-chromium to work. Since I did not want to install Playwright when building on Vercel (so deployments are faster), I declared playwright-chromium
as a dev dependency and set npm install --omit=dev
as the Vercel installCommand
in vercel.json
.
Run this command to export the presentation to assets/zig-tour.pdf
:
npm run export:pdf
Note: exporting the notes with this command generates an empty PDF. Maybe a Slidev bug?
npx slidev export-notes --output assets/zig-tour-notes