summaryrefslogtreecommitdiff
path: root/subplotlib/build.rs
AgeCommit message (Collapse)AuthorFilesLines
2023-05-18fix: if subplotlib's build.rs fails, print the error messageLars Wirzenius1-2/+6
Sponsored-by: author
2022-11-12chore: fix unnecessary borrows found by clippyLars Wirzenius1-1/+1
Sponsored-by: author
2022-09-06feat! read document metadata from a YAML fileLars Wirzenius1-7/+7
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
2022-04-17(subplotlib): Do not generate tests for subplotlib if not in-treeDaniel Silverstone1-2/+10
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2022-04-10feat! treat warnings as errors by defaultLars Wirzenius1-0/+1
Add a --merciful option to subcommands for which this matters. Adjust tests to invoke subplot with that option as necessary. Sponsored-by: author
2022-01-01tests: Move files.md to be common between Python and subplotlibDaniel Silverstone1-0/+2
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2022-01-01subplotlib: Run subplot.md in Rust tooDaniel Silverstone1-1/+2
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-11-27refactor: use build.rs for testing subplotlib subplotsLars Wirzenius1-0/+30
A bit of dog-fooding: use subplot-build to test subplotlib. Add a subplotlib/build.rs script to generate test code in Rust for the subplotlib/*.md subplots. The generated code is included in tests/*.rs, and run with "cargo test". Drop the same functionality from the ./check script.. Sponsored-by: author