Slidev (original) (raw)
Getting Started β
Slidev (slide + dev, /slaΙͺdΙͺv/) is a web-based slides maker and presenter. It's designed for developers to focus on writing content in Markdown. With the power of web technologies like Vue, you are able to deliver pixel-perfect designs with interactive demos to your presentation.
TIP
You can learn more about the rationale behind this project in π Why Slidev.
Create Slides β
Try it Online β
Start Slidev right in your browser with StackBlitz: sli.dev/new
Create Locally β
Requires Node.js >= 18.0 installed.
Run the following command to create a new Slidev project locally:
pnpmnpmyarnbundeno
bash
# If you haven't installed pnpm
npm i -g pnpm
pnpm create slidevbash
# Not recommended -
# NPM will download the packages each time you create a new project,
# which is slow and takes up a lot of space
npm init slidev@latestbash
deno init --npm slidevFollow the prompts to start your slides project. The slides content is in slides.md, which initially includes demos of most the Slidev features. For more information about the Markdown syntax, please check π Syntax Guide.
Single file usage (not recommended)
If you prefer to have a single Markdown file as your slides, you can install the Slidev CLI globally:
pnpmnpmyarnbundeno
bash
pnpm i -g @slidev/clibash
yarn global add @slidev/clibash
deno i -g npm:@slidev/cliThen, you can create and start a single file slides via:
Basic Commands β
Slidev provides a set of commands in its CLI. Here are some common ones:
slidev- Start the dev server. See the dev command.slidev export- Export the slides to PDF, PPTX, or PNGs. See π Exporting.slidev build- Build the slides as a static web application. See π Hosting.slidev format- Format the slides. See the format command.slidev --help- Show the help message
To run these commands, you can add them to your package.json scripts (which has been done for you if the project was created via npm init slidev):
package.json
json
{
"scripts": {
"dev": "slidev --open",
"build": "slidev build",
"export": "slidev export"
}
}Then, you can simply run npm run dev, npm run build, and npm run export.
For more information about the CLI, please check the CLI guide.
Setup Your Editor β
Since Slidev uses Markdown as the source entry, you can use any editor you prefer to create your slides. We also provide tools to help you edit you slides more conveniently:
β¨ VS Code Extension
β¨ Integrated Editor
β¨ Prettier Plugin
Join the Community β
It's recommended to join our official Discord Server to get help, share your slides, or discuss anything about Slidev.
If you're encountering bugs, feel free to open an issue on GitHub.
Tech Stack β
Slidev is made possible by combining these tools and technologies.
- Vite - An extremely fast frontend tooling
- Vue 3 powered Markdown - Focus on the content while having the power of HTML and Vue components whenever needed
- UnoCSS - On-demand utility-first CSS framework, style your slides at ease
- Shiki, Monaco Editor - First-class code snippets support with live coding capability
- RecordRTC - Built-in recording and camera view
- VueUse family - @vueuse/core, @vueuse/head, @vueuse/motion, etc.
- Iconify - Iconsets collection.
- Drauu - Drawing and annotations support
- KaTeX - LaTeX math rendering.
- Mermaid - Textual Diagrams.