Skip to content

OxfordRSE/oxrse-theme-slidev

Repository files navigation

slidev-theme-oxrse

Slidev theme for OxRSE training presentations.

Install

Add the theme to your package.json (be careful to match the package name to comply with slidev conventions):

  "dependencies": {
    "slidev-theme-oxrse": "github:OxfordRSE/oxrse-theme-slidev",
  }

Then, simply add the following frontmatter to your slides.md:

---
theme: oxrse
---

Or any relative paths pointing to the theme.

Layouts

cover

Title page displaying the training event. The date can be populated from event schedule specified by TRAINING_EVENT during build or as frontmatter fields.

cover

---
layout: cover
year: 2026
sessions:
  - date: "31 Dec"
    slot: morning
    topic: Training event 3
---

Frontmatter fields:

Field Type Default Description
date String auto from schedule Override the displayed date
year Number from schedule or current year Year used when formatting date from session lookup
sessions Array null (uses event schedule) Inline session list for date lookup

orientation

Displays the full event schedule as a table and highlights the current session when highlight matches a topic name.

orientation

---
layout: orientation
highlight: Training Event 3
sessions:
  - date: "31 Dec"
    slot: morning
    topic: Training event 3
---

Frontmatter fields:

Field Type Default Description
highlight String '' Topic name to highlight in the table
sessions Array from TRAINING_EVENT YAML Inline session list to override the event schedule

section

section

---
layout: section
---
# Section title

Default

Standard content slide. All non-cover slides include the global header.

default

Global header

It shows the title of the slide at the top left and the logos of University of Oxford and OxRSE at the top right. This is handled by global-top.vue.

Event schedule integration

Set the TRAINING_EVENT environment variable to load a schedule from common/events/<NAME>.yaml:

TRAINING_EVENT='current-training-event' npx slidev slides.md # look for common/events/current-training-event.yaml
  • The cover layout populates its date from the matching session.
  • The orientation layout populates the full session table.

When TRAINING_EVENT is not set, the orientation layout shows an empty table. You can disable it with disabled: true in the frontmatter.

Development

Regenerate screenshots

npx slidev export example.md --format png --output screenshots/layout --per-slide

The example presentation is example.md.

Licence

MIT © 2026 OxRSE

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors