summaryrefslogtreecommitdiff
path: root/examples
AgeCommit message (Collapse)AuthorFilesLines
2023-12-27bindings: Add types for all relevant bindings which were missing themDaniel Silverstone1-0/+18
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2023-11-11chore: Update from fehler to culpaDaniel Silverstone1-1/+3
2023-06-03fix: change examples to use .subplot filesLars Wirzenius6-45/+43
This means they actually work, oops. Fix markup problem in echo.md. This change should mean that the rendered HTML for the example subplots gets published on doc.subplot.tech. Sponsored-by: author
2023-02-14feat! drop support for producing PDF outputLars Wirzenius1-2/+1
We may add this back later, but for now, it's not wanted. Sponsored-by: author
2023-02-11chore: use variables in Rust format stringsLars Wirzenius1-4/+2
Change this: format!("{}", foo) into this: format!("{foo}") Support for this feature was added in Rust 1.58 (see https://github.com/rust-lang/rust/releases/tag/1.58.0) and in 1.67 clippy suggests about this. Because the new style seems to be where the Rust ecosystem is going, I think Subplot should follow to avoid being needlessly different from most other projects. Sponsored-by: author
2022-10-25feat! subplot metadata field for authorsLars Wirzenius1-1/+2
Rename the field "author", which takes a single string value, to "authors", which takes a list of strings. This way we're consistent for single- and multi-author documents. Sponsored-by: author
2022-09-06feat! read document metadata from a YAML fileLars Wirzenius2-2/+12
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-15(example): Set licence for seq exampleDaniel Silverstone1-0/+1
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2022-04-15(chore): Update seq example nameDaniel Silverstone1-1/+1
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2022-04-10fix: move echo.bib out of YAML metadata in echo.mdLars Wirzenius1-9/+3
Pandoc fails to find echo bib when ./check is run: we have no way of telling Pandoc (via the pandoc::Pandoc structure), what it's working directory should be. I am about to introduce changes that will mean Subplot will fail in this case. This will all be sorted when we switch from using Pandoc to cmark_pulldown for parsing Markdown, and when we do, this commit should be reverted, but that change is too big for me at this time. Sponsored-by: author
2022-03-16apostrophe abuseXipmix1-1/+1
2022-03-16missing wordXipmix1-1/+1
2022-03-16extra wordXipmix1-1/+1
2022-03-16typosXipmix1-5/+5
2022-03-16typosXipmix1-2/+2
2022-03-16use correct wordXipmix1-1/+1
2022-03-16pluralXipmix1-1/+1
2022-03-12(examples): Add step functions to seq exampleDaniel Silverstone4-3/+111
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2022-03-12docs: add example of minimal subplot using Rust step functionsLars Wirzenius4-0/+63
Sponsored-by: author
2022-03-06Remove trailing whitespaceXipmix1-6/+6
2022-03-06Remove extra hyphenXipmix1-1/+1
2022-03-06Fix argument syntaxXipmix1-3/+3
While '--output' works, '--o' definitely doesn't and '-o' is the common use within the project
2021-11-19subplots: Upgrade metadata for polyglot docsDaniel Silverstone3-6/+6
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-10-28refactor: use simple patterns where possibleLars Wirzenius2-8/+4
Many of our bindings files were originally written before Subplot supported simple patterns, and so they use regex patterns even when a simple pattern would do. Simplify bindings to use simple patterns when possible, to make life easier for future maintainers. Sponsored-by: author
2021-10-13examples: Fix up absolute paths on echo exampleDaniel Silverstone1-3/+3
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-09-16fix: use list of filenames instead of a single value in doc metadataLars Wirzenius3-7/+7
Sponsored-by: pep.foundation
2021-09-07bindings: Parse polyglot bindingsDaniel Silverstone3-24/+69
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-05-16docs: add tutorial for verifying a web siteLars Wirzenius3-0/+232
2021-02-18refactor: move echo and muck examples under new examples/ directoryLars Wirzenius7-0/+691