Configs2026年4月12日·1 分钟阅读

Slidev — Presentation Slides for Developers

Slidev is a Markdown-based presentation tool for developers. Write slides in Markdown, render with Vue components, use code highlighting with animations, live coding, LaTeX math, diagrams, and export to PDF or SPA. Powered by Vite for instant hot reload.

AI
AI Open Source · Community
快速使用

先拿来用,再决定要不要深挖

这里应该同时让用户和 Agent 知道第一步该复制什么、安装什么、落到哪里。

npm i -g @slidev/cli
slidev init my-slides
cd my-slides
slidev                                      # Dev at :3030
slidev export                               # PDF export
slidev build                                # SPA export

slides.md:

---
theme: seriph
title: TokRepo Update
---

# TokRepo Update

April 2026

---
介绍

Slidev is a Markdown-based presentation tool built for developers. Created by Anthony Fu (Vite, UnoCSS, Nuxt core team). Write slides in Markdown with full Vue component support, live coding, Mermaid diagrams, LaTeX math, presenter notes, recording, and export to PDF or SPA. Powered by Vite for instant hot module reload.

What We Built

  • 270+ open-source asset guides
  • Automated publishing pipeline
  • Full-text search

Architecture

flowchart LR
    A[GitHub API] --> B[SQL Generator]
    B --> C[MySQL]
    C --> D[Nuxt Frontend]

layout: two-cols

Left Column

Code example:

const assets = await fetch("/api/assets")

::right::

Right Column

  • Fast
  • Type-safe
  • Beautiful

layout: center

Thank You


## What Slidev Does

- **Markdown slides** — one file, `---` separators
- **Vue components** — embed any Vue component
- **Code highlighting** — Shiki with line highlighting and animations
- **Live coding** — Monaco editor inside slides
- **Mermaid diagrams** — inline diagram support
- **LaTeX math** — KaTeX for equations
- **Layouts** — center, two-cols, image-right, custom
- **Themes** — community themes on npm
- **Recording** — record presentation with camera
- **PDF export** — via Playwright
- **SPA export** — deploy as a website
- **Presenter mode** — notes + timer + next slide preview

## Comparison

| Tool | Input | Components | Dev |
|---|---|---|---|
| Slidev | Markdown | Vue | Vite HMR |
| reveal.js | HTML/Markdown | JS plugins | Manual |
| Marp | Markdown | Limited | VS Code |
| Google Slides | GUI | None | Browser |
| Keynote | GUI | None | macOS |

## 常见问题 FAQ

**Q: 能部署成网站吗?**
A: 能。`slidev build` 生成 SPA,部署到 Vercel/Netlify/GitHub Pages 即可。

**Q: 和 reveal.js 比?**
A: Slidev 开发体验更好(Vite HMR、Vue 组件、Markdown-first),reveal.js 更老牌、自定义能力更底层。

## 来源与致谢 Sources

- Docs: https://sli.dev
- GitHub: https://github.com/slidevjs/slidev
- License: MIT

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产