Code Monkey home page Code Monkey logo

slidev-template-repo's Introduction

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!

slidev-template-repo's People

Contributors

kxxt avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.