Repository

esb25-az

slidev-esp-template

README

slidev-esp-template

This project is a template for Slidev presentations recommended for use at Espressif.

You can jump to:

History

The template is based on the Slidev Getting Started project with the following changes:

  • Theme: instead of seriph, it uses the default theme.
  • Addons: it includes
  • Layout: Espressif logo added.
  • Slide content:
    • Replaced Slidev Getting Started title page with a usual Espressif title page
    • Changed guidelines in Themes
    • Added a slide Asciinema describing this plugin
    • Added a slide Poll and Quiz describing this plugin

Installation and configuration

You can use your OS native package manager to install the dependencies, however, it is recommended to use nvm -- Node.js version manager.

The following instructions are provided in detail, as parts of the Node.js ecosystem may not be immediately intuitive to some users. These steps have been tested on Linux only. The general approach should be similar on other operating systems with some possible adjustments.

If you run into major problems installing and configuring the dependencies, feel free to open an issue — we’ll do our best to update the instructions accordingly.

Software dependencies

Slidev requires Node.js, which can be conveniently installed using nvm:

# Install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
source ~/.nvm/nvm.sh
# Install Node.js (LTS version includes npm)
nvm install --lts

Template setup

To create your presentation:

  1. On the GitHub repo page, click Use this template in the top-right corner.
    • This creates a new repo under your GitHub account with the contents of slidev-esp-template.
  2. Clone your new repo:
     git clone https://github.com/YOUR_USERNAME/slidev-esp-template.git
     cd ~/path/to/slidev-esp-template/
  3. Install project dependencies:
     npm install
  4. (Optional but recommended) Set up your environment to use Slidev globally:
     # Install pnpm globally (recommended over npm for faster installs and disk efficiency)
     npm install -g pnpm
     # Create a global bin directory and add it to your shell's PATH
     pnpm setup
     # Restart your shell
     # Install the Slidev CLI globally
     pnpm add -g @slidev/cli

    💡 If you prefer not to install anything globally, you can run Slidev using npm run dev.

Usage

To start the slide show:

  • Run slidev
  • Visit

Edit the slides.md to see the changes.

During your talk, you can:

  • Use a websocket in the LAN by running slidev --remote= --host=0.0.0.0

OR

Examples of Slidev presentations

Learn more about Slidev

To get started, see:

This is part of extensive Slidev documentation.

Quick tips

The most basic and important features:

  • VS Code extension: If you use VS Code, you can install Slidev for VS Code extension to improve your experience using Slidev.
  • Include static files: If you have static files, such as images or diagrams, place them in the public/ folder. You can then reference them using src="/image.png". For example, to include the image public/myimage.jpeg on your slide, use src="/myimage.png".
  • Embed external code blocks: If you need to include code blocks, place files containing code in the snippets/ folder. Then:
    • Mark the regions to include:
      // #region snippet
      ...
      // #endregion snippet
    • Include the regions:
      
       *Poll and Quiz*.

Layout and appearance

Visual layout settings

  • Page numbers: To add page numbers, open the global-bottom.vue file and uncomment its contents.
  • Color scheme: To change the color scheme, in the slides.md YAML frontmatter, update the parameter colorSchema. The default value is light, but you can update it to auto or dark.
  • Aspect ratio and canvas size: To change the configuration, in the slides.md YAML frontmatter, update the values of aspectRatio and canvasWidth.

If the slides are for an event that has its own logo (for example, DevCon25), consider replacing the standard Espressif logo with the event-specific logo.

To update the logo, follow these steps:

  1. Choose the logo in the public/ folder. If your event's logo is not there, add it and consider adding it to the upstream template repo as well.
  2. In the slides.md YAML frontmatter, find the parameter favicon and add the path to the new logo.
  3. Preview the slides to make sure the logo is clearly visible and works well with the slide background color.