- Slidev - https://sli.dev/
-
[Fork] (https://github.com/jerdog/jerdog-base-talk-slidev/fork) the repo to your organization
-
Clone the repo
git clone <your fork>
cd <your local fork directory>
- Install dependencies and run the dev server
npm install
npm run dev
-
View the base: http://localhost:3030
-
Edit the slides.md file and then save to see the changes.
Learn more about Slidev at the documentation.
For the presentation config, edit the specific YAML entries in the slides.md frontmatter:
theme:
by default using theslidev-theme-the-unnamed
themetitle:
author:
info:
this block is markdown and is where to put basic info (title, abstract, etc.)conference:
put the conference name, which will be used in the left footer of the presentationkeywords:
put the keywords for the presentationfavicon:
put the favicon for the presentation, can be a local file or a URL
Other config items
fonts:
a list of values for the font types (sans, serif, mono) to use in the presentationclass:
the default class for the presentationdefaults:
default frontmatter for the presentation (layout, transition, etc.)
The slides are written in markdown and HTML, and each slide begins with a ---
line. You can use frontmatter to add additional information to the slide by adding it after the ---
line, and then closing the frontmatter with another ---
line.
You can add specific config for each slide like class, layout, transition, etc.
There are a few addons which make sense for these slides, and you include them in the presentation by adding them to the addons
list in the slides.md frontmatter:
addons:
- slidev-addons-rabbit
- slidev-addon-qrcode - add a QR code to the slide
Note: use the
<div>
with the class to center the rendered qr code. Remove theimage="/logo.svg"
parameter if you don't want a logo in the center.
<div class="flex flex-col items-center">
<QRCode
:width="100"
:height="100"
type="svg"
data="https://sli.dev"
:margin="10"
:imageOptions="{ margin: 10 }"
:dotsOptions="{ type: 'extra-rounded', color: 'purple' }"
image="/logo.svg"
/>
</div>
- slidev-addon-rabbit - add a rabbit at the bottom of the slide which progresses from left to right according to the time you have set with the
?time=xx
withxx
being the number of minutes for the presentation. If you want the slide number to be shown with the rabbit, add the following to the slide config frontmatter:
rabbit:
slideNum: true
MIT License
Copyright (c) 2024-25 Jeremy Meiss.