Slidev, a presentation tool for developers

Slidev, a presentation tool for developers

2022-11-10 0 525
Resource Number 47863 Last Updated 2025-02-21
¥ 0USD Upgrade VIP
Download Now Matters needing attention
Can't download? Please contact customer service to submit a link error!
Value-added Service: Installation Guide Environment Configuration Secondary Development Template Modification Source Code Installation

This issue features Slidev, a presentation tool for developers.

Slidev, a presentation tool for developers插图

Slidev is a web-based slide-making and presentation tool. It’s designed to allow developers to focus on writing content in Markdown, with the ability to support HTML and Vue components, pixel-perfect layouts, and interactive demo samples built into your pitch. Slidev uses feature-rich markdown files to generate beautiful slides with an instant reload experience. At the same time, it also has many built-in integration functions, such as real-time coding, PDF export, speech recording and so on.

Features

    • Markdown support — Write Markdown files using your favorite editor and workflow
    • Developer friendly — built-in code highlighting, real-time coding and other functions
    • Customizable themes — Share and use themes

as npm packages

    • Flexible style — Utility classes and easy-to-use inline style sheets for on-demand use with Windi CSS
    • Interoperable — seamlessly embedded Vue components
    • Speaker mode — you can use another window or even your phone to control the slide
    • Drawing — Drawing and annotating on your slide
    • LaTeX support — built-in support for LaTeX mathematical formulas
    • Chart support — Create charts using text description language
    • icon — Can get icon

directly from any icon library

    • Editor — integrated editor, or extend

with VS Code

  • Speech recording — built-in recording and camera view
  • Cross-platform — able to export PDF, PNG files, or even a single page application that can be hosted
  • Fast — Instant reload based on Vite
  • Configurable — Support for Vite plug-ins, Vue components, and any npm package

Technical stack

  • Vite — a very fast front-end tool
  • Vue 3-based Markdown — ability to focus on HTML and Vue components while focusing on content
  • Windi CSS — on-demand, utility class first CSS framework, easily customize your slide style
  • Prism, Shiki, Monaco Editor — First-class snippeting support with real-time coding capabilities
  • RecordRTC — built-in recording and camera view
  • VueUse family — vueuse/core, vueuse/head, vueuse/motion, etc.
  • Iconify — Icon library collection
  • Drauu — Support for drawings and comments
  • KaTeX — LaTeX mathematical rendering
  • Mermaid — text description language create chart

Local installation

Use NPM:

$ npm init slidev

Use Yarn:

$ yarn create slidev

Start build command:

{
"scripts": {
"dev":  "slidev", // Start dev server
"build":  "slidev build", // Build single-page applications in production 
"export":  "slidev export" // Export the slides to pdf 
}
}

Access:

 http://localhost:3030/

Example

slides are written from a markdown file (the default is./slides.md).

You can use markdown’s features as you would normally write Markdown, while also supporting inline HTML and Vue components. Writing styles using Windi CSS is also supported. Use — to add separators to separate your slides.

# Slidev

Hello, World!

---

# Page 2

Directly use code blocks for highlighting

```ts
console.log('Hello, World!')
```

---

# Page 3

You can directly use Windi CSS and Vue components to style and enrich your slides.

<div class="p-3">
  <Tweet id="20" />
</div>

Title page and layout

You can specify a layout and other metadata for each slide by converting the separator to a front matter. Each title page message begins with the separator — and ends with another separator –. The text between the two delimiters is a YAML formatted data object. The following is an example:

---
layout: cover
---

# Slidev

This is the cover page.

---
layout: center
background: './images/background-1.png'
class: 'text-white'
---

# Page 2

This is a page with the layout `center` and a background image.

---

# Page 3

This is a default page without any additional metadata.

Code block

A very important reason to build Slidev is to have the code correctly highlighted in the slide. As you can see, you can use Markdown style code blocks to make your code highlighted.

```ts
console.log('Hello, World! ')
```

Highlight specific lines

If you want to highlight a particular line, simply add the corresponding line number inside {}. The line number starts from 1.

```ts {2,3}

function add(

a: Ref< number>  | number,

b: Ref< number>  | number

) {

return computed(() =>  unref(a) + unref(b))

}

```

If you want to change the highlighting in multiple steps, you can separate them with |. For example:

```ts {2-3|5|all}

function add(

a: Ref< number>  | number,

b: Ref< number>  | number

) {

return computed(() =>  unref(a) + unref(b))

}

```

This code starts with a: Ref< number> | number and b: Ref< number> | number is highlighted, and when you click on the slide, it’s highlighted. return computed(() => unref(a) + unref(b)), and finally, the entire block is highlighted. You can learn more in the Animation Guide.

—END—

Open Source protocol: MIT

资源下载此资源为免费资源立即下载
Telegram:@John_Software

Disclaimer: This article is published by a third party and represents the views of the author only and has nothing to do with this website. This site does not make any guarantee or commitment to the authenticity, completeness and timeliness of this article and all or part of its content, please readers for reference only, and please verify the relevant content. The publication or republication of articles by this website for the purpose of conveying more information does not mean that it endorses its views or confirms its description, nor does it mean that this website is responsible for its authenticity.

Ictcoder Free source code Slidev, a presentation tool for developers https://ictcoder.com/kyym/slidev-a-presentation-tool-for-developers.html

Share free open-source source code

Q&A
  • 1, automatic: after taking the photo, click the (download) link to download; 2. Manual: After taking the photo, contact the seller to issue it or contact the official to find the developer to ship.
View details
  • 1, the default transaction cycle of the source code: manual delivery of goods for 1-3 days, and the user payment amount will enter the platform guarantee until the completion of the transaction or 3-7 days can be issued, in case of disputes indefinitely extend the collection amount until the dispute is resolved or refunded!
View details
  • 1. Heptalon will permanently archive the process of trading between the two parties and the snapshots of the traded goods to ensure that the transaction is true, effective and safe! 2, Seven PAWS can not guarantee such as "permanent package update", "permanent technical support" and other similar transactions after the merchant commitment, please identify the buyer; 3, in the source code at the same time there is a website demonstration and picture demonstration, and the site is inconsistent with the diagram, the default according to the diagram as the dispute evaluation basis (except for special statements or agreement); 4, in the absence of "no legitimate basis for refund", the commodity written "once sold, no support for refund" and other similar statements, shall be deemed invalid; 5, before the shooting, the transaction content agreed by the two parties on QQ can also be the basis for dispute judgment (agreement and description of the conflict, the agreement shall prevail); 6, because the chat record can be used as the basis for dispute judgment, so when the two sides contact, only communicate with the other party on the QQ and mobile phone number left on the systemhere, in case the other party does not recognize self-commitment. 7, although the probability of disputes is very small, but be sure to retain such important information as chat records, mobile phone messages, etc., in case of disputes, it is convenient for seven PAWS to intervene in rapid processing.
View details
  • 1. As a third-party intermediary platform, Qichou protects the security of the transaction and the rights and interests of both buyers and sellers according to the transaction contract (commodity description, content agreed before the transaction); 2, non-platform online trading projects, any consequences have nothing to do with mutual site; No matter the seller for any reason to require offline transactions, please contact the management report.
View details

Related Article

make a comment
No comments available at the moment
Official customer service team

To solve your worries - 24 hours online professional service