A template repo for slidev slides with automatic GitHub Pages deployment.
Example: Slides repo for my course projects
- Deploys to GitHub Pages on push
- Uses pnpm for dependency management
- Note that in some cases for some reason slidev is not compatible with pnpm so you need to run
pnpm install --shamefully-hoist
- Note that in some cases for some reason slidev is not compatible with pnpm so you need to run
- Generates a directory index for the slides
- Click the "Use this template" button to create a new repo
- Clone the new repo
- Change "workflow permissions" to "Read and write permission" in
Repo Settings
>Actions
>General
. - Enable the
deploy
workflow in GitHub Actions - Duplicate the
template
folder in theslides
folder and rename it to your presentation name. (Don't forget to update the id inpackage.json
) - Edit the slides and optionally preview them locally with
pnpm -F <slide-subfolder-name> run dev
- Commit your changes and push to GitHub
- Wait for the
deploy
workflow to finish - Enable GitHub Pages on
gh-pages
branch - Visit your slides at
https://<your-username>.github.io/<your-repo-name>/<slide-subfolder>
- That's it!