summaryrefslogtreecommitdiff
path: root/src/bin/subplot.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-12-01 18:01:44 +0200
committerLars Wirzenius <liw@liw.fi>2023-12-25 10:17:07 +0200
commit9972ba7f7c798e12741e9310a258df64c9310c05 (patch)
tree0084856ea6a9c3dbb4c4cedac83d3b24aa48bdc0 /src/bin/subplot.rs
parentd6ba90c694fe8905aadf02acbbb0ff7e24f30b4e (diff)
downloadsubplot-9972ba7f7c798e12741e9310a258df64c9310c05.tar.gz
feat: typeset scenarios by typesetting steps
Typeset each step in a scenario, including captures in the steps. Previously the scenario was just one <pre> element, now things can be styled with CSS. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
Diffstat (limited to 'src/bin/subplot.rs')
-rw-r--r--src/bin/subplot.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/subplot.rs b/src/bin/subplot.rs
index 37545a5..fd9500d 100644
--- a/src/bin/subplot.rs
+++ b/src/bin/subplot.rs
@@ -288,7 +288,7 @@ impl Docgen {
Self::mtime_formatted(newest.unwrap())
};
- doc.typeset(&mut Warnings::default());
+ doc.typeset(&mut Warnings::default(), self.template.as_deref())?;
std::fs::write(&self.output, doc.to_html(&date)?)
.map_err(|e| SubplotError::WriteFile(self.output.clone(), e))?;