Age | Commit message (Collapse) | Author | Files | Lines |
|
Sponsored-by: author
|
|
Sponsored-by: author
|
|
Prepare release 0.3.0
See merge request subplot/subplot!226
|
|
Sponsored-by: author
|
|
Sponsored-by: author
|
|
Sponsored-by: author
|
|
fix: regex for extracting YAML from Markdown
See merge request subplot/subplot!225
|
|
The old regex had a wrong, and weird, pattern for lines of YAML. The
new one is simpler and seems more correct: it matches lines not
staring with a dot.
Sponsored-by: author
|
|
Support Nix-based and NixOS systems - plus fewer assumptions for Windows/MacOS
See merge request subplot/subplot!220
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
As per the Python template, do not override the full environment
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
We inherit all the environment except we override a few variables
in order to provide some level of consistency.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
feat: add crate subplot-build for using Subplot from build.rs
See merge request subplot/subplot!223
|
|
Also add the new crate to `RELEASE.md` so it's not overlooked.
Sponsored-by: pep.foundation
|
|
Make it easy to generate test code from a subplot in another project's
`build.rs` script.
Move the code to load documents and generate test code from
src/bin/subplot.rs and src/bin/cli/mod.rs to src/doc.rs so it can be
used without using the subplot executable.
Make the add_search_path function public so it can be used outside its
module. The subplot executable arranged for the directory where the
markdown input file resides to be added to the search path via another
way.
Sponsored-by: pep.foundation
|
|
MSRV: Add support for the MSRV in our CI
See merge request subplot/subplot!224
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
fix(portability): avoid using str::split_once
See merge request subplot/subplot!222
|
|
Sequoia wants Rust 1.48.0 and split_once is not in that version. We
can easily accommodate Sequoia's needs here with a simple change.
Sponsored-by: author
|
|
docs: start a decision log
See merge request subplot/subplot!221
|
|
Sponsored-by: author
|
|
Ensure codegen barfs on zero scenario documents
Closes #236
See merge request subplot/subplot!219
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
feat: add --run-all (-k) option to Python test runner
Closes #196
See merge request subplot/subplot!218
|
|
This allows the user to run all scenarios even if one fails.
Sponsored-by: author
|
|
chore: cargo update
Closes #216
See merge request subplot/subplot!217
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
Updating anyhow v1.0.42 -> v1.0.44
Updating bitflags v1.2.1 -> v1.3.2
Updating cc v1.0.69 -> v1.0.70
Updating filetime v0.2.14 -> v0.2.15
Removing getrandom v0.1.16
Adding hashbrown v0.11.2
Adding indexmap v1.7.0
Updating itoa v0.4.7 -> v0.4.8
Updating libc v0.2.98 -> v0.2.102
Updating memchr v2.4.0 -> v2.4.1
Updating pandoc v0.8.5 -> v0.8.6
Updating proc-macro2 v1.0.28 -> v1.0.29
Removing rand v0.7.3
Removing rand_chacha v0.2.2
Removing rand_core v0.5.1
Removing rand_hc v0.2.0
Updating serde v1.0.127 -> v1.0.130
Updating serde-aux v2.2.0 -> v2.3.0
Updating serde_derive v1.0.127 -> v1.0.130
Updating serde_json v1.0.66 -> v1.0.68
Updating serde_yaml v0.8.17 -> v0.8.21
Updating structopt v0.3.22 -> v0.3.23
Updating structopt-derive v0.4.15 -> v0.4.16
Updating syn v1.0.74 -> v1.0.76
Updating tempfile-fast v0.3.3 -> v0.3.4
Updating thiserror v1.0.26 -> v1.0.29
Updating thiserror-impl v1.0.26 -> v1.0.29
Updating tracing v0.1.26 -> v0.1.28
Updating tracing-attributes v0.1.15 -> v0.1.16
Updating tracing-core v0.1.19 -> v0.1.20
Updating tracing-subscriber v0.2.20 -> v0.2.23
Updating typenum v1.13.0 -> v1.14.0
Updating unicode-width v0.1.8 -> v0.1.9
Removing wasi v0.9.0+wasi-snapshot-preview1
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
feat: allow the `documentclass` field in document metadata
Closes #237
See merge request subplot/subplot!216
|
|
pandoc: Add support for --citeproc
Closes #205
See merge request subplot/subplot!215
|
|
With the new pulldown-cmark parser for codegen, we are explicit about
what fields we allow in the YAML document metadata block. We currently
don't allow the `documentclass` field. Allow it. It's a useful way for
controlling typesetting vie LaTeX to PDF.
Sponsored-by: author
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
ast: Codeblocks should not have extra trailing newlines
See merge request subplot/subplot!214
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
feat! parse Markdown input with pull-cmark instead of Pandoc
See merge request subplot/subplot!213
|
|
Sponsored-by: pep.foundation
|
|
Sponsored-by: pep.foundation
|
|
Sponsored-by: pep.foundation
|
|
This is a first step towards being able to use Subplot codegen from a
project's build.rs, and with only pure-Rust build dependencies.
Replace Pandoc for parsing Markdown input with pulldown-cmark. This is
mostly a drop-in replacement, but not entirely. The YAML parsing is
more strict now.
Note that this is a breaking change. Some subplots that used to work,
and still work with docgen, no longer work with the new parser. Major
differences are:
* Only specific fields are supported. All the Markdown files in the
Subplot source tree work. If anything else is needed, and it likely
is, the new parser needs to be extended.
* The bindings, functions, classes, and bibliography fields MUST be
lists of strings. A single string value will no longer work.
Sponsored-by: pep.foundation
|