This commit is contained in:
nora 2024-01-21 18:12:51 +01:00
parent 5f1f9bd6a6
commit 2da77e8af5
13 changed files with 314 additions and 33 deletions

View file

@ -16,8 +16,8 @@ pub fn build(config: &SlidesConfig, slides: &Path, dist: &Path) -> Result<()> {
utils::cp_r(&slides.join("plugin"), &dist.join("plugin")).wrap_err("copying reveal.js dist")?;
for talk in &config.talks {
let path = slides.join(talk);
let dist = dist.join(talk);
let path = slides.join(talk.dirname());
let dist = dist.join(talk.dirname());
utils::cp_r(&path, &dist).wrap_err("copying slide data")?;
}

View file

@ -5,12 +5,12 @@ use std::{fs, path::Path};
use askama::Template;
use color_eyre::{eyre::WrapErr, Result};
use crate::{utils, SlidesConfig};
use crate::{utils, SlidesConfig, Talk};
#[derive(askama::Template)]
#[template(path = "slides.html")]
struct Slides {
talks: Vec<String>,
talks: Vec<Talk>,
}
pub fn build(config: &SlidesConfig, statics: &Path, dist: &Path) -> Result<()> {