Skip to content

An introduction to the Zig programming language and toolchain

Notifications You must be signed in to change notification settings

jackdbd/zig-tour

Repository files navigation

Zig tour

An introduction to the Zig programming language and toolchain.

I gave this talk at pisa.dev.

Installation

The presentation is Vue.js application built with Slidev. You can install the dependencies with:

npm install

Development

Slidev can hot-code reload your presentation thanks to Vite. Launch the dev server with:

npm run dev

Slidev Play mode:

http://localhost:3030/1

Slidev Presenter Mode:

http://localhost:3030/presenter/1

Deploy

The dist directory will be automatically deployed to Vercel on each git push.

PDF export

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

About

An introduction to the Zig programming language and toolchain

Topics

Resources

Stars

Watchers

Forks