Age | Commit message (Collapse) | Author | Files | Lines |
|
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
|
|
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
|
|
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
|
|
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
|
|
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>
|
|
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>
|
|
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
|
|
I needed these to figure out a problem that wasn't in Subplot itself.
I'd like to keep them for the future.
Sponsored-by: author
|
|
Implement polyglot bindings
See merge request subplot/subplot!210
|
|
Actually, we only didn't handle `foo` code markup.
Sponsored-by: author
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
From now on, we search $ common/$ then template/$ and as such
we will find common (polyglot) bindings automatically
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>
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
Once upon a time, in a galaxy far, far away, we decided to not build
the share/* resource files into the subplot binary, when building it
for a Debian package. Much later, we were much surprised when this was
not the case and tests fail when run during the Debian package build.
Because it's surprising to not build in the resources for a Debian
package, we hereby undo that decision.
Sponsored-by: author
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
Unfortunately there was a problem where the file writer guard
got dropped and so the subscriber (correctly) silently swallowed
the tracing instead of writing it out. This was caused by me
trying to DRY the code a bit. Undo some of that until we can come
up with a more elegant solution.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
otherwise set
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>
|
|
policy: No parent directory means basedir is curdir
See merge request subplot/subplot!203
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
Sponsored-by: author
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
This also adds Java binary path override
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>
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
chore: Fix a bunch of clippy lints
See merge request subplot/subplot!168
|
|
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>
|
|
pandoc_ast: Support multiple versions of pandoc_ast
See merge request subplot/subplot!155
|
|
bin: Emit warnings from old sp-* binaries
Closes #189
See merge request subplot/subplot!161
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|