summaryrefslogtreecommitdiff
path: root/subplot.md
diff options
context:
space:
mode:
Diffstat (limited to 'subplot.md')
-rw-r--r--subplot.md34
1 files changed, 34 insertions, 0 deletions
diff --git a/subplot.md b/subplot.md
index ff1d702..74e23cf 100644
--- a/subplot.md
+++ b/subplot.md
@@ -1461,6 +1461,7 @@ and file f.py
and file other.py
and file foo.bib
and file bar.bib
+and file expected.json
when I run sp-meta images.md
then output matches /source: images.md/
and output matches /source: b.yaml/
@@ -1473,6 +1474,8 @@ and output matches /source: image.gif/
and output matches /bindings: b.yaml/
and output matches /bindings: other.yaml/
and output matches /functions: f.py/
+when I run sp-meta images.md -o json
+then JSON output matches expected.json
~~~
@@ -1518,6 +1521,35 @@ bibliography: [foo.bib, bar.bib]
}
~~~
+~~~{#expected.json .file .json}
+{
+ "title": "Document refers to external images",
+ "sources": [
+ "images.md",
+ "b.yaml",
+ "other.yaml",
+ "f.py",
+ "other.py",
+ "foo.bib",
+ "bar.bib",
+ "image.gif"
+ ],
+ "binding_files": [
+ "b.yaml",
+ "other.yaml"
+ ],
+ "function_files": [
+ "f.py",
+ "other.py"
+ ],
+ "bibliographies": [
+ "foo.bib",
+ "bar.bib"
+ ],
+ "scenarios": []
+}
+~~~
+
## Embedded files
@@ -1851,4 +1883,6 @@ functions:
- subplot.py
- runcmd.py
- files.py
+classes:
+- json
...