Skip to content
/ slidev-template-repo Public template

A template repo for slidev slides with automatic GitHub Pages deployment

Notifications You must be signed in to change notification settings

kxxt/slidev-template-repo

Repository files navigation

slidev-template-repo

A template repo for slidev slides with automatic GitHub Pages deployment.

Example: Slides repo for my course projects

Features

  • 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
  • Generates a directory index for the slides

Usage

  1. Click the "Use this template" button to create a new repo
  2. Clone the new repo
  3. Change "workflow permissions" to "Read and write permission" in Repo Settings > Actions > General.
  4. Enable the deploy workflow in GitHub Actions
  5. Duplicate the template folder in the slides folder and rename it to your presentation name. (Don't forget to update the id in package.json)
  6. Edit the slides and optionally preview them locally with pnpm -F <slide-subfolder-name> run dev
  7. Commit your changes and push to GitHub
  8. Wait for the deploy workflow to finish
  9. Enable GitHub Pages on gh-pages branch
  10. Visit your slides at https://<your-username>.github.io/<your-repo-name>/<slide-subfolder>
  11. That's it!

About

A template repo for slidev slides with automatic GitHub Pages deployment

Topics

Resources

Stars

Watchers

Forks

Languages