0.0.2 • Published 10 months ago
slidev-addon-demotime v0.0.2
slidev-addon-demotime
Slidev component to integrate with Demo Time a Visual Studio Code extension to simplify coding demos.
Installation
npm install slidev-addon-demotimeDeclare the addon in your front matter of the slidex.md file:
---
addons:
- slidev-addon-demotime
---Usage
---
clicks: 1 // Define the click count
---
# Slide 1
This slide triggers the first demo after **1** click.
<demotime
click="1"
id="demo1" />Important: The
clicksproperty in the frontmatter is required, otherwise the slide will not trigger the demo.
Options
click: The number of clicks to trigger the demo.id: The demo ID to trigger.port: The port where the Demo Time server is running. Default is3710.host: The host where the Demo Time server is running. Default ishttp://localhost.image: The image to show in the slide. Default is the Demo Time logo.