summaryrefslogtreecommitdiff
path: root/examples/seq/build.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-09-03 13:47:16 +0300
committerLars Wirzenius <liw@liw.fi>2022-09-06 07:24:31 +0300
commit765b2e1d4d94b2274de28d4efd24bfe77e8d93ac (patch)
treea7c22c35da5811f19fa02772ecc6498d87d63030 /examples/seq/build.rs
parentc230684f3bab80154d5224d4f2f71eafd00fd100 (diff)
downloadsubplot-765b2e1d4d94b2274de28d4efd24bfe77e8d93ac.tar.gz
feat! read document metadata from a YAML file
This is a huge change all in one commit, sorry. However, as it changes a fundamental part of the command line interface (namely, what constitutes as the input file), there doesn't seem a way to break this into a tidy series of small commits. Most of the diff is in subplot.md, where every scenario that invokes Subplot needs multiple changes, thus touching much of the file. The overall change is that where we previously had document metadata in embedded YAML in the Markdown file, we now have it in a separate YAML file. The Markdown file is named in the YAML file. We still parse the Markdown with Pandoc for everything, except codegen. Switching from Pandoc to pulldown_cmark for parsing will be another big change that I didn't want to include in this huge change set. Sponsored-by: author
Diffstat (limited to 'examples/seq/build.rs')
-rw-r--r--examples/seq/build.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/seq/build.rs b/examples/seq/build.rs
index 398ec90..d730645 100644
--- a/examples/seq/build.rs
+++ b/examples/seq/build.rs
@@ -1,6 +1,6 @@
//! Subplot seq example build script.
fn main() {
- println!("cargo:rerun-if-changed=seq.md");
- subplot_build::codegen("seq.md").expect("failed to generate code with Subplot");
+ println!("cargo:rerun-if-changed=seq.subplot");
+ subplot_build::codegen("seq.subplot").expect("failed to generate code with Subplot");
}