Age | Commit message (Collapse) | Author | Files | Lines |
|
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
|
|
Implement polyglot bindings
See merge request subplot/subplot!210
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
Actually, we only didn't handle `foo` code markup.
Sponsored-by: author
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
Sponsored-by: author
|
|
Sponsored-by: author
|
|
Sponsored-by: author
|
|
|
|
I'm assuming this was accidental since the intended error is a missing
input file.
|
|
Could've gone either way to official or officially
but I guessed probably meant to be officially,
since "official stamped" implies separate attributes
which would otherwise be comma or and separated
while "officially stamped" is a compound attribute.
|
|
I'm assuming these were meant to be _done rather than _none
since later functions use _done and the names are close together.
|
|
|
|
While reading through the lack of examples left it not obvious
whether the embedded file helpers returned a path to a resource
or temporary file, or the contents of the file itself.
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
Sponsored-by: author
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
In order to work on filesystems where the time granularity is not
sub-second, some scenarios need to wait a bit.
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>
|
|
|
|
We may want to copy or move this to a separate, more user-oriented
document later, but this is the one place we currently have for
Subplot documentation.
|
|
It seems more logical to discuss markup in general first and the YAML
metadata detail later.
|
|
This is an example that's never parsed by Subplot so the missing
"template" has gone unnoticed.
|
|
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>
|
|
|
|
add --env to generated Python test programs
See merge request larswirzenius/subplot!97
|
|
|
|
|
|
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
Fixed a spelling mistake.
Closes #89
See merge request larswirzenius/subplot!87
|
|
|
|
This only matters for codegen and others who interpret the document
title and headings as text. Docgen handles everything via Pandoc
already.
|
|
Drop the (many) steps and step functions to run Subplot binaries and
use the ones from lib/runcmd instead
|
|
This is akin to installing them to a directory in PATH. Instead of
doing that, we amend PATH so that the directory in the source tree
with the binaries are in there. This adds a "given an installed
subplot" step to every scenario that needs to run a Subplot binary.
|
|
The old steps "then output matches /.../" and "stderr matches /.../"
come originally from runcmd.yaml. For lib/runcmd.yaml they have been
replaced with 'then stdout contains "..."' and 'stderr contains
"..."'.
Change all uses of the old wording to the new one. Don't use
lib/runcmd.yaml yet, but keep the binding subplot.yaml to bind the new
wording to the function from lib/runcmd.py (which it did before
already, so no change).
|
|
The old step "then program finished successfully" comes originally
from runcmd.yaml. For lib/runcmd.yaml it has been replaced with "then
command is successful".
Change all uses of the old wording to the new one. Don't use
lib/runcmd.yaml yet, but keep the binding subplot.yaml to bind the new
wording to the function from lib/runcmd.py (which it did before
already, so no change).
|
|
The old step "then exit code is non-zero" comes originally from
runcmd.yaml. For lib/runcmd.yaml it has been replaced with "then
command fails".
Change all uses of the old wording to the new one. Don't use
lib/runcmd.yaml yet, but keep the binding subplot.yaml to bind the new
wording to the function from lib/runcmd.py (which it did before
already, so no change).
|
|
Use the Python functions from lib/runcmd.py instead of the ones from
./runcmd.py.
This changes some bindings in subplot.yaml to use functions from
lib/runcmd.py, and changes some step functions in subplot.py to be
defined in terms of functions in lib/runcmd.py. The actual steps in
subplot.md are not changed and no bindings from lib/runcmd.yaml are
yet used.
Some bindings that used to come from runcmd.yaml are here added to
subplot.yaml. This is temporary change that will be undone later by
replacing those bindings with ones from lib/runcmd.yaml, but doing
that in this commit would make it bigger and harder to follow.
|
|
add: simple word pattern kinds
Closes #85
See merge request larswirzenius/subplot!73
|